Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.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) 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(Modelica.Media.Examples.IdealGasH2O,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_IdealGasH2O",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.IdealGasH2O,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_IdealGasH2O",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.000907/0.000907, allocations: 182 kB / 8.129 MB, free: 2.219 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.086/1.086, allocations: 221.4 MB / 229.9 MB, free: 3.07 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.0008571/0.0008571, allocations: 97.72 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0896/0.09049, allocations: 55.81 MB / 336.6 MB, free: 9.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1737/0.2642, allocations: 50.39 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.561/0.8253, allocations: 442.5 MB / 0.81 GB, free: 7.988 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000199/0.8255, allocations: 72.06 kB / 0.8101 GB, free: 7.953 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.1784/1.004, allocations: 25.27 MB / 0.8348 GB, free: 164 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.283e-05/1.004, allocations: 12.97 kB / 0.8348 GB, free: 164 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005704/1.01, allocations: 0.5359 MB / 0.8353 GB, free: 163.9 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.116e-05/1.01, allocations: 163 kB / 0.8355 GB, free: 163.8 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.423e-05/1.01, allocations: 1.469 kB / 0.8355 GB, free: 163.8 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.335e-05/1.01, allocations: 5.094 kB / 0.8355 GB, free: 163.8 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000438/1.01, allocations: 227.6 kB / 0.8357 GB, free: 163.6 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001651/1.01, allocations: 119.4 kB / 0.8358 GB, free: 163.5 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/1.011, allocations: 3.938 kB / 0.8358 GB, free: 163.5 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.003e-05/1.011, allocations: 0 / 0.8358 GB, free: 163.5 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.491e-06/1.011, allocations: 4 kB / 0.8358 GB, free: 163.5 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008722/1.011, allocations: 396.7 kB / 0.8362 GB, free: 163.1 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000661/1.012, allocations: 158.6 kB / 0.8363 GB, free: 163 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.438e-05/1.012, allocations: 52.91 kB / 0.8364 GB, free: 162.9 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.824e-05/1.012, allocations: 7.672 kB / 0.8364 GB, free: 162.9 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.161e-05/1.012, allocations: 38.56 kB / 0.8364 GB, free: 162.9 MB / 442.7 MB Notification: Performance of pre-optimization done (n=13): time 1.362e-06/1.012, allocations: 0 / 0.8364 GB, free: 162.9 MB / 442.7 MB Notification: Performance of matching and sorting (n=17): time 0.001083/1.013, allocations: 287.5 kB / 0.8367 GB, free: 162.6 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.909e-05/1.013, allocations: 55.41 kB / 0.8368 GB, free: 162.6 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.571e-05/1.013, allocations: 96.56 kB / 0.8369 GB, free: 162.5 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.27e-05/1.013, allocations: 29.7 kB / 0.8369 GB, free: 162.4 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.416e-05/1.013, allocations: 87.95 kB / 0.837 GB, free: 162.3 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.517e-05/1.014, allocations: 55.11 kB / 0.837 GB, free: 162.3 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.786e-05/1.014, allocations: 0 / 0.837 GB, free: 162.3 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 4.151e-05/1.014, allocations: 318.4 kB / 0.8373 GB, free: 162 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.048e-05/1.014, allocations: 60.27 kB / 0.8374 GB, free: 161.9 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001011/1.014, allocations: 86.5 kB / 0.8375 GB, free: 161.8 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000109/1.014, allocations: 71.72 kB / 0.8375 GB, free: 161.7 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/1.014, allocations: 0 / 0.8375 GB, free: 161.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003218/1.014, allocations: 190.9 kB / 0.8377 GB, free: 161.6 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/1.014, allocations: 4 kB / 0.8377 GB, free: 161.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/1.014, allocations: 0 / 0.8377 GB, free: 161.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/1.014, allocations: 8.5 kB / 0.8377 GB, free: 161.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003904/1.015, allocations: 60.06 kB / 0.8378 GB, free: 161.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.023e-05/1.015, allocations: 4 kB / 0.8378 GB, free: 161.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002633/1.015, allocations: 8.172 kB / 0.8378 GB, free: 161.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.061e-05/1.015, allocations: 14.2 kB / 0.8378 GB, free: 161.5 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 8.079e-05/1.015, allocations: 116.4 kB / 0.8379 GB, free: 161.4 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.334e-05/1.015, allocations: 7.906 kB / 0.8379 GB, free: 161.4 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005499/1.016, allocations: 241.5 kB / 0.8382 GB, free: 161.2 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/1.016, allocations: 4 kB / 0.8382 GB, free: 161.2 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.389e-06/1.016, allocations: 4 kB / 0.8382 GB, free: 161.2 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/1.016, allocations: 1.688 kB / 0.8382 GB, free: 161.2 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007932/1.017, allocations: 0.4915 MB / 0.8386 GB, free: 160.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/1.017, allocations: 4 kB / 0.8386 GB, free: 160.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003465/1.017, allocations: 47.38 kB / 0.8387 GB, free: 160.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.499e-06/1.017, allocations: 0 / 0.8387 GB, free: 160.6 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.611e-05/1.017, allocations: 6.625 kB / 0.8387 GB, free: 160.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/1.017, allocations: 0 / 0.8387 GB, free: 160.6 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/1.017, allocations: 0 / 0.8387 GB, free: 160.6 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003092/1.017, allocations: 314.5 kB / 0.839 GB, free: 160.3 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003987/1.018, allocations: 0.6835 MB / 0.8397 GB, free: 159.6 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.379e-05/1.018, allocations: 86.42 kB / 0.8398 GB, free: 159.5 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.006e-05/1.018, allocations: 0 / 0.8398 GB, free: 159.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002775/1.018, allocations: 12.36 kB / 0.8398 GB, free: 159.5 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.925e-05/1.018, allocations: 16.36 kB / 0.8398 GB, free: 159.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.632e-05/1.018, allocations: 10.44 kB / 0.8398 GB, free: 159.5 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.92e-05/1.018, allocations: 88.31 kB / 0.8399 GB, free: 159.4 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0009947/1.019, allocations: 103.6 kB / 0.84 GB, free: 159.3 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 18 * 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.0006042/1.02, allocations: 0.6082 MB / 0.8406 GB, free: 158.8 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0002559/1.02, allocations: 158.8 kB / 0.8407 GB, free: 158.6 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/1.02, allocations: 0 / 0.8407 GB, free: 158.6 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000107/1.02, allocations: 75.92 kB / 0.8408 GB, free: 158.6 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002839/1.02, allocations: 28.34 kB / 0.8408 GB, free: 158.5 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005638/1.021, allocations: 179.9 kB / 0.841 GB, free: 158.3 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003094/1.021, allocations: 0.7513 MB / 0.8417 GB, free: 157.5 MB / 442.7 MB Notification: Performance of SimCode: time 2.5e-07/1.021, allocations: 0 / 0.8417 GB, free: 157.5 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_IdealGasH2O_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_IdealGasH2O.fmu > Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O_res.mat does not exist to compare? outputFormat=mat