Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001636/0.001636, allocations: 110.2 kB / 18.93 MB, free: 2.945 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001958/0.001958, allocations: 188 kB / 22.23 MB, free: 5.164 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.539/1.539, allocations: 225.6 MB / 251 MB, free: 13.01 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo): time 0.804/0.804, allocations: 94.59 MB / 400.9 MB, free: 15.64 MB / 318.1 MB
"
[Timeout remaining time 179]
Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.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=1000,variableFilter="Time|pulse.T_start|pulse.count|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve")
translateModel(ThermofluidStream.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|pulse.T_start|pulse.count|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.00264/0.00264, allocations: 82.72 kB / 0.5471 GB, free: 42.55 MB / 446.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1377/0.1404, allocations: 71.88 MB / 0.6173 GB, free: 8.137 MB / 462.1 MB
Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.6014/0.7418, allocations: 144.4 MB / 0.7584 GB, free: 3.215 MB / 0.5762 GB
Notification: Performance of NFInst.instExpressions: time 0.004366/0.7461, allocations: 3.65 MB / 0.7619 GB, free: 3.184 MB / 0.5762 GB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0005065/0.7466, allocations: 22.62 kB / 0.7619 GB, free: 3.184 MB / 0.5762 GB
Notification: Performance of NFTyping.typeComponents: time 0.0007094/0.7473, allocations: 182.4 kB / 0.7621 GB, free: 3.176 MB / 0.5762 GB
Notification: Performance of NFTyping.typeBindings: time 0.001116/0.7485, allocations: 391.1 kB / 0.7625 GB, free: 3.164 MB / 0.5762 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0009063/0.7494, allocations: 298.2 kB / 0.7628 GB, free: 3.156 MB / 0.5762 GB
Notification: Performance of NFFlatten.flatten: time 0.000694/0.7501, allocations: 0.5249 MB / 0.7633 GB, free: 3.156 MB / 0.5762 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001721/0.7502, allocations: 67.58 kB / 0.7634 GB, free: 3.137 MB / 0.5762 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0005437/0.7508, allocations: 260.3 kB / 0.7636 GB, free: 3.137 MB / 0.5762 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0003424/0.7511, allocations: 238.9 kB / 0.7638 GB, free: 3.137 MB / 0.5762 GB
Notification: Performance of NFPackage.collectConstants: time 4.373e-05/0.7512, allocations: 23.12 kB / 0.7639 GB, free: 3.137 MB / 0.5762 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.001095/0.7522, allocations: 0.4959 MB / 0.7643 GB, free: 3.129 MB / 0.5762 GB
Notification: Performance of NFScalarize.scalarize: time 0.000105/0.7524, allocations: 69.03 kB / 0.7644 GB, free: 3.129 MB / 0.5762 GB
Notification: Performance of NFVerifyModel.verify: time 0.0001847/0.7525, allocations: 181.9 kB / 0.7646 GB, free: 3.129 MB / 0.5762 GB
Notification: Performance of NFConvertDAE.convert: time 0.0009717/0.7535, allocations: 0.5496 MB / 0.7651 GB, free: 3.086 MB / 0.5762 GB
Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.7535, allocations: 0.8438 kB / 0.7651 GB, free: 3.086 MB / 0.5762 GB
Notification: Performance of FrontEnd: time 1.433e-06/0.7535, allocations: 1.094 kB / 0.7651 GB, free: 3.086 MB / 0.5762 GB
Notification: Performance of Transformations before backend: time 9.749e-06/0.7535, allocations: 0.7188 kB / 0.7651 GB, free: 3.086 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: 51
 * Number of variables: 51
Notification: Performance of Generate backend data structure: time 0.001313/0.7548, allocations: 0.6736 MB / 0.7658 GB, free: 2.625 MB / 0.5762 GB
Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.7549, allocations: 9.656 kB / 0.7658 GB, free: 2.625 MB / 0.5762 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001081/0.755, allocations: 46.03 kB / 0.7658 GB, free: 2.602 MB / 0.5762 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006335/0.7556, allocations: 327.7 kB / 0.7661 GB, free: 2.414 MB / 0.5762 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.785e-05/0.7557, allocations: 16.94 kB / 0.7662 GB, free: 2.414 MB / 0.5762 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 5.451e-05/0.7557, allocations: 26.31 kB / 0.7662 GB, free: 2.41 MB / 0.5762 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005452/0.7563, allocations: 270.7 kB / 0.7664 GB, free: 2.355 MB / 0.5762 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.317e-05/0.7563, allocations: 0 / 0.7664 GB, free: 2.355 MB / 0.5762 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.394e-05/0.7563, allocations: 10.78 kB / 0.7664 GB, free: 2.352 MB / 0.5762 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.007e-05/0.7563, allocations: 5.25 kB / 0.7665 GB, free: 2.352 MB / 0.5762 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004892/0.7568, allocations: 228.5 kB / 0.7667 GB, free: 2.352 MB / 0.5762 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001771/0.7586, allocations: 1.06 MB / 0.7677 GB, free: 17.69 MB / 0.5919 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0006188/0.7592, allocations: 210.8 kB / 0.7679 GB, free: 17.66 MB / 0.5919 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0002587/0.7594, allocations: 100.8 kB / 0.768 GB, free: 17.66 MB / 0.5919 GB
Notification: Performance of preOpt evalFunc (simulation): time 0.0009527/0.7604, allocations: 0.5029 MB / 0.7685 GB, free: 17.4 MB / 0.5919 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004067/0.7608, allocations: 152.8 kB / 0.7686 GB, free: 17.36 MB / 0.5919 GB
Notification: Performance of pre-optimization done (n=23): time 2.014e-06/0.7608, allocations: 0.5 kB / 0.7686 GB, free: 17.36 MB / 0.5919 GB
Notification: Performance of matching and sorting (n=23): time 0.001329/0.7621, allocations: 395.7 kB / 0.769 GB, free: 17.29 MB / 0.5919 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.428e-05/0.7622, allocations: 58.38 kB / 0.7691 GB, free: 17.22 MB / 0.5919 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004487/0.7626, allocations: 346.9 kB / 0.7694 GB, free: 17.11 MB / 0.5919 GB
Notification: Performance of collectPreVariables (initialization): time 3.534e-05/0.7627, allocations: 34.48 kB / 0.7694 GB, free: 17.08 MB / 0.5919 GB
Notification: Performance of collectInitialEqns (initialization): time 0.0001356/0.7628, allocations: 193.4 kB / 0.7696 GB, free: 16.97 MB / 0.5919 GB
Notification: Performance of collectInitialBindings (initialization): time 5.302e-05/0.7629, allocations: 80.06 kB / 0.7697 GB, free: 16.93 MB / 0.5919 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001013/0.763, allocations: 55.62 kB / 0.7697 GB, free: 16.91 MB / 0.5919 GB
Notification: Performance of setup shared object (initialization): time 0.0001686/0.7631, allocations: 344.3 kB / 0.7701 GB, free: 16.59 MB / 0.5919 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002179/0.7633, allocations: 81.39 kB / 0.7702 GB, free: 16.59 MB / 0.5919 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002163/0.7636, allocations: 107.7 kB / 0.7703 GB, free: 16.57 MB / 0.5919 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0004372/0.764, allocations: 222.6 kB / 0.7705 GB, free: 16.52 MB / 0.5919 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.764, allocations: 0 / 0.7705 GB, free: 16.52 MB / 0.5919 GB
Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007227/0.7647, allocations: 344.7 kB / 0.7708 GB, free: 16.42 MB / 0.5919 GB
Notification: Performance of prepare postOptimizeDAE: time 4.753e-05/0.7648, allocations: 39.52 kB / 0.7708 GB, free: 16.39 MB / 0.5919 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.7648, allocations: 1.812 kB / 0.7708 GB, free: 16.39 MB / 0.5919 GB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0002382/0.765, allocations: 40.09 kB / 0.7709 GB, free: 16.38 MB / 0.5919 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000228/0.7652, allocations: 41.16 kB / 0.7709 GB, free: 16.38 MB / 0.5919 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00137/0.7666, allocations: 1.428 MB / 0.7723 GB, free: 15.15 MB / 0.5919 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003199/0.7669, allocations: 29.52 kB / 0.7723 GB, free: 15.14 MB / 0.5919 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.5e-05/0.767, allocations: 10.94 kB / 0.7723 GB, free: 15.14 MB / 0.5919 GB
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.0002243/0.7672, allocations: 145.2 kB / 0.7725 GB, free: 15.02 MB / 0.5919 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 6.049e-05/0.7673, allocations: 37.55 kB / 0.7725 GB, free: 15 MB / 0.5919 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007697/0.768, allocations: 339.2 kB / 0.7728 GB, free: 14.94 MB / 0.5919 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.768, allocations: 3.312 kB / 0.7729 GB, free: 14.94 MB / 0.5919 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.768, allocations: 2.281 kB / 0.7729 GB, free: 14.94 MB / 0.5919 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.768, allocations: 3.891 kB / 0.7729 GB, free: 14.94 MB / 0.5919 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00136/0.7694, allocations: 0.7185 MB / 0.7736 GB, free: 14.65 MB / 0.5919 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.127e-06/0.7694, allocations: 2.25 kB / 0.7736 GB, free: 14.65 MB / 0.5919 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001722/0.7696, allocations: 44.41 kB / 0.7736 GB, free: 14.64 MB / 0.5919 GB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0001568/0.7697, allocations: 45.36 kB / 0.7736 GB, free: 14.63 MB / 0.5919 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.105e-05/0.7698, allocations: 7.344 kB / 0.7737 GB, free: 14.63 MB / 0.5919 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001302/0.7711, allocations: 1.431 MB / 0.7751 GB, free: 13.41 MB / 0.5919 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.7711, allocations: 3.625 kB / 0.7751 GB, free: 13.41 MB / 0.5919 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001035/0.7721, allocations: 0.4936 MB / 0.7755 GB, free: 13.23 MB / 0.5919 GB
Notification: Performance of postOpt removeConstants (simulation): time 8.72e-05/0.7722, allocations: 39.03 kB / 0.7756 GB, free: 13.21 MB / 0.5919 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.741e-05/0.7722, allocations: 6.906 kB / 0.7756 GB, free: 13.21 MB / 0.5919 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002113/0.7724, allocations: 14.52 kB / 0.7756 GB, free: 13.21 MB / 0.5919 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 8.208e-05/0.7725, allocations: 25.55 kB / 0.7756 GB, free: 13.21 MB / 0.5919 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.193e-05/0.7725, allocations: 12.75 kB / 0.7756 GB, free: 13.21 MB / 0.5919 GB
Notification: Performance of sorting global known variables: time 0.0002482/0.7728, allocations: 245.2 kB / 0.7759 GB, free: 13.13 MB / 0.5919 GB
Notification: Performance of sort global known variables: time 8e-08/0.7728, allocations: 0.875 kB / 0.7759 GB, free: 13.13 MB / 0.5919 GB
Notification: Performance of remove unused functions: time 0.0005425/0.7733, allocations: 128.3 kB / 0.776 GB, free: 13.11 MB / 0.5919 GB
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.0003651/0.7737, allocations: 224 kB / 0.7762 GB, free: 13 MB / 0.5919 GB
Notification: Performance of simCode: created initialization part: time 0.0007977/0.7745, allocations: 385.1 kB / 0.7766 GB, free: 12.82 MB / 0.5919 GB
Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.7745, allocations: 0 / 0.7766 GB, free: 12.82 MB / 0.5919 GB
Notification: Performance of simCode: created simulation system equations: time 0.0004083/0.7749, allocations: 232.5 kB / 0.7768 GB, free: 12.71 MB / 0.5919 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006608/0.7756, allocations: 112 kB / 0.7769 GB, free: 12.7 MB / 0.5919 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001369/0.7769, allocations: 0.7023 MB / 0.7776 GB, free: 12.37 MB / 0.5919 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004113/0.7773, allocations: 0.7831 MB / 0.7783 GB, free: 11.67 MB / 0.5919 GB
Notification: Performance of simCode: alias equations: time 0.0002205/0.7776, allocations: 60.06 kB / 0.7784 GB, free: 11.66 MB / 0.5919 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 8.541e-05/0.7777, allocations: 35.5 kB / 0.7784 GB, free: 11.65 MB / 0.5919 GB
Notification: Performance of SimCode: time 8.62e-07/0.7777, allocations: 0 / 0.7784 GB, free: 11.65 MB / 0.5919 GB
Notification: Performance of Templates: time 0.01238/0.79, allocations: 6.606 MB / 0.7849 GB, free: 11.26 MB / 0.5919 GB
"
[Timeout remaining time 659]
make -j1 -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.makefile [Timeout 660]
(rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.sim & ./ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve  -abortSlowSimulation -alarm=1200  -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe 2>&1) [Timeout 1200]
diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660]
""
[Timeout remaining time 660]
Reference file matches
[Calling sys.exit(0), Time elapsed: 6.6074565621092916]