Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.FlueGas.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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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(ModelicaTest.Media.TestOnly.FlueGas,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_FlueGas",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.FlueGas,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_FlueGas",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.001/0.001, allocations: 179 kB / 8.517 MB, free: 1.855 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.164/1.164, allocations: 221.4 MB / 230.3 MB, free: 7.73 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.0009254/0.0009254, allocations: 87.98 kB / 281.2 MB, free: 5.523 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1589/0.1589, allocations: 44.14 MB / 376.1 MB, free: 3.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1744/0.3333, allocations: 68.02 MB / 444.1 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08917/0.4225, allocations: 61.91 MB / 0.4942 GB, free: 1.562 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.122/1.545, allocations: 0.7317 GB / 1.226 GB, free: 67.75 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001884/1.545, allocations: 67.97 kB / 1.226 GB, free: 67.68 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.1208/1.666, allocations: 63.38 MB / 1.288 GB, free: 3.316 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/1.666, allocations: 15.94 kB / 1.288 GB, free: 3.301 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005909/1.672, allocations: 0.8536 MB / 1.289 GB, free: 2.449 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004128/1.672, allocations: 278.8 kB / 1.289 GB, free: 2.137 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.538e-06/1.672, allocations: 12 kB / 1.289 GB, free: 2.125 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001196/1.672, allocations: 11.91 kB / 1.289 GB, free: 2.113 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001022/1.673, allocations: 0.6367 MB / 1.29 GB, free: 1.477 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005261/1.674, allocations: 404.5 kB / 1.29 GB, free: 1.066 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.817e-06/1.674, allocations: 0 / 1.29 GB, free: 1.066 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.076e-05/1.674, allocations: 7.969 kB / 1.29 GB, free: 1.059 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.693e-05/1.674, allocations: 8 kB / 1.29 GB, free: 1.051 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1299/1.804, allocations: 1.3 MB / 1.291 GB, free: 219.8 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004442/1.804, allocations: 325.6 kB / 1.292 GB, free: 219.8 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002664/1.805, allocations: 225.8 kB / 1.292 GB, free: 219.8 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000817/1.805, allocations: 363.6 kB / 1.292 GB, free: 219.5 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.598e-05/1.805, allocations: 38.59 kB / 1.292 GB, free: 219.4 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=28): time 2.986e-06/1.805, allocations: 3.469 kB / 1.292 GB, free: 219.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=28): time 0.0008169/1.806, allocations: 441.8 kB / 1.293 GB, free: 219.4 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.006e-05/1.806, allocations: 79.77 kB / 1.293 GB, free: 219.3 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.016e-05/1.806, allocations: 124.6 kB / 1.293 GB, free: 219.2 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 4.386e-05/1.806, allocations: 25.7 kB / 1.293 GB, free: 219.2 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 3.258e-05/1.806, allocations: 113.4 kB / 1.293 GB, free: 219.1 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 6.765e-05/1.806, allocations: 103.4 kB / 1.293 GB, free: 219.1 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.577e-05/1.807, allocations: 0 / 1.293 GB, free: 219.1 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 4.782e-05/1.807, allocations: 333.1 kB / 1.293 GB, free: 218.8 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002567/1.807, allocations: 206.6 kB / 1.294 GB, free: 218.8 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002897/1.807, allocations: 299.2 kB / 1.294 GB, free: 218.6 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003369/1.807, allocations: 232.9 kB / 1.294 GB, free: 218.6 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/1.808, allocations: 0 / 1.294 GB, free: 218.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008063/1.808, allocations: 0.5403 MB / 1.295 GB, free: 218.6 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.195e-05/1.808, allocations: 10.84 kB / 1.295 GB, free: 218.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.014e-06/1.808, allocations: 3.938 kB / 1.295 GB, free: 218.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/1.808, allocations: 3.812 kB / 1.295 GB, free: 218.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006018/1.809, allocations: 86.88 kB / 1.295 GB, free: 218.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.134e-06/1.809, allocations: 3.969 kB / 1.295 GB, free: 218.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004574/1.809, allocations: 43.28 kB / 1.295 GB, free: 218.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.092e-05/1.81, allocations: 19.14 kB / 1.295 GB, free: 218.6 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001081/1.81, allocations: 116.5 kB / 1.295 GB, free: 218.5 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001146/1.81, allocations: 18.75 kB / 1.295 GB, free: 218.5 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009932/1.811, allocations: 0.5406 MB / 1.295 GB, free: 218.4 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/1.811, allocations: 3.219 kB / 1.295 GB, free: 218.4 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/1.811, allocations: 0 / 1.295 GB, free: 218.4 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/1.811, allocations: 3.609 kB / 1.295 GB, free: 218.4 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006744/1.811, allocations: 0.5059 MB / 1.296 GB, free: 218.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-06/1.811, allocations: 0 / 1.296 GB, free: 218.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005948/1.812, allocations: 62.75 kB / 1.296 GB, free: 218.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/1.812, allocations: 3.703 kB / 1.296 GB, free: 218.2 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.864e-05/1.812, allocations: 4.781 kB / 1.296 GB, free: 218.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/1.812, allocations: 9.719 kB / 1.296 GB, free: 218.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/1.812, allocations: 6.469 kB / 1.296 GB, free: 218.2 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009296/1.813, allocations: 0.7241 MB / 1.297 GB, free: 217.9 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001275/1.814, allocations: 1.355 MB / 1.298 GB, free: 217.3 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 4.495e-05/1.814, allocations: 97.31 kB / 1.298 GB, free: 217.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.135e-05/1.815, allocations: 10.25 kB / 1.298 GB, free: 217.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005442/1.815, allocations: 14.7 kB / 1.298 GB, free: 217.2 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.141e-05/1.815, allocations: 18.42 kB / 1.298 GB, free: 217.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.161e-05/1.815, allocations: 26.14 kB / 1.298 GB, free: 217.2 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.784e-05/1.815, allocations: 94.45 kB / 1.298 GB, free: 217.1 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00144/1.817, allocations: 257.2 kB / 1.299 GB, free: 217.1 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 8 (state.p,state.T,medium2.p,medium2.T,medium2.X[1],medium2.X[2],medium2.X[3],medium2.X[4]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00134/1.818, allocations: 0.8772 MB / 1.299 GB, free: 217 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0006535/1.819, allocations: 480.7 kB / 1.3 GB, free: 217 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/1.819, allocations: 0 / 1.3 GB, free: 217 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0002856/1.819, allocations: 236.2 kB / 1.3 GB, free: 217 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005779/1.82, allocations: 91.48 kB / 1.3 GB, free: 217 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001202/1.821, allocations: 0.7745 MB / 1.301 GB, free: 216.9 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004536/1.821, allocations: 0.7956 MB / 1.302 GB, free: 216.2 MB / 0.5105 GB Notification: Performance of SimCode: time 3.1e-07/1.821, allocations: 0 / 1.302 GB, free: 216.2 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.FlueGas.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.FlueGas.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.FlueGas.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.FlueGas.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.FlueGas_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_FlueGas_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_FlueGas.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.FlueGas.pipe 2>&1)