Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.SimpleLiquidWater.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.SimpleLiquidWater,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_SimpleLiquidWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.SimpleLiquidWater,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_SimpleLiquidWater",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 3.2.3+maint.om/package.mo): time 0.001107/0.001107, allocations: 180 kB / 8.478 MB, free: 1.879 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.331/1.331, allocations: 205.2 MB / 214.1 MB, free: 5.172 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000877/0.0008768, allocations: 90.23 kB / 262.1 MB, free: 5.215 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1845/0.1854, allocations: 52.96 MB / 315.1 MB, free: 41.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06816/0.2535, allocations: 47.57 MB / 362.6 MB, free: 9.898 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.429/0.6826, allocations: 271.9 MB / 0.6196 GB, free: 135.6 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001733/0.6828, allocations: 67.62 kB / 0.6197 GB, free: 135.5 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.01861/0.7015, allocations: 9.545 MB / 0.629 GB, free: 125.9 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.957e-05/0.7015, allocations: 11.94 kB / 0.629 GB, free: 125.9 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001726/0.7017, allocations: 19.89 kB / 0.629 GB, free: 125.9 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001949/0.7019, allocations: 210.8 kB / 0.6292 GB, free: 125.6 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.02e-05/0.7019, allocations: 4 kB / 0.6292 GB, free: 125.6 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.884e-05/0.7019, allocations: 15.94 kB / 0.6293 GB, free: 125.6 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001955/0.7021, allocations: 112.5 kB / 0.6294 GB, free: 125.5 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002064/0.7024, allocations: 184.4 kB / 0.6295 GB, free: 125.3 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.7024, allocations: 3.938 kB / 0.6296 GB, free: 125.3 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.28e-05/0.7024, allocations: 0 / 0.6296 GB, free: 125.3 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.7024, allocations: 4 kB / 0.6296 GB, free: 125.3 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009536/0.7034, allocations: 0.9172 MB / 0.6305 GB, free: 124.3 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00019/0.7036, allocations: 114.8 kB / 0.6306 GB, free: 124.2 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.833e-05/0.7036, allocations: 40.86 kB / 0.6306 GB, free: 124.1 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003968/0.7041, allocations: 0.4996 MB / 0.6311 GB, free: 123.6 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.969e-05/0.7041, allocations: 42.47 kB / 0.6311 GB, free: 123.5 MB / 426.7 MB Notification: Performance of pre-optimization done (n=14): time 1.443e-06/0.7041, allocations: 7.875 kB / 0.6311 GB, free: 123.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=20): time 0.001629/0.7057, allocations: 0.5934 MB / 0.6317 GB, free: 122.9 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.296e-05/0.7057, allocations: 55.41 kB / 0.6318 GB, free: 122.8 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.108e-05/0.7058, allocations: 132.5 kB / 0.6319 GB, free: 122.7 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.892e-05/0.7059, allocations: 25.7 kB / 0.6319 GB, free: 122.6 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.441e-05/0.7059, allocations: 143.7 kB / 0.6321 GB, free: 122.5 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.702e-05/0.7059, allocations: 75 kB / 0.6321 GB, free: 122.4 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.415e-05/0.706, allocations: 0 / 0.6321 GB, free: 122.4 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 4.16e-05/0.706, allocations: 322.8 kB / 0.6324 GB, free: 122.1 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.788e-05/0.7061, allocations: 63.69 kB / 0.6325 GB, free: 122 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001144/0.7062, allocations: 167.2 kB / 0.6327 GB, free: 121.8 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001515/0.7064, allocations: 85.58 kB / 0.6327 GB, free: 121.7 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-06/0.7064, allocations: 0 / 0.6327 GB, free: 121.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003647/0.7068, allocations: 251.1 kB / 0.633 GB, free: 121.5 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.898e-06/0.7068, allocations: 8 kB / 0.633 GB, free: 121.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.7068, allocations: 4 kB / 0.633 GB, free: 121.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.184e-05/0.7068, allocations: 4 kB / 0.633 GB, free: 121.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003628/0.7072, allocations: 79.88 kB / 0.6331 GB, free: 121.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.7072, allocations: 11.94 kB / 0.6331 GB, free: 121.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002303/0.7074, allocations: 20.23 kB / 0.6331 GB, free: 121.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.965e-05/0.7075, allocations: 16 kB / 0.6331 GB, free: 121.3 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 37 * 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 6.08e-05/0.7075, allocations: 104.9 kB / 0.6332 GB, free: 121.2 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.254e-05/0.7076, allocations: 15.81 kB / 0.6332 GB, free: 121.2 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004037/0.708, allocations: 202.1 kB / 0.6334 GB, free: 121 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.708, allocations: 0 / 0.6334 GB, free: 121 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.708, allocations: 0 / 0.6334 GB, free: 121 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.708, allocations: 7.984 kB / 0.6334 GB, free: 121 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008236/0.7088, allocations: 0.5176 MB / 0.6339 GB, free: 120.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.7089, allocations: 0 / 0.6339 GB, free: 120.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000291/0.7092, allocations: 60.02 kB / 0.634 GB, free: 120.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.7092, allocations: 3.938 kB / 0.634 GB, free: 120.4 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.98e-05/0.7092, allocations: 8 kB / 0.634 GB, free: 120.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.7092, allocations: 0 / 0.634 GB, free: 120.4 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.7092, allocations: 4 kB / 0.634 GB, free: 120.4 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003714/0.7096, allocations: 385.4 kB / 0.6344 GB, free: 119.9 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004669/0.7101, allocations: 0.8152 MB / 0.6352 GB, free: 119.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.683e-05/0.7101, allocations: 92.97 kB / 0.6353 GB, free: 118.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.824e-05/0.7101, allocations: 8 kB / 0.6353 GB, free: 118.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002483/0.7104, allocations: 7.984 kB / 0.6353 GB, free: 118.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.049e-05/0.7104, allocations: 19.89 kB / 0.6353 GB, free: 118.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.242e-05/0.7105, allocations: 11.98 kB / 0.6353 GB, free: 118.9 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.93e-05/0.7105, allocations: 103.3 kB / 0.6354 GB, free: 118.8 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0008813/0.7114, allocations: 63.94 kB / 0.6355 GB, free: 118.7 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 20 * 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.0001523/0.7115, allocations: 147.1 kB / 0.6356 GB, free: 118.6 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0002438/0.7118, allocations: 163.8 kB / 0.6358 GB, free: 118.4 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.7118, allocations: 0 / 0.6358 GB, free: 118.4 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 8.638e-05/0.7119, allocations: 75.8 kB / 0.6358 GB, free: 118.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002756/0.7122, allocations: 29.16 kB / 0.6359 GB, free: 118.3 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006193/0.7128, allocations: 283.9 kB / 0.6361 GB, free: 118 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002255/0.713, allocations: 0.7547 MB / 0.6369 GB, free: 117.2 MB / 426.7 MB Notification: Performance of SimCode: time 2.6e-07/0.7131, allocations: 0 / 0.6369 GB, free: 117.2 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.SimpleLiquidWater.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.SimpleLiquidWater.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.SimpleLiquidWater.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.SimpleLiquidWater.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.SimpleLiquidWater_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_SimpleLiquidWater_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_SimpleLiquidWater.fmu > Modelica_3.2.3_Modelica.Media.Examples.SimpleLiquidWater.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Media.Examples.SimpleLiquidWater_res.mat does not exist to compare? outputFormat=mat