Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.FlowControl.Tests.PCV,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|pCV.inlet.m_flow|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|volumeFlex.M|volumeFlex.U_med|volumeFlex1.M|volumeFlex1.U_med|volumeFlex2.M|volumeFlex2.U_med|volumeFlex2.m_flow_out|volumeFlex3.M|volumeFlex3.U_med",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV") translateModel(ThermofluidStream.FlowControl.Tests.PCV,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|pCV.inlet.m_flow|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|volumeFlex.M|volumeFlex.U_med|volumeFlex1.M|volumeFlex1.U_med|volumeFlex2.M|volumeFlex2.U_med|volumeFlex2.m_flow_out|volumeFlex3.M|volumeFlex3.U_med",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001067/0.001066, allocations: 98.27 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.009004/0.009005, allocations: 170.3 kB / 16.27 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.472/1.472, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7188/0.7188, allocations: 91.32 MB / 382.7 MB, free: 9.656 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_NumberOfIntervals = 1500 Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Warning: Ignoring unknown experiment annotation option: __Dymola_NumberOfIntervals = 1500 Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0004046/0.0004047, allocations: 10.44 kB / 462.7 MB, free: 23.6 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1261/0.1266, allocations: 69.22 MB / 0.5195 GB, free: 9.09 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.PCV): time 0.4463/0.5729, allocations: 185.7 MB / 0.7008 GB, free: 13.84 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.02337/0.5963, allocations: 17.86 MB / 0.7182 GB, free: 11.93 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002651/0.599, allocations: 71.44 kB / 0.7183 GB, free: 11.86 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.00309/0.6021, allocations: 0.8588 MB / 0.7191 GB, free: 11 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.006875/0.609, allocations: 2.184 MB / 0.7213 GB, free: 8.801 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.004814/0.6139, allocations: 1.612 MB / 0.7228 GB, free: 7.195 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.005625/0.6195, allocations: 4.489 MB / 0.7272 GB, free: 2.691 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008353/0.6204, allocations: 422.9 kB / 0.7276 GB, free: 2.25 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002836/0.6232, allocations: 1.346 MB / 0.7289 GB, free: 0.8945 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002398/0.6256, allocations: 1.494 MB / 0.7304 GB, free: 15.39 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0004805/0.6261, allocations: 84 kB / 0.7305 GB, free: 15.31 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006053/0.6322, allocations: 2.526 MB / 0.7329 GB, free: 12.78 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0008028/0.633, allocations: 362.1 kB / 0.7333 GB, free: 12.43 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.001834/0.6349, allocations: 1 MB / 0.7343 GB, free: 11.41 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.005942/0.6408, allocations: 2.998 MB / 0.7372 GB, free: 8.406 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.6409, allocations: 0 / 0.7372 GB, free: 8.406 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.583e-06/0.6409, allocations: 0 / 0.7372 GB, free: 8.406 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.019e-05/0.641, allocations: 0 / 0.7372 GB, free: 8.406 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 364 * Number of variables: 364 Notification: Performance of Generate backend data structure: time 0.004881/0.6459, allocations: 2.238 MB / 0.7394 GB, free: 6.109 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.6459, allocations: 8.031 kB / 0.7394 GB, free: 6.102 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007806/0.6467, allocations: 249.3 kB / 0.7396 GB, free: 5.855 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00222/0.6489, allocations: 1.193 MB / 0.7408 GB, free: 4.609 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001047/0.649, allocations: 111.7 kB / 0.7409 GB, free: 4.5 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002393/0.6493, allocations: 151.9 kB / 0.741 GB, free: 4.352 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002734/0.652, allocations: 1.643 MB / 0.7426 GB, free: 2.648 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.13e-05/0.6521, allocations: 7.938 kB / 0.7427 GB, free: 2.641 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001502/0.6522, allocations: 68 kB / 0.7427 GB, free: 2.574 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.062e-05/0.6523, allocations: 32 kB / 0.7427 GB, free: 2.543 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002642/0.6549, allocations: 1.508 MB / 0.7442 GB, free: 1.039 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009206/0.6641, allocations: 7.199 MB / 0.7513 GB, free: 9.262 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002839/0.667, allocations: 1.553 MB / 0.7528 GB, free: 7.656 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001264/0.6683, allocations: 0.7651 MB / 0.7535 GB, free: 6.879 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006423/0.6747, allocations: 5.959 MB / 0.7593 GB, free: 152 kB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.836e-05/0.6748, allocations: 63.67 kB / 0.7594 GB, free: 80 kB / 0.5606 GB Notification: Performance of pre-optimization done (n=166): time 3.396e-06/0.6748, allocations: 0 / 0.7594 GB, free: 80 kB / 0.5606 GB Notification: Performance of matching and sorting (n=166): time 0.006905/0.6817, allocations: 3.182 MB / 0.7625 GB, free: 12.7 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.243e-05/0.6819, allocations: 183 kB / 0.7627 GB, free: 12.49 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001755/0.6836, allocations: 1.277 MB / 0.7639 GB, free: 11.2 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.000127/0.6838, allocations: 57.7 kB / 0.764 GB, free: 11.14 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005965/0.6844, allocations: 0.7762 MB / 0.7647 GB, free: 10.35 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004892/0.6849, allocations: 0.5698 MB / 0.7653 GB, free: 9.773 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001828/0.685, allocations: 137.6 kB / 0.7654 GB, free: 9.633 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001041/0.6852, allocations: 305.1 kB / 0.7657 GB, free: 9.332 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001052/0.6862, allocations: 0.4998 MB / 0.7662 GB, free: 8.832 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001242/0.6875, allocations: 0.8329 MB / 0.767 GB, free: 7.867 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002458/0.6899, allocations: 1.465 MB / 0.7685 GB, free: 6.277 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.195e-06/0.69, allocations: 0 / 0.7685 GB, free: 6.277 MB / 0.5762 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.003841/0.6938, allocations: 1.875 MB / 0.7703 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.698e-05/0.6939, allocations: 11.94 kB / 0.7703 GB, free: 4.367 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.971e-05/0.6939, allocations: 16.78 kB / 0.7703 GB, free: 4.352 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008987/0.6948, allocations: 220.1 kB / 0.7705 GB, free: 4.121 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001444/0.6963, allocations: 391.4 kB / 0.7709 GB, free: 3.738 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005659/0.7019, allocations: 7.129 MB / 0.7779 GB, free: 11.95 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001633/0.7036, allocations: 186.4 kB / 0.778 GB, free: 11.76 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002703/0.7039, allocations: 71.98 kB / 0.7781 GB, free: 11.69 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (201): * Single equations (assignments): 196 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000933/0.7048, allocations: 345.2 kB / 0.7784 GB, free: 11.34 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006341/0.7055, allocations: 193.6 kB / 0.7786 GB, free: 11.15 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004513/0.71, allocations: 2.083 MB / 0.7806 GB, free: 9.004 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.652e-05/0.71, allocations: 20 kB / 0.7807 GB, free: 8.984 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.922e-05/0.7101, allocations: 4 kB / 0.7807 GB, free: 8.98 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.009e-05/0.7101, allocations: 7.969 kB / 0.7807 GB, free: 8.973 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007231/0.7173, allocations: 3.97 MB / 0.7846 GB, free: 4.887 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.628e-06/0.7173, allocations: 0 / 0.7846 GB, free: 4.887 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001062/0.7184, allocations: 267.6 kB / 0.7848 GB, free: 4.625 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001868/0.7203, allocations: 479.4 kB / 0.7853 GB, free: 4.129 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001547/0.7205, allocations: 51.97 kB / 0.7853 GB, free: 4.078 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007588/0.7281, allocations: 9.419 MB / 0.7945 GB, free: 9.891 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.779e-06/0.7281, allocations: 7.969 kB / 0.7945 GB, free: 9.883 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00559/0.7337, allocations: 2.913 MB / 0.7974 GB, free: 6.902 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005845/0.7343, allocations: 282.3 kB / 0.7976 GB, free: 6.605 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003443/0.7347, allocations: 44 kB / 0.7977 GB, free: 6.562 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001448/0.7361, allocations: 95.73 kB / 0.7978 GB, free: 6.469 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003155/0.7365, allocations: 132.6 kB / 0.7979 GB, free: 6.34 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001991/0.7367, allocations: 71.95 kB / 0.798 GB, free: 6.27 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001537/0.7382, allocations: 0.8848 MB / 0.7988 GB, free: 5.391 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.723e-06/0.7382, allocations: 0 / 0.7988 GB, free: 5.391 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.002496/0.7407, allocations: 0.7763 MB / 0.7996 GB, free: 4.613 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 13 (volumeFlex2.M,volumeFlex2.U_med,volumeFlex.M,volumeFlex.U_med,flowResistance.inlet.m_flow,volumeFlex1.M,volumeFlex1.U_med,volumeFlex3.M,volumeFlex3.U_med,flowResistance1.inlet.m_flow,pCV2.inlet.m_flow,pCV3.inlet.m_flow,pCV4.inlet.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (140): * Single equations (assignments): 131 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(2,3), (2,3), (2,3), (2,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001702/0.7425, allocations: 0.7846 MB / 0.8004 GB, free: 3.82 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003637/0.7461, allocations: 2.006 MB / 0.8023 GB, free: 1.75 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 7.995e-06/0.7461, allocations: 4 kB / 0.8023 GB, free: 1.746 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.00271/0.7489, allocations: 1.441 MB / 0.8037 GB, free: 248 kB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2288/0.9777, allocations: 0.5526 MB / 0.8043 GB, free: 220.8 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006481/0.9842, allocations: 4.781 MB / 0.8089 GB, free: 218.6 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009182/0.9851, allocations: 1.334 MB / 0.8102 GB, free: 217.8 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.00142/0.9866, allocations: 350.2 kB / 0.8106 GB, free: 217.7 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004018/0.987, allocations: 167.3 kB / 0.8107 GB, free: 217.7 MB / 0.6075 GB Notification: Performance of SimCode: time 6.71e-07/0.987, allocations: 1.781 kB / 0.8107 GB, free: 217.7 MB / 0.6075 GB Notification: Performance of Templates: time 0.05301/1.04, allocations: 34.95 MB / 0.8449 GB, free: 204.3 MB / 0.6075 GB make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.makefile (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.sim & ./ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.PCV_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches