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.00128/0.00128, allocations: 115.5 kB / 16.37 MB, free: 6.004 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.001273/0.001273, allocations: 195.6 kB / 17.31 MB, free: 5.613 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.345/1.345, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.649/0.649, allocations: 89.5 MB / 380.7 MB, free: 8.723 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001533, allocations: 83.88 kB / 459.7 MB, free: 10.61 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1074, allocations: 67.31 MB / 0.5146 GB, free: 7.223 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.PCV): time 0.3651/0.4725, allocations: 189 MB / 0.6992 GB, free: 10.22 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.02034/0.4929, allocations: 17.71 MB / 0.7165 GB, free: 8.496 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001663/0.4946, allocations: 31.81 kB / 0.7165 GB, free: 8.465 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002757/0.4974, allocations: 0.9821 MB / 0.7174 GB, free: 7.477 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.006668/0.5041, allocations: 2.272 MB / 0.7197 GB, free: 5.195 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.004797/0.5089, allocations: 1.833 MB / 0.7215 GB, free: 3.371 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.004369/0.5133, allocations: 3.399 MB / 0.7248 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007306/0.5141, allocations: 444.6 kB / 0.7252 GB, free: 15.52 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002633/0.5167, allocations: 1.453 MB / 0.7266 GB, free: 14.07 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002285/0.519, allocations: 1.522 MB / 0.7281 GB, free: 12.54 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0004877/0.5195, allocations: 172 kB / 0.7283 GB, free: 12.37 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007009/0.5265, allocations: 2.562 MB / 0.7308 GB, free: 9.805 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.00082/0.5274, allocations: 442.2 kB / 0.7312 GB, free: 9.371 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001621/0.529, allocations: 1.026 MB / 0.7322 GB, free: 8.34 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.005347/0.5344, allocations: 3.034 MB / 0.7352 GB, free: 5.301 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.197e-06/0.5344, allocations: 0 / 0.7352 GB, free: 5.301 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.142e-06/0.5344, allocations: 0 / 0.7352 GB, free: 5.301 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.492e-05/0.5345, allocations: 4 kB / 0.7352 GB, free: 5.297 MB / 0.5762 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.004807/0.5393, allocations: 2.41 MB / 0.7375 GB, free: 2.836 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.5394, allocations: 8.031 kB / 0.7375 GB, free: 2.828 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006783/0.5401, allocations: 231 kB / 0.7377 GB, free: 2.602 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001533/0.5416, allocations: 0.9531 MB / 0.7387 GB, free: 1.594 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.353e-05/0.5417, allocations: 111.2 kB / 0.7388 GB, free: 1.484 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002174/0.5419, allocations: 164.2 kB / 0.7389 GB, free: 1.324 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1946/0.7365, allocations: 1.633 MB / 0.7405 GB, free: 183.3 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.9e-05/0.7366, allocations: 4.781 kB / 0.7405 GB, free: 183.3 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000165/0.7368, allocations: 59.22 kB / 0.7406 GB, free: 183.3 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.086e-05/0.7368, allocations: 36.81 kB / 0.7406 GB, free: 183.3 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002453/0.7393, allocations: 1.487 MB / 0.7421 GB, free: 183.3 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007576/0.7468, allocations: 7.07 MB / 0.749 GB, free: 179.6 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002491/0.7494, allocations: 1.547 MB / 0.7505 GB, free: 179.5 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009922/0.7504, allocations: 0.7489 MB / 0.7512 GB, free: 179.5 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004818/0.7552, allocations: 5.957 MB / 0.757 GB, free: 174.8 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.29e-05/0.7553, allocations: 62.86 kB / 0.7571 GB, free: 174.7 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=166): time 3.196e-06/0.7553, allocations: 0.5625 kB / 0.7571 GB, free: 174.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=166): time 0.00578/0.7611, allocations: 3.124 MB / 0.7601 GB, free: 173.6 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.994e-05/0.7611, allocations: 175.6 kB / 0.7603 GB, free: 173.4 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001141/0.7623, allocations: 1.095 MB / 0.7614 GB, free: 173.3 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001067/0.7624, allocations: 56.39 kB / 0.7614 GB, free: 173.3 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003304/0.7627, allocations: 0.6901 MB / 0.7621 GB, free: 172.7 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002887/0.763, allocations: 0.5677 MB / 0.7627 GB, free: 172.3 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003612/0.7634, allocations: 290 kB / 0.7629 GB, free: 172.1 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 3.656e-05/0.7634, allocations: 307.3 kB / 0.7632 GB, free: 171.9 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008246/0.7643, allocations: 499 kB / 0.7637 GB, free: 171.7 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00101/0.7653, allocations: 0.8286 MB / 0.7645 GB, free: 171.1 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001963/0.7673, allocations: 1.437 MB / 0.7659 GB, free: 170.3 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.306e-06/0.7673, allocations: 3 kB / 0.7659 GB, free: 170.3 MB / 0.5762 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.003252/0.7705, allocations: 1.837 MB / 0.7677 GB, free: 169.6 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.434e-05/0.7706, allocations: 8.75 kB / 0.7677 GB, free: 169.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.871e-05/0.7706, allocations: 9.156 kB / 0.7677 GB, free: 169.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007614/0.7714, allocations: 223.6 kB / 0.768 GB, free: 169.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001417/0.7728, allocations: 389.8 kB / 0.7683 GB, free: 169.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004355/0.7772, allocations: 7.678 MB / 0.7758 GB, free: 162.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001113/0.7783, allocations: 161.9 kB / 0.776 GB, free: 162 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001978/0.7785, allocations: 77.7 kB / 0.7761 GB, free: 161.9 MB / 0.5762 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.0006535/0.7792, allocations: 327.7 kB / 0.7764 GB, free: 161.7 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004937/0.7797, allocations: 170.7 kB / 0.7765 GB, free: 161.6 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003927/0.7836, allocations: 2.039 MB / 0.7785 GB, free: 160.8 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.429e-05/0.7836, allocations: 17.5 kB / 0.7785 GB, free: 160.8 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.135e-05/0.7837, allocations: 8.688 kB / 0.7785 GB, free: 160.8 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.839e-05/0.7837, allocations: 8.984 kB / 0.7786 GB, free: 160.8 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006616/0.7903, allocations: 3.879 MB / 0.7823 GB, free: 158.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-05/0.7904, allocations: 4.688 kB / 0.7823 GB, free: 158.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001112/0.7915, allocations: 257.7 kB / 0.7826 GB, free: 158.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001836/0.7933, allocations: 474.8 kB / 0.783 GB, free: 158.6 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000151/0.7935, allocations: 55.67 kB / 0.7831 GB, free: 158.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00545/0.7989, allocations: 9.97 MB / 0.7928 GB, free: 149 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.799, allocations: 8.312 kB / 0.7928 GB, free: 149 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004674/0.8036, allocations: 2.849 MB / 0.7956 GB, free: 147.5 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004627/0.8041, allocations: 258.7 kB / 0.7959 GB, free: 147.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002924/0.8044, allocations: 41.83 kB / 0.7959 GB, free: 147.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00115/0.8056, allocations: 62.84 kB / 0.796 GB, free: 147.3 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000263/0.8059, allocations: 129 kB / 0.7961 GB, free: 147.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001596/0.806, allocations: 74.31 kB / 0.7962 GB, free: 147.2 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001103/0.8071, allocations: 0.7667 MB / 0.7969 GB, free: 146.9 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8071, allocations: 0 / 0.7969 GB, free: 146.9 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002163/0.8093, allocations: 0.7742 MB / 0.7977 GB, free: 146.8 MB / 0.5762 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.001316/0.8106, allocations: 0.7464 MB / 0.7984 GB, free: 146.6 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003263/0.8139, allocations: 1.99 MB / 0.8003 GB, free: 145.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.802e-06/0.8139, allocations: 2.75 kB / 0.8003 GB, free: 145.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002351/0.8163, allocations: 1.449 MB / 0.8018 GB, free: 144.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00293/0.8192, allocations: 0.5911 MB / 0.8023 GB, free: 144.6 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005987/0.8252, allocations: 3.571 MB / 0.8058 GB, free: 142.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009397/0.8262, allocations: 1.273 MB / 0.8071 GB, free: 141.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001432/0.8276, allocations: 322.9 kB / 0.8074 GB, free: 141.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004555/0.8281, allocations: 152.7 kB / 0.8075 GB, free: 141.8 MB / 0.5762 GB Notification: Performance of SimCode: time 7.92e-07/0.8281, allocations: 0 / 0.8075 GB, free: 141.8 MB / 0.5762 GB Notification: Performance of Templates: time 0.04707/0.8752, allocations: 36.17 MB / 0.8428 GB, free: 114.2 MB / 0.5762 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.PCV.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches