Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.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.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve") translateModel(ThermofluidStream.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001445/0.001445, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001637/0.001637, allocations: 193.1 kB / 16.53 MB, free: 6.664 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.388/1.388, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6876/0.6876, allocations: 91.2 MB / 381.6 MB, free: 9.406 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001528/0.001528, allocations: 85.25 kB / 460.3 MB, free: 23.14 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.126, allocations: 67.69 MB / 0.5156 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.4169/0.543, allocations: 143.8 MB / 0.656 GB, free: 6.906 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.004708/0.5477, allocations: 3.607 MB / 0.6595 GB, free: 3.98 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004902/0.5483, allocations: 11.28 kB / 0.6596 GB, free: 3.977 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007389/0.549, allocations: 181 kB / 0.6597 GB, free: 3.828 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001093/0.5502, allocations: 372.2 kB / 0.6601 GB, free: 3.527 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000901/0.5511, allocations: 296 kB / 0.6604 GB, free: 3.312 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007192/0.5518, allocations: 0.4943 MB / 0.6608 GB, free: 3.023 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002171/0.552, allocations: 82.3 kB / 0.6609 GB, free: 2.98 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004823/0.5525, allocations: 236 kB / 0.6612 GB, free: 2.84 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003151/0.5529, allocations: 233.7 kB / 0.6614 GB, free: 2.699 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 4.903e-05/0.5529, allocations: 24.81 kB / 0.6614 GB, free: 2.699 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001061/0.554, allocations: 489.7 kB / 0.6619 GB, free: 2.48 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000105/0.5541, allocations: 69.69 kB / 0.6619 GB, free: 2.422 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001891/0.5543, allocations: 178.3 kB / 0.6621 GB, free: 2.301 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008777/0.5552, allocations: 0.5265 MB / 0.6626 GB, free: 1.969 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.5552, allocations: 6.844 kB / 0.6626 GB, free: 1.965 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.5552, allocations: 0 / 0.6626 GB, free: 1.965 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.195e-06/0.5552, allocations: 0 / 0.6626 GB, free: 1.965 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001355/0.5566, allocations: 0.7306 MB / 0.6633 GB, free: 1.312 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.5567, allocations: 10.41 kB / 0.6633 GB, free: 1.312 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.372e-05/0.5568, allocations: 44.59 kB / 0.6634 GB, free: 1.289 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005163/0.5573, allocations: 360 kB / 0.6637 GB, free: 0.957 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.154e-05/0.5573, allocations: 16.38 kB / 0.6637 GB, free: 0.9492 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.106e-05/0.5574, allocations: 30.78 kB / 0.6638 GB, free: 0.9336 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004787/0.5579, allocations: 258.4 kB / 0.664 GB, free: 0.7656 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.918e-06/0.5579, allocations: 0 / 0.664 GB, free: 0.7656 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.447e-05/0.5579, allocations: 4 kB / 0.664 GB, free: 0.7617 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.5579, allocations: 5.25 kB / 0.664 GB, free: 0.7617 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004731/0.5584, allocations: 226.6 kB / 0.6642 GB, free: 0.6523 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001525/0.5599, allocations: 1.092 MB / 0.6653 GB, free: 15.62 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005215/0.5605, allocations: 229.6 kB / 0.6655 GB, free: 15.49 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002303/0.5607, allocations: 111.5 kB / 0.6656 GB, free: 15.43 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001114/0.5618, allocations: 0.9793 MB / 0.6666 GB, free: 14.4 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004505/0.5623, allocations: 149.8 kB / 0.6667 GB, free: 14.29 MB / 494.1 MB Notification: Performance of pre-optimization done (n=23): time 2.334e-06/0.5623, allocations: 6.562 kB / 0.6667 GB, free: 14.29 MB / 494.1 MB Notification: Performance of matching and sorting (n=23): time 0.001169/0.5635, allocations: 465 kB / 0.6672 GB, free: 13.99 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.814e-05/0.5636, allocations: 57.12 kB / 0.6672 GB, free: 13.92 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003567/0.5639, allocations: 336.7 kB / 0.6676 GB, free: 13.71 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.652e-05/0.564, allocations: 32.14 kB / 0.6676 GB, free: 13.67 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001352/0.5641, allocations: 194.4 kB / 0.6678 GB, free: 13.5 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.227e-05/0.5642, allocations: 77.72 kB / 0.6679 GB, free: 13.43 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.591e-05/0.5643, allocations: 54.73 kB / 0.6679 GB, free: 13.39 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.5644, allocations: 346.2 kB / 0.6682 GB, free: 13.05 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002125/0.5647, allocations: 84.08 kB / 0.6683 GB, free: 13 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002607/0.5649, allocations: 110.7 kB / 0.6684 GB, free: 12.94 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004276/0.5654, allocations: 213 kB / 0.6686 GB, free: 12.8 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.5654, allocations: 0 / 0.6686 GB, free: 12.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007022/0.5661, allocations: 349.4 kB / 0.669 GB, free: 12.59 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.947e-05/0.5661, allocations: 39.5 kB / 0.669 GB, free: 12.55 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/0.5662, allocations: 0 / 0.669 GB, free: 12.55 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000256/0.5664, allocations: 40.36 kB / 0.669 GB, free: 12.53 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002123/0.5666, allocations: 48.62 kB / 0.6691 GB, free: 12.51 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001358/0.568, allocations: 1.528 MB / 0.6706 GB, free: 10.97 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002514/0.5683, allocations: 29.83 kB / 0.6706 GB, free: 10.95 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.657e-05/0.5683, allocations: 10.78 kB / 0.6706 GB, free: 10.95 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001793/0.5685, allocations: 150.9 kB / 0.6708 GB, free: 10.81 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.43e-05/0.5686, allocations: 34.66 kB / 0.6708 GB, free: 10.79 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007905/0.5694, allocations: 337.5 kB / 0.6711 GB, free: 10.59 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.5694, allocations: 2.281 kB / 0.6711 GB, free: 10.59 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.5694, allocations: 0 / 0.6711 GB, free: 10.59 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/0.5694, allocations: 7.984 kB / 0.6711 GB, free: 10.58 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001182/0.5706, allocations: 0.7441 MB / 0.6718 GB, free: 9.973 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.636e-06/0.5706, allocations: 2.906 kB / 0.6719 GB, free: 9.973 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001595/0.5708, allocations: 39.42 kB / 0.6719 GB, free: 9.961 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001654/0.5709, allocations: 46.62 kB / 0.6719 GB, free: 9.93 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.707e-05/0.571, allocations: 10.73 kB / 0.6719 GB, free: 9.922 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001223/0.5722, allocations: 1.529 MB / 0.6734 GB, free: 8.387 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.5722, allocations: 0 / 0.6734 GB, free: 8.387 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009248/0.5732, allocations: 0.4985 MB / 0.6739 GB, free: 8.051 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001035/0.5733, allocations: 114.3 kB / 0.674 GB, free: 7.93 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.449e-05/0.5733, allocations: 4 kB / 0.674 GB, free: 7.926 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000202/0.5735, allocations: 16.55 kB / 0.6741 GB, free: 7.918 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.574e-05/0.5736, allocations: 28.14 kB / 0.6741 GB, free: 7.902 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.901e-05/0.5737, allocations: 9.812 kB / 0.6741 GB, free: 7.898 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000256/0.5739, allocations: 242.7 kB / 0.6743 GB, free: 7.738 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.643e-06/0.5739, allocations: 0 / 0.6743 GB, free: 7.738 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0004963/0.5744, allocations: 131 kB / 0.6744 GB, free: 7.699 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (flowResistance.inlet.m_flow) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003425/0.5748, allocations: 204.9 kB / 0.6746 GB, free: 7.562 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0008354/0.5756, allocations: 405.2 kB / 0.675 GB, free: 7.273 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.5756, allocations: 0 / 0.675 GB, free: 7.273 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004278/0.5761, allocations: 244.8 kB / 0.6753 GB, free: 7.098 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006795/0.5768, allocations: 120.5 kB / 0.6754 GB, free: 7.035 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001447/0.5782, allocations: 0.6781 MB / 0.676 GB, free: 6.578 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004037/0.5786, allocations: 0.7892 MB / 0.6768 GB, free: 5.832 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0002159/0.5789, allocations: 52.14 kB / 0.6769 GB, free: 5.805 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.766e-05/0.5789, allocations: 31.48 kB / 0.6769 GB, free: 5.793 MB / 494.1 MB Notification: Performance of SimCode: time 3.71e-07/0.579, allocations: 2.688 kB / 0.6769 GB, free: 5.793 MB / 494.1 MB Notification: Performance of Templates: time 0.01213/0.5911, allocations: 6.352 MB / 0.6831 GB, free: 2.598 MB / 494.1 MB make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.makefile (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.sim & ./ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.CheckValve_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches