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.001841/0.001841, allocations: 175 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 221.4 MB / 234.6 MB, free: 14.41 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008412/0.0008413, allocations: 99.27 kB / 285.6 MB, free: 12.99 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.008761/0.008761, allocations: 1.545 MB / 338 MB, free: 8.492 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.5616/0.5616, allocations: 90.04 MB / 479.4 MB, free: 2.988 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 4.173e-05/4.176e-05, allocations: 4 kB / 0.5445 GB, free: 8 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.155/0.155, allocations: 69.36 MB / 0.6122 GB, free: 2.555 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.28/1.435, allocations: 436.5 MB / 1.038 GB, free: 14.23 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002759/1.435, allocations: 80.47 kB / 1.039 GB, free: 14.2 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 0.5996/2.035, allocations: 71.39 MB / 1.108 GB, free: 197.9 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.595e-06/2.035, allocations: 0 / 1.108 GB, free: 197.9 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.17e-05/2.035, allocations: 8 kB / 1.108 GB, free: 197.9 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.001503/2.036, allocations: 0.629 MB / 1.109 GB, free: 197.2 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.218e-05/2.036, allocations: 19.98 kB / 1.109 GB, free: 197.2 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001795/2.037, allocations: 35.58 kB / 1.109 GB, free: 197.2 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004289/2.037, allocations: 266.2 kB / 1.109 GB, free: 196.9 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.23e-05/2.037, allocations: 16.44 kB / 1.109 GB, free: 196.9 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.876e-05/2.037, allocations: 20 kB / 1.109 GB, free: 196.9 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003857/2.038, allocations: 219.3 kB / 1.109 GB, free: 196.6 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/2.038, allocations: 0 / 1.109 GB, free: 196.6 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.462e-05/2.038, allocations: 4 kB / 1.109 GB, free: 196.6 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/2.038, allocations: 8 kB / 1.109 GB, free: 196.6 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003037/2.038, allocations: 193.6 kB / 1.11 GB, free: 196.4 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001331/2.039, allocations: 1.032 MB / 1.111 GB, free: 195.3 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003173/2.04, allocations: 230.5 kB / 1.111 GB, free: 195.1 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001414/2.04, allocations: 100.9 kB / 1.111 GB, free: 194.9 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008398/2.041, allocations: 0.859 MB / 1.112 GB, free: 194 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002606/2.041, allocations: 155.3 kB / 1.112 GB, free: 193.8 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=25): time 3.036e-06/2.041, allocations: 0 / 1.112 GB, free: 193.8 MB / 0.6042 GB Notification: Performance of matching and sorting (n=25): time 0.0005845/2.042, allocations: 266.4 kB / 1.112 GB, free: 193.6 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.964e-05/2.042, allocations: 55.41 kB / 1.112 GB, free: 193.5 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001876/2.042, allocations: 197.1 kB / 1.112 GB, free: 193.3 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.812e-05/2.042, allocations: 33.7 kB / 1.112 GB, free: 193.3 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 6.915e-05/2.042, allocations: 156.4 kB / 1.113 GB, free: 193.1 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 4.887e-05/2.042, allocations: 89.83 kB / 1.113 GB, free: 193 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.518e-05/2.042, allocations: 11.94 kB / 1.113 GB, free: 193 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 8.21e-05/2.042, allocations: 334.8 kB / 1.113 GB, free: 192.7 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001193/2.042, allocations: 68 kB / 1.113 GB, free: 192.6 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000123/2.042, allocations: 102.8 kB / 1.113 GB, free: 192.5 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001456/2.042, allocations: 114.7 kB / 1.113 GB, free: 192.4 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/2.042, allocations: 4 kB / 1.113 GB, free: 192.4 MB / 0.6042 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005322/2.043, allocations: 324.8 kB / 1.114 GB, free: 192 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 3.565e-05/2.043, allocations: 34.8 kB / 1.114 GB, free: 192 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/2.043, allocations: 0 / 1.114 GB, free: 192 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002131/2.043, allocations: 40.83 kB / 1.114 GB, free: 192 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002119/2.044, allocations: 51.97 kB / 1.114 GB, free: 191.9 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009453/2.044, allocations: 1.406 MB / 1.115 GB, free: 190.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002288/2.045, allocations: 39.77 kB / 1.115 GB, free: 190.3 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.48e-05/2.045, allocations: 12 kB / 1.115 GB, free: 190.3 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.564e-05/2.045, allocations: 116.9 kB / 1.115 GB, free: 190.2 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.957e-05/2.045, allocations: 27.84 kB / 1.115 GB, free: 190.2 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000576/2.045, allocations: 323.4 kB / 1.116 GB, free: 189.8 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/2.046, allocations: 4 kB / 1.116 GB, free: 189.8 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/2.046, allocations: 0 / 1.116 GB, free: 189.8 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.962e-06/2.046, allocations: 3.953 kB / 1.116 GB, free: 189.8 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008799/2.046, allocations: 0.731 MB / 1.116 GB, free: 189 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/2.046, allocations: 4.031 kB / 1.116 GB, free: 189 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001587/2.047, allocations: 47.91 kB / 1.116 GB, free: 189 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001305/2.047, allocations: 32.83 kB / 1.116 GB, free: 189 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.723e-05/2.047, allocations: 11.98 kB / 1.116 GB, free: 188.9 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008106/2.048, allocations: 1.409 MB / 1.118 GB, free: 187.4 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/2.048, allocations: 4.031 kB / 1.118 GB, free: 187.4 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005983/2.048, allocations: 498.7 kB / 1.118 GB, free: 186.9 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 7.063e-05/2.048, allocations: 112.6 kB / 1.118 GB, free: 186.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.716e-05/2.048, allocations: 11.95 kB / 1.118 GB, free: 186.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000201/2.049, allocations: 15.98 kB / 1.118 GB, free: 186.7 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.291e-05/2.049, allocations: 28.09 kB / 1.118 GB, free: 186.7 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.067e-05/2.049, allocations: 12.06 kB / 1.118 GB, free: 186.7 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001287/2.049, allocations: 169.4 kB / 1.119 GB, free: 186.5 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.5e-07/2.049, allocations: 0 / 1.119 GB, free: 186.5 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0005366/2.049, allocations: 135.8 kB / 1.119 GB, free: 186.4 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.0005237/2.05, allocations: 304.4 kB / 1.119 GB, free: 186.1 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0006172/2.051, allocations: 407.6 kB / 1.119 GB, free: 185.7 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/2.051, allocations: 8.125 kB / 1.119 GB, free: 185.7 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0003135/2.051, allocations: 260.2 kB / 1.12 GB, free: 185.4 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000512/2.051, allocations: 89.94 kB / 1.12 GB, free: 185.3 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008503/2.052, allocations: 396.8 kB / 1.12 GB, free: 184.9 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002176/2.052, allocations: 0.7716 MB / 1.121 GB, free: 184.1 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0001738/2.053, allocations: 37.95 kB / 1.121 GB, free: 184.1 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.795e-05/2.053, allocations: 31.42 kB / 1.121 GB, free: 184 MB / 0.6042 GB Notification: Performance of SimCode: time 6.51e-07/2.053, allocations: 0 / 1.121 GB, free: 184 MB / 0.6042 GB Notification: Performance of Templates: time 0.01171/2.064, allocations: 6.859 MB / 1.128 GB, free: 177.2 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