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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002217/0.002217, allocations: 179.8 kB / 7.464 MB, free: 2.484 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.075/1.075, allocations: 221.4 MB / 229.3 MB, free: 3.008 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.0008343/0.0008342, allocations: 100.9 kB / 280.1 MB, free: 1.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo): time 0.00717/0.007169, allocations: 1.562 MB / 332.5 MB, free: 12.88 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.4159/0.4159, allocations: 90.04 MB / 473.6 MB, free: 7.27 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 5.531e-06/5.551e-06, allocations: 0 / 0.5369 GB, free: 14.32 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1194, allocations: 69.35 MB / 0.6046 GB, free: 8.875 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7481/0.8676, allocations: 435.7 MB / 1.03 GB, free: 12.6 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002248/0.8679, allocations: 75.27 kB / 1.03 GB, free: 12.56 MB / 0.5886 GB Notification: Performance of FrontEnd: time 0.3363/1.204, allocations: 71.2 MB / 1.1 GB, free: 157.2 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 2.471e-05/1.204, allocations: 15.75 kB / 1.1 GB, free: 157.2 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.001209/1.205, allocations: 0.6309 MB / 1.1 GB, free: 156.7 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/1.206, allocations: 11.47 kB / 1.1 GB, free: 156.7 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001131/1.206, allocations: 34.91 kB / 1.1 GB, free: 156.7 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000402/1.206, allocations: 271.7 kB / 1.101 GB, free: 156.5 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.368e-05/1.206, allocations: 3.875 kB / 1.101 GB, free: 156.5 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.807e-05/1.206, allocations: 15.12 kB / 1.101 GB, free: 156.5 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003013/1.206, allocations: 187 kB / 1.101 GB, free: 156.5 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002871/1.207, allocations: 191.2 kB / 1.101 GB, free: 156.4 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/1.207, allocations: 0 / 1.101 GB, free: 156.4 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.369e-05/1.207, allocations: 3.516 kB / 1.101 GB, free: 156.4 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.558e-06/1.207, allocations: 3.906 kB / 1.101 GB, free: 156.4 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001111/1.208, allocations: 0.9815 MB / 1.102 GB, free: 155.8 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001859/1.208, allocations: 116.1 kB / 1.102 GB, free: 155.8 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001499/1.208, allocations: 99.16 kB / 1.102 GB, free: 155.8 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008759/1.209, allocations: 0.8538 MB / 1.103 GB, free: 155.1 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001944/1.209, allocations: 133.4 kB / 1.103 GB, free: 155 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=25): time 1.963e-06/1.209, allocations: 0 / 1.103 GB, free: 155 MB / 0.6042 GB Notification: Performance of matching and sorting (n=25): time 0.0006234/1.21, allocations: 249.7 kB / 1.103 GB, free: 155 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.119e-05/1.21, allocations: 55.31 kB / 1.103 GB, free: 154.9 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000138/1.21, allocations: 189.5 kB / 1.104 GB, free: 154.8 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.056e-05/1.21, allocations: 25.7 kB / 1.104 GB, free: 154.8 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.33e-05/1.21, allocations: 133.5 kB / 1.104 GB, free: 154.7 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 5.072e-05/1.21, allocations: 84.28 kB / 1.104 GB, free: 154.6 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.216e-05/1.21, allocations: 0 / 1.104 GB, free: 154.6 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.71e-05/1.21, allocations: 333.9 kB / 1.104 GB, free: 154.3 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001024/1.211, allocations: 72.7 kB / 1.104 GB, free: 154.3 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001106/1.211, allocations: 106 kB / 1.104 GB, free: 154.3 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002276/1.211, allocations: 79.59 kB / 1.104 GB, free: 154.3 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/1.211, allocations: 3.906 kB / 1.104 GB, free: 154.3 MB / 0.6042 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004921/1.211, allocations: 266.2 kB / 1.105 GB, free: 154.2 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/1.211, allocations: 3.906 kB / 1.105 GB, free: 154.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/1.211, allocations: 0 / 1.105 GB, free: 154.2 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001876/1.212, allocations: 42.67 kB / 1.105 GB, free: 154.2 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002192/1.212, allocations: 49.25 kB / 1.105 GB, free: 154.2 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008406/1.213, allocations: 1.324 MB / 1.106 GB, free: 153 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002064/1.213, allocations: 27.22 kB / 1.106 GB, free: 153 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.334e-05/1.213, allocations: 18.45 kB / 1.106 GB, free: 153 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 7.957e-05/1.213, allocations: 112.8 kB / 1.106 GB, free: 152.9 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.173e-05/1.213, allocations: 27.03 kB / 1.106 GB, free: 152.8 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005976/1.214, allocations: 311.5 kB / 1.107 GB, free: 152.8 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/1.214, allocations: 7.906 kB / 1.107 GB, free: 152.8 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/1.214, allocations: 0 / 1.107 GB, free: 152.8 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/1.214, allocations: 0 / 1.107 GB, free: 152.8 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000844/1.215, allocations: 0.6621 MB / 1.107 GB, free: 152.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/1.215, allocations: 3.906 kB / 1.107 GB, free: 152.5 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001601/1.215, allocations: 46.33 kB / 1.107 GB, free: 152.5 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001217/1.215, allocations: 42.22 kB / 1.107 GB, free: 152.4 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.312e-05/1.215, allocations: 7.75 kB / 1.107 GB, free: 152.4 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007344/1.216, allocations: 1.336 MB / 1.109 GB, free: 151.2 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/1.216, allocations: 0 / 1.109 GB, free: 151.2 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006204/1.216, allocations: 487.9 kB / 1.109 GB, free: 151 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 5.672e-05/1.216, allocations: 100.5 kB / 1.109 GB, free: 150.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.153e-05/1.216, allocations: 3.688 kB / 1.109 GB, free: 150.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002117/1.217, allocations: 19.58 kB / 1.109 GB, free: 150.9 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.715e-05/1.217, allocations: 26.39 kB / 1.109 GB, free: 150.9 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.951e-05/1.217, allocations: 7.953 kB / 1.109 GB, free: 150.9 MB / 0.6042 GB Notification: Performance of sort global known variables: time 8.705e-05/1.217, allocations: 149 kB / 1.109 GB, free: 150.9 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0004501/1.217, allocations: 129.9 kB / 1.109 GB, free: 150.8 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.0004127/1.218, allocations: 303.2 kB / 1.11 GB, free: 150.7 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.00048/1.218, allocations: 365 kB / 1.11 GB, free: 150.5 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/1.218, allocations: 0 / 1.11 GB, free: 150.5 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0002946/1.218, allocations: 257.9 kB / 1.11 GB, free: 150.4 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004341/1.219, allocations: 72.31 kB / 1.11 GB, free: 150.3 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008002/1.22, allocations: 384.9 kB / 1.111 GB, free: 150.2 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002584/1.22, allocations: 0.7958 MB / 1.112 GB, free: 149.5 MB / 0.6042 GB Notification: Performance of SimCode: time 2.61e-07/1.22, allocations: 0 / 1.112 GB, free: 149.5 MB / 0.6042 GB Notification: Performance of Templates: time 0.008765/1.229, allocations: 5.868 MB / 1.117 GB, free: 148.8 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