Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.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.001783/0.001783, allocations: 106.2 kB / 18.94 MB, free: 2.953 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.002185/0.002185, allocations: 195 kB / 22.23 MB, free: 5.133 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.466/1.466, allocations: 225.6 MB / 251 MB, free: 13.03 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.7585/0.7585, allocations: 94.59 MB / 400.9 MB, free: 15.69 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.Undirected.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_rear.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve")
translateModel(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_rear.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002472/0.002472, allocations: 83.92 kB / 0.5472 GB, free: 42.47 MB / 446.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1177, allocations: 71.88 MB / 0.6174 GB, free: 8.168 MB / 462.1 MB
Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 0.4773/0.595, allocations: 145.9 MB / 0.7599 GB, free: 3.184 MB / 0.5762 GB
Notification: Performance of NFInst.instExpressions: time 0.003937/0.5989, allocations: 3.354 MB / 0.7631 GB, free: 3.16 MB / 0.5762 GB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0004878/0.5994, allocations: 23.06 kB / 0.7632 GB, free: 3.16 MB / 0.5762 GB
Notification: Performance of NFTyping.typeComponents: time 0.0006772/0.6001, allocations: 212.1 kB / 0.7634 GB, free: 3.156 MB / 0.5762 GB
Notification: Performance of NFTyping.typeBindings: time 0.001203/0.6013, allocations: 0.4985 MB / 0.7639 GB, free: 3.141 MB / 0.5762 GB
Notification: Performance of NFTyping.typeClassSections: time 0.001102/0.6024, allocations: 409.6 kB / 0.7642 GB, free: 3.133 MB / 0.5762 GB
Notification: Performance of NFFlatten.flatten: time 0.0007534/0.6031, allocations: 0.7281 MB / 0.765 GB, free: 3.129 MB / 0.5762 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001815/0.6033, allocations: 78.22 kB / 0.765 GB, free: 3.105 MB / 0.5762 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0006228/0.6039, allocations: 369 kB / 0.7654 GB, free: 3.105 MB / 0.5762 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0004105/0.6043, allocations: 366.5 kB / 0.7657 GB, free: 3.105 MB / 0.5762 GB
Notification: Performance of NFPackage.collectConstants: time 7.029e-05/0.6044, allocations: 33.5 kB / 0.7658 GB, free: 3.105 MB / 0.5762 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.001378/0.6058, allocations: 0.5967 MB / 0.7663 GB, free: 3.094 MB / 0.5762 GB
Notification: Performance of NFScalarize.scalarize: time 0.0001187/0.6059, allocations: 91.36 kB / 0.7664 GB, free: 3.094 MB / 0.5762 GB
Notification: Performance of NFVerifyModel.verify: time 0.0002866/0.6062, allocations: 238.3 kB / 0.7667 GB, free: 3.094 MB / 0.5762 GB
Notification: Performance of NFConvertDAE.convert: time 0.001341/0.6075, allocations: 0.7315 MB / 0.7674 GB, free: 3.047 MB / 0.5762 GB
Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.6075, allocations: 0.5625 kB / 0.7674 GB, free: 3.047 MB / 0.5762 GB
Notification: Performance of FrontEnd: time 2.154e-06/0.6075, allocations: 1.406 kB / 0.7674 GB, free: 3.047 MB / 0.5762 GB
Notification: Performance of Transformations before backend: time 9.778e-06/0.6076, allocations: 0 / 0.7674 GB, free: 3.047 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: 83
 * Number of variables: 83
Notification: Performance of Generate backend data structure: time 0.00156/0.6091, allocations: 0.7723 MB / 0.7681 GB, free: 2.551 MB / 0.5762 GB
Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.6092, allocations: 12.75 kB / 0.7681 GB, free: 2.551 MB / 0.5762 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001431/0.6093, allocations: 60.94 kB / 0.7682 GB, free: 2.52 MB / 0.5762 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006964/0.61, allocations: 359.1 kB / 0.7685 GB, free: 2.332 MB / 0.5762 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.201e-05/0.61, allocations: 30.09 kB / 0.7686 GB, free: 2.328 MB / 0.5762 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 7.906e-05/0.6101, allocations: 38.2 kB / 0.7686 GB, free: 2.328 MB / 0.5762 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009721/0.6111, allocations: 427.3 kB / 0.769 GB, free: 18.25 MB / 0.5919 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.795e-05/0.6111, allocations: 1.312 kB / 0.769 GB, free: 18.25 MB / 0.5919 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.529e-05/0.6111, allocations: 13.34 kB / 0.769 GB, free: 18.25 MB / 0.5919 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.603e-05/0.6112, allocations: 10.53 kB / 0.769 GB, free: 18.25 MB / 0.5919 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000772/0.6119, allocations: 387.3 kB / 0.7694 GB, free: 18.24 MB / 0.5919 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002235/0.6142, allocations: 1.816 MB / 0.7712 GB, free: 17.05 MB / 0.5919 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0007238/0.6149, allocations: 316.7 kB / 0.7715 GB, free: 17.02 MB / 0.5919 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0003073/0.6152, allocations: 153.7 kB / 0.7716 GB, free: 17.02 MB / 0.5919 GB
Notification: Performance of preOpt evalFunc (simulation): time 0.001673/0.6169, allocations: 0.7613 MB / 0.7724 GB, free: 16.75 MB / 0.5919 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004418/0.6173, allocations: 204.7 kB / 0.7726 GB, free: 16.7 MB / 0.5919 GB
Notification: Performance of pre-optimization done (n=37): time 2.154e-06/0.6173, allocations: 1.375 kB / 0.7726 GB, free: 16.7 MB / 0.5919 GB
Notification: Performance of matching and sorting (n=37): time 0.001468/0.6188, allocations: 0.5281 MB / 0.7731 GB, free: 16.62 MB / 0.5919 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.945e-05/0.6188, allocations: 59.38 kB / 0.7731 GB, free: 16.56 MB / 0.5919 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004694/0.6193, allocations: 366.9 kB / 0.7735 GB, free: 16.45 MB / 0.5919 GB
Notification: Performance of collectPreVariables (initialization): time 4.031e-05/0.6193, allocations: 34.77 kB / 0.7735 GB, free: 16.41 MB / 0.5919 GB
Notification: Performance of collectInitialEqns (initialization): time 0.0001617/0.6195, allocations: 226.4 kB / 0.7737 GB, free: 16.29 MB / 0.5919 GB
Notification: Performance of collectInitialBindings (initialization): time 8.595e-05/0.6196, allocations: 126 kB / 0.7739 GB, free: 16.21 MB / 0.5919 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001319/0.6197, allocations: 74.81 kB / 0.7739 GB, free: 16.19 MB / 0.5919 GB
Notification: Performance of setup shared object (initialization): time 0.0001666/0.6199, allocations: 356.8 kB / 0.7743 GB, free: 15.87 MB / 0.5919 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002807/0.6202, allocations: 119.8 kB / 0.7744 GB, free: 15.87 MB / 0.5919 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002812/0.6205, allocations: 181.4 kB / 0.7746 GB, free: 15.82 MB / 0.5919 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0005519/0.621, allocations: 333.5 kB / 0.7749 GB, free: 15.73 MB / 0.5919 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.621, allocations: 0 / 0.7749 GB, free: 15.73 MB / 0.5919 GB
Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008522/0.6219, allocations: 471.1 kB / 0.7753 GB, free: 15.63 MB / 0.5919 GB
Notification: Performance of prepare postOptimizeDAE: time 4.587e-05/0.6219, allocations: 36.2 kB / 0.7754 GB, free: 15.6 MB / 0.5919 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.6219, allocations: 1.031 kB / 0.7754 GB, free: 15.6 MB / 0.5919 GB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0002164/0.6221, allocations: 47.05 kB / 0.7754 GB, free: 15.59 MB / 0.5919 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002828/0.6224, allocations: 79.52 kB / 0.7755 GB, free: 15.59 MB / 0.5919 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001305/0.6237, allocations: 1.427 MB / 0.7769 GB, free: 14.38 MB / 0.5919 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003065/0.624, allocations: 43.14 kB / 0.7769 GB, free: 14.35 MB / 0.5919 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.903e-05/0.6241, allocations: 16.67 kB / 0.7769 GB, free: 14.35 MB / 0.5919 GB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 6
 * 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 (42):
 * Single equations (assignments): 40
 * 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.0002067/0.6243, allocations: 167.4 kB / 0.7771 GB, free: 14.23 MB / 0.5919 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 6.397e-05/0.6243, allocations: 43.91 kB / 0.7771 GB, free: 14.21 MB / 0.5919 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001003/0.6253, allocations: 0.5111 MB / 0.7776 GB, free: 14.12 MB / 0.5919 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.6253, allocations: 10.89 kB / 0.7776 GB, free: 14.12 MB / 0.5919 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.6253, allocations: 2.812 kB / 0.7777 GB, free: 14.12 MB / 0.5919 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.6253, allocations: 0.9062 kB / 0.7777 GB, free: 14.12 MB / 0.5919 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001475/0.6268, allocations: 0.9355 MB / 0.7786 GB, free: 13.81 MB / 0.5919 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.6268, allocations: 2.938 kB / 0.7786 GB, free: 13.81 MB / 0.5919 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002406/0.6271, allocations: 63.19 kB / 0.7786 GB, free: 13.81 MB / 0.5919 GB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0001522/0.6272, allocations: 48.2 kB / 0.7787 GB, free: 13.8 MB / 0.5919 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.78e-05/0.6272, allocations: 11.31 kB / 0.7787 GB, free: 13.8 MB / 0.5919 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001249/0.6285, allocations: 1.43 MB / 0.7801 GB, free: 12.58 MB / 0.5919 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.6285, allocations: 0 / 0.7801 GB, free: 12.58 MB / 0.5919 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001076/0.6296, allocations: 0.6528 MB / 0.7807 GB, free: 12.38 MB / 0.5919 GB
Notification: Performance of postOpt removeConstants (simulation): time 8.602e-05/0.6297, allocations: 52.28 kB / 0.7808 GB, free: 12.35 MB / 0.5919 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.611e-05/0.6297, allocations: 7.219 kB / 0.7808 GB, free: 12.35 MB / 0.5919 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002457/0.63, allocations: 20.78 kB / 0.7808 GB, free: 12.35 MB / 0.5919 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 9.3e-05/0.6301, allocations: 35.02 kB / 0.7808 GB, free: 12.35 MB / 0.5919 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.156e-05/0.6301, allocations: 16.56 kB / 0.7808 GB, free: 12.35 MB / 0.5919 GB
Notification: Performance of sorting global known variables: time 0.000279/0.6304, allocations: 269.6 kB / 0.7811 GB, free: 12.26 MB / 0.5919 GB
Notification: Performance of sort global known variables: time 7e-08/0.6304, allocations: 0 / 0.7811 GB, free: 12.26 MB / 0.5919 GB
Notification: Performance of remove unused functions: time 0.0005756/0.6309, allocations: 164 kB / 0.7813 GB, free: 12.24 MB / 0.5919 GB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 3
 * Number of states: 1 (flowResistance.rear.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 (34):
 * Single equations (assignments): 31
 * 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.0003794/0.6313, allocations: 242.6 kB / 0.7815 GB, free: 12.14 MB / 0.5919 GB
Notification: Performance of simCode: created initialization part: time 0.0009329/0.6323, allocations: 490.7 kB / 0.782 GB, free: 11.95 MB / 0.5919 GB
Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.6323, allocations: 6.203 kB / 0.782 GB, free: 11.95 MB / 0.5919 GB
Notification: Performance of simCode: created simulation system equations: time 0.0004452/0.6327, allocations: 285.5 kB / 0.7822 GB, free: 11.83 MB / 0.5919 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007219/0.6334, allocations: 130.9 kB / 0.7824 GB, free: 11.82 MB / 0.5919 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001539/0.635, allocations: 0.8528 MB / 0.7832 GB, free: 11.44 MB / 0.5919 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004435/0.6354, allocations: 0.8128 MB / 0.784 GB, free: 10.75 MB / 0.5919 GB
Notification: Performance of simCode: alias equations: time 0.0002945/0.6357, allocations: 97.08 kB / 0.7841 GB, free: 10.73 MB / 0.5919 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001006/0.6358, allocations: 46.47 kB / 0.7841 GB, free: 10.72 MB / 0.5919 GB
Notification: Performance of SimCode: time 6.11e-07/0.6358, allocations: 1.188 kB / 0.7841 GB, free: 10.72 MB / 0.5919 GB
Notification: Performance of Templates: time 0.01374/0.6495, allocations: 8.451 MB / 0.7924 GB, free: 10.11 MB / 0.5919 GB
"
[Timeout remaining time 659]
make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.makefile [Timeout 660]
(rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve  -abortSlowSimulation -alarm=1200  -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe 2>&1) [Timeout 1200]
diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.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.310520198196173]