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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo) Using package ObsoleteModelica4 with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001457/0.001457, allocations: 180.9 kB / 7.651 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.484/1.484, allocations: 221.5 MB / 229.6 MB, free: 7.586 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009629/0.0009626, allocations: 91.33 kB / 280.5 MB, free: 5.324 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo): time 0.00955/0.00955, allocations: 1.567 MB / 332.8 MB, free: 13.54 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.7232/0.7232, allocations: 90.04 MB / 474 MB, free: 13.02 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.317e-05/1.313e-05, allocations: 0 / 0.5375 GB, free: 33.02 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1555/0.1556, allocations: 69.38 MB / 0.6052 GB, free: 100 kB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.201/1.357, allocations: 435.8 MB / 1.031 GB, free: 121.8 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002558/1.357, allocations: 80.77 kB / 1.031 GB, free: 121.8 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 0.1377/1.495, allocations: 71.03 MB / 1.1 GB, free: 62.3 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.304e-06/1.495, allocations: 4 kB / 1.1 GB, free: 62.29 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 2.449e-05/1.495, allocations: 4 kB / 1.1 GB, free: 62.29 MB / 0.6042 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.001191/1.496, allocations: 0.6253 MB / 1.101 GB, free: 61.61 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/1.496, allocations: 19.95 kB / 1.101 GB, free: 61.59 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001321/1.496, allocations: 31.62 kB / 1.101 GB, free: 61.56 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003489/1.496, allocations: 269.5 kB / 1.101 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.259e-05/1.496, allocations: 8 kB / 1.101 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.386e-05/1.496, allocations: 16 kB / 1.101 GB, free: 61.23 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002801/1.497, allocations: 172.8 kB / 1.101 GB, free: 61.06 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002805/1.497, allocations: 198.3 kB / 1.102 GB, free: 60.86 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/1.497, allocations: 0 / 1.102 GB, free: 60.86 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.217e-05/1.497, allocations: 0 / 1.102 GB, free: 60.86 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/1.497, allocations: 4 kB / 1.102 GB, free: 60.86 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001078/1.498, allocations: 0.9787 MB / 1.102 GB, free: 59.77 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002675/1.498, allocations: 222 kB / 1.103 GB, free: 59.55 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001183/1.499, allocations: 101.1 kB / 1.103 GB, free: 59.45 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007612/1.499, allocations: 0.8566 MB / 1.104 GB, free: 58.49 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002298/1.5, allocations: 147.2 kB / 1.104 GB, free: 58.33 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=25): time 2.054e-06/1.5, allocations: 0 / 1.104 GB, free: 58.33 MB / 0.6042 GB Notification: Performance of matching and sorting (n=25): time 0.0005933/1.5, allocations: 246.2 kB / 1.104 GB, free: 58.08 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.15e-05/1.5, allocations: 59.34 kB / 1.104 GB, free: 58.01 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001503/1.5, allocations: 184.5 kB / 1.104 GB, free: 57.83 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.148e-05/1.5, allocations: 33.58 kB / 1.104 GB, free: 57.79 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 6.504e-05/1.501, allocations: 156.4 kB / 1.104 GB, free: 57.63 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 4.62e-05/1.501, allocations: 86.75 kB / 1.104 GB, free: 57.55 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.323e-05/1.501, allocations: 0 / 1.104 GB, free: 57.55 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.203e-05/1.501, allocations: 338.8 kB / 1.105 GB, free: 57.21 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.922e-05/1.501, allocations: 67.98 kB / 1.105 GB, free: 57.14 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001103/1.501, allocations: 94.78 kB / 1.105 GB, free: 57.04 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002228/1.501, allocations: 84.94 kB / 1.105 GB, free: 56.96 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/1.501, allocations: 0 / 1.105 GB, free: 56.96 MB / 0.6042 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005144/1.502, allocations: 275.2 kB / 1.105 GB, free: 56.68 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 3.255e-05/1.502, allocations: 35.27 kB / 1.105 GB, free: 56.64 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/1.502, allocations: 0 / 1.105 GB, free: 56.64 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001907/1.502, allocations: 40.77 kB / 1.105 GB, free: 56.6 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000203/1.502, allocations: 47.97 kB / 1.105 GB, free: 56.55 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000827/1.503, allocations: 1.354 MB / 1.107 GB, free: 55.08 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001973/1.503, allocations: 31.86 kB / 1.107 GB, free: 55.05 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.453e-05/1.503, allocations: 15.98 kB / 1.107 GB, free: 55.04 MB / 0.6042 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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.338e-05/1.503, allocations: 108.9 kB / 1.107 GB, free: 54.92 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.03e-05/1.503, allocations: 27.67 kB / 1.107 GB, free: 54.89 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006104/1.504, allocations: 306.4 kB / 1.107 GB, free: 54.59 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/1.504, allocations: 4.141 kB / 1.107 GB, free: 54.58 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/1.504, allocations: 4 kB / 1.107 GB, free: 54.58 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/1.504, allocations: 3.984 kB / 1.107 GB, free: 54.57 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008502/1.505, allocations: 0.6642 MB / 1.108 GB, free: 53.86 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/1.505, allocations: 0 / 1.108 GB, free: 53.86 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001547/1.505, allocations: 44 kB / 1.108 GB, free: 53.82 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000119/1.505, allocations: 40.77 kB / 1.108 GB, free: 53.77 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.357e-05/1.505, allocations: 7.984 kB / 1.108 GB, free: 53.77 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007369/1.506, allocations: 1.358 MB / 1.109 GB, free: 52.29 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/1.506, allocations: 0 / 1.109 GB, free: 52.29 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006292/1.507, allocations: 487.5 kB / 1.11 GB, free: 51.79 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 4.742e-05/1.507, allocations: 96.77 kB / 1.11 GB, free: 51.67 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.791e-05/1.507, allocations: 7.984 kB / 1.11 GB, free: 51.66 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001949/1.507, allocations: 19.92 kB / 1.11 GB, free: 51.64 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.637e-05/1.507, allocations: 27.92 kB / 1.11 GB, free: 51.62 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.253e-05/1.507, allocations: 11.98 kB / 1.11 GB, free: 51.61 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001046/1.507, allocations: 156.5 kB / 1.11 GB, free: 51.45 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.51e-07/1.507, allocations: 0 / 1.11 GB, free: 51.45 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0004823/1.508, allocations: 127.8 kB / 1.11 GB, free: 51.32 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (checkValve.inlet.m_flow) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004365/1.508, allocations: 300.1 kB / 1.11 GB, free: 51.02 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0005066/1.509, allocations: 394.6 kB / 1.111 GB, free: 50.61 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/1.509, allocations: 0 / 1.111 GB, free: 50.61 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.000271/1.509, allocations: 264.2 kB / 1.111 GB, free: 50.34 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004837/1.509, allocations: 76.7 kB / 1.111 GB, free: 50.26 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007573/1.51, allocations: 386.5 kB / 1.112 GB, free: 49.86 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001935/1.51, allocations: 0.7718 MB / 1.112 GB, free: 49.06 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0001566/1.51, allocations: 37.94 kB / 1.112 GB, free: 49.03 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.171e-05/1.511, allocations: 27.44 kB / 1.112 GB, free: 49 MB / 0.6042 GB Notification: Performance of SimCode: time 2.3e-07/1.511, allocations: 0 / 1.112 GB, free: 49 MB / 0.6042 GB Notification: Performance of Templates: time 0.009/1.52, allocations: 5.547 MB / 1.118 GB, free: 43.49 MB / 0.6042 GB 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","../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches