Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.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: "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_CheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_CheckValve",fmuType="me",version="2.0",platforms={"static"}) [: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.003723/0.003723, allocations: 178.1 kB / 7.453 MB, free: 2.324 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.754/1.754, allocations: 221.4 MB / 229.3 MB, free: 3.012 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.001313/0.001313, allocations: 96.22 kB / 280.1 MB, free: 1.168 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.01571/0.01571, allocations: 1.571 MB / 332.5 MB, free: 12.8 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.9118/0.9118, allocations: 90.04 MB / 473.6 MB, free: 7.133 MB / 314.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.41/1.322, allocations: 76.21 MB / 0.537 GB, free: 14.1 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2318/1.554, allocations: 69.36 MB / 0.6047 GB, free: 8.645 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.547/3.101, allocations: 437.5 MB / 1.032 GB, free: 10.31 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003944/3.101, allocations: 88.92 kB / 1.032 GB, free: 10.27 MB / 0.5886 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.621/3.722, allocations: 75.79 MB / 1.106 GB, free: 204.6 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.307e-05/3.722, allocations: 9.781 kB / 1.106 GB, free: 204.6 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001257/3.722, allocations: 45.62 kB / 1.106 GB, free: 204.5 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005106/3.723, allocations: 316.8 kB / 1.106 GB, free: 204.2 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.085e-05/3.723, allocations: 10.75 kB / 1.106 GB, free: 204.2 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.632e-05/3.723, allocations: 23.38 kB / 1.106 GB, free: 204.2 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006471/3.724, allocations: 325.6 kB / 1.107 GB, free: 204.1 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006163/3.724, allocations: 346.9 kB / 1.107 GB, free: 203.9 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.501e-05/3.724, allocations: 0 / 1.107 GB, free: 203.9 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.431e-05/3.724, allocations: 0.9688 kB / 1.107 GB, free: 203.9 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.214e-05/3.724, allocations: 11.88 kB / 1.107 GB, free: 203.9 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002152/3.727, allocations: 1.804 MB / 1.109 GB, free: 202.2 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005966/3.727, allocations: 339.2 kB / 1.109 GB, free: 202 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002942/3.727, allocations: 172.2 kB / 1.109 GB, free: 201.9 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002034/3.73, allocations: 1.301 MB / 1.111 GB, free: 200.7 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004044/3.73, allocations: 206.4 kB / 1.111 GB, free: 200.6 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=41): time 2.335e-06/3.73, allocations: 1.094 kB / 1.111 GB, free: 200.6 MB / 0.6042 GB Notification: Performance of matching and sorting (n=41): time 0.001629/3.732, allocations: 427.8 kB / 1.111 GB, free: 200.3 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.213e-05/3.732, allocations: 60.14 kB / 1.111 GB, free: 200.3 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003445/3.732, allocations: 224.2 kB / 1.112 GB, free: 200.1 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 4.28e-05/3.732, allocations: 27.08 kB / 1.112 GB, free: 200.1 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001531/3.732, allocations: 163.6 kB / 1.112 GB, free: 199.9 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001369/3.732, allocations: 129.5 kB / 1.112 GB, free: 199.8 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.016e-05/3.732, allocations: 1.375 kB / 1.112 GB, free: 199.8 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001882/3.733, allocations: 349 kB / 1.112 GB, free: 199.5 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003226/3.733, allocations: 120.7 kB / 1.112 GB, free: 199.4 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003436/3.733, allocations: 176.5 kB / 1.112 GB, free: 199.3 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007993/3.734, allocations: 198.4 kB / 1.113 GB, free: 199.2 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/3.734, allocations: 4 kB / 1.113 GB, free: 199.2 MB / 0.6042 GB Notification: Performance of matching and sorting (n=50) (initialization): time 0.001467/3.736, allocations: 476.9 kB / 1.113 GB, free: 199 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.984e-05/3.736, allocations: 5 kB / 1.113 GB, free: 199 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.318e-05/3.736, allocations: 9.219 kB / 1.113 GB, free: 198.9 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003155/3.736, allocations: 37.77 kB / 1.113 GB, free: 198.9 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004247/3.736, allocations: 78.36 kB / 1.113 GB, free: 198.9 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001734/3.738, allocations: 1.355 MB / 1.115 GB, free: 197.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003949/3.739, allocations: 39.81 kB / 1.115 GB, free: 197.5 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.069e-05/3.739, allocations: 16.19 kB / 1.115 GB, free: 197.5 MB / 0.6042 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 ($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 (44): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * 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 0.0001548/3.739, allocations: 107.2 kB / 1.115 GB, free: 197.4 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.415e-05/3.739, allocations: 39.45 kB / 1.115 GB, free: 197.4 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001803/3.741, allocations: 0.559 MB / 1.115 GB, free: 197.1 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.37e-05/3.741, allocations: 4.562 kB / 1.115 GB, free: 197.1 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.306e-06/3.741, allocations: 1.281 kB / 1.115 GB, free: 197.1 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.204e-05/3.741, allocations: 3.984 kB / 1.115 GB, free: 197.1 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002514/3.743, allocations: 1.002 MB / 1.116 GB, free: 196.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-06/3.743, allocations: 0 / 1.116 GB, free: 196.4 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003362/3.744, allocations: 82.33 kB / 1.116 GB, free: 196.3 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001935/3.744, allocations: 48.22 kB / 1.116 GB, free: 196.3 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.86e-05/3.744, allocations: 7.562 kB / 1.116 GB, free: 196.3 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001503/3.745, allocations: 1.343 MB / 1.118 GB, free: 195 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.853e-06/3.745, allocations: 3.906 kB / 1.118 GB, free: 195 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001847/3.747, allocations: 0.7539 MB / 1.118 GB, free: 194.5 MB / 0.6042 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002241/3.75, allocations: 1.319 MB / 1.12 GB, free: 193.5 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000146/3.75, allocations: 110.4 kB / 1.12 GB, free: 193.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.823e-05/3.75, allocations: 5.656 kB / 1.12 GB, free: 193.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002816/3.75, allocations: 23.36 kB / 1.12 GB, free: 193.4 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001367/3.75, allocations: 34.91 kB / 1.12 GB, free: 193.4 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.692e-05/3.75, allocations: 13.83 kB / 1.12 GB, free: 193.4 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.0002012/3.75, allocations: 174.8 kB / 1.12 GB, free: 193.3 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.001547/3.752, allocations: 208.2 kB / 1.12 GB, free: 193.2 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (checkValve.rear.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 (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0006954/3.753, allocations: 339.8 kB / 1.121 GB, free: 193 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001052/3.754, allocations: 476.5 kB / 1.121 GB, free: 192.7 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/3.754, allocations: 0 / 1.121 GB, free: 192.7 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0005014/3.754, allocations: 307.8 kB / 1.121 GB, free: 192.5 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006409/3.755, allocations: 90.66 kB / 1.121 GB, free: 192.4 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001246/3.756, allocations: 0.5187 MB / 1.122 GB, free: 191.9 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003912/3.757, allocations: 0.8499 MB / 1.123 GB, free: 191 MB / 0.6042 GB Notification: Performance of SimCode: time 9.12e-07/3.757, allocations: 4 kB / 1.123 GB, free: 191 MB / 0.6042 GB (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_CheckValve_fmu --startTime=0 --stopTime=1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Undirected_FlowControl_Tests_CheckValve.fmu > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat does not exist to compare? outputFormat=mat