Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.IdealGasH2O.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.IdealGasH2O,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_IdealGasH2O",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.IdealGasH2O,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001438/0.001439, allocations: 179.3 kB / 8.478 MB, free: 1.871 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.334/1.334, allocations: 205.2 MB / 214.1 MB, free: 5.168 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.0008712/0.0008712, allocations: 86.3 kB / 262.1 MB, free: 5.215 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1482/0.1491, allocations: 52.96 MB / 315.1 MB, free: 41.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06389/0.213, allocations: 47.57 MB / 362.6 MB, free: 9.91 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7137/0.9267, allocations: 441.5 MB / 0.7852 GB, free: 131.3 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002166/0.927, allocations: 63.97 kB / 0.7853 GB, free: 131.2 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0512/0.9782, allocations: 24.73 MB / 0.8095 GB, free: 106.4 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/0.9783, allocations: 8 kB / 0.8095 GB, free: 106.4 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00587/0.9842, allocations: 0.538 MB / 0.81 GB, free: 105.8 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.049e-05/0.9843, allocations: 163 kB / 0.8101 GB, free: 105.6 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.549e-05/0.9843, allocations: 4 kB / 0.8101 GB, free: 105.6 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001015/0.9844, allocations: 8 kB / 0.8102 GB, free: 105.6 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005182/0.9849, allocations: 227.9 kB / 0.8104 GB, free: 105.4 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001983/0.9851, allocations: 113.5 kB / 0.8105 GB, free: 105.3 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/0.9851, allocations: 0 / 0.8105 GB, free: 105.3 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.397e-05/0.9852, allocations: 0 / 0.8105 GB, free: 105.3 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.387e-06/0.9852, allocations: 4 kB / 0.8105 GB, free: 105.3 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009932/0.9862, allocations: 393.2 kB / 0.8109 GB, free: 104.8 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007087/0.9869, allocations: 157.6 kB / 0.811 GB, free: 104.7 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.422e-05/0.987, allocations: 56.91 kB / 0.8111 GB, free: 104.6 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.305e-05/0.9871, allocations: 8 kB / 0.8111 GB, free: 104.6 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.553e-05/0.9871, allocations: 34.5 kB / 0.8111 GB, free: 104.6 MB / 426.7 MB Notification: Performance of pre-optimization done (n=13): time 1.763e-06/0.9871, allocations: 0 / 0.8111 GB, free: 104.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=17): time 0.001145/0.9882, allocations: 285.6 kB / 0.8114 GB, free: 104.3 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.975e-05/0.9883, allocations: 55.41 kB / 0.8114 GB, free: 104.2 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.441e-05/0.9884, allocations: 101 kB / 0.8115 GB, free: 104.1 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.489e-05/0.9884, allocations: 29.64 kB / 0.8116 GB, free: 104.1 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.318e-05/0.9884, allocations: 91.89 kB / 0.8116 GB, free: 104 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.082e-05/0.9885, allocations: 59.11 kB / 0.8117 GB, free: 103.9 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.934e-05/0.9885, allocations: 0 / 0.8117 GB, free: 103.9 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 5.167e-05/0.9886, allocations: 322.8 kB / 0.812 GB, free: 103.6 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000122/0.9887, allocations: 48.38 kB / 0.8121 GB, free: 103.6 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001129/0.9888, allocations: 98.09 kB / 0.8121 GB, free: 103.4 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001133/0.9889, allocations: 67.41 kB / 0.8122 GB, free: 103.4 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-06/0.9889, allocations: 0 / 0.8122 GB, free: 103.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000316/0.9893, allocations: 193.4 kB / 0.8124 GB, free: 103.2 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/0.9893, allocations: 4 kB / 0.8124 GB, free: 103.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.321e-06/0.9893, allocations: 4.312 kB / 0.8124 GB, free: 103.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.9893, allocations: 4 kB / 0.8124 GB, free: 103.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003836/0.9897, allocations: 51.89 kB / 0.8125 GB, free: 103.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.9897, allocations: 4 kB / 0.8125 GB, free: 103.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002622/0.99, allocations: 11.97 kB / 0.8125 GB, free: 103.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.119e-05/0.99, allocations: 15.98 kB / 0.8125 GB, free: 103.1 MB / 426.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 7.843e-05/0.9901, allocations: 104.9 kB / 0.8126 GB, free: 103 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.602e-05/0.9902, allocations: 15.91 kB / 0.8126 GB, free: 103 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005592/0.9907, allocations: 237.7 kB / 0.8128 GB, free: 102.7 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.9908, allocations: 4 kB / 0.8128 GB, free: 102.7 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.9908, allocations: 0 / 0.8128 GB, free: 102.7 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.9908, allocations: 3.906 kB / 0.8128 GB, free: 102.7 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008263/0.9916, allocations: 0.4964 MB / 0.8133 GB, free: 102.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.9916, allocations: 4 kB / 0.8133 GB, free: 102.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003508/0.992, allocations: 47.89 kB / 0.8134 GB, free: 102.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.992, allocations: 0 / 0.8134 GB, free: 102.1 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.677e-05/0.992, allocations: 4 kB / 0.8134 GB, free: 102.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.992, allocations: 3.984 kB / 0.8134 GB, free: 102.1 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.992, allocations: 0 / 0.8134 GB, free: 102.1 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003222/0.9924, allocations: 315.8 kB / 0.8137 GB, free: 101.8 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004566/0.9928, allocations: 0.6922 MB / 0.8144 GB, free: 101 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.959e-05/0.9929, allocations: 85.02 kB / 0.8144 GB, free: 100.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.332e-05/0.9929, allocations: 0 / 0.8144 GB, free: 100.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002775/0.9932, allocations: 11.98 kB / 0.8144 GB, free: 100.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.201e-05/0.9933, allocations: 15.89 kB / 0.8145 GB, free: 100.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.749e-05/0.9933, allocations: 11.98 kB / 0.8145 GB, free: 100.9 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.31e-05/0.9933, allocations: 83.28 kB / 0.8146 GB, free: 100.8 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001048/0.9944, allocations: 104 kB / 0.8147 GB, free: 100.7 MB / 426.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.000785/0.9952, allocations: 0.6084 MB / 0.8152 GB, free: 100.1 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0003032/0.9955, allocations: 151.9 kB / 0.8154 GB, free: 99.96 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.9955, allocations: 0 / 0.8154 GB, free: 99.96 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001242/0.9956, allocations: 79.86 kB / 0.8155 GB, free: 99.89 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000337/0.996, allocations: 40.23 kB / 0.8155 GB, free: 99.85 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006414/0.9966, allocations: 169.2 kB / 0.8157 GB, free: 99.65 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003728/0.997, allocations: 0.7474 MB / 0.8164 GB, free: 98.88 MB / 426.7 MB Notification: Performance of SimCode: time 2.51e-07/0.997, allocations: 0 / 0.8164 GB, free: 98.88 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.IdealGasH2O.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.IdealGasH2O.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.IdealGasH2O.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.IdealGasH2O.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.IdealGasH2O_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_IdealGasH2O_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_IdealGasH2O.fmu > Modelica_3.2.3_Modelica.Media.Examples.IdealGasH2O.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Media.Examples.IdealGasH2O_res.mat does not exist to compare? outputFormat=mat