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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001074/0.001074, allocations: 94.55 kB / 16.3 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001192/0.001192, allocations: 181.3 kB / 17.19 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.33/1.33, allocations: 223.2 MB / 241.1 MB, free: 5.371 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002639/0.000264, allocations: 7.5 kB / 300.8 MB, free: 6.043 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.101, allocations: 50.42 MB / 351.2 MB, free: 11.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.IdealGasH2O): time 0.3412/0.4423, allocations: 125.4 MB / 476.6 MB, free: 10.52 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001931/0.4442, allocations: 2.114 MB / 478.8 MB, free: 10.2 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.601e-05/0.4443, allocations: 3.938 kB / 478.8 MB, free: 10.2 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001312/0.4444, allocations: 16.56 kB / 478.8 MB, free: 10.19 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007401/0.4452, allocations: 281.9 kB / 479.1 MB, free: 10.11 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001379/0.4453, allocations: 46.84 kB / 479.1 MB, free: 10.1 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 7.961e-05/0.4454, allocations: 60.25 kB / 479.2 MB, free: 10.09 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.799e-05/0.4455, allocations: 6.344 kB / 479.2 MB, free: 10.09 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001497/0.4456, allocations: 46.92 kB / 479.2 MB, free: 10.08 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.782e-05/0.4457, allocations: 26.41 kB / 479.2 MB, free: 10.07 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.957e-06/0.4457, allocations: 3.062 kB / 479.2 MB, free: 10.07 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006553/0.4464, allocations: 382.8 kB / 479.6 MB, free: 9.996 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.191e-05/0.4464, allocations: 5.938 kB / 479.6 MB, free: 9.996 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.722e-05/0.4465, allocations: 32.92 kB / 479.6 MB, free: 9.965 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000348/0.4468, allocations: 202 kB / 479.8 MB, free: 9.906 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.4468, allocations: 4 kB / 479.9 MB, free: 9.902 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.4468, allocations: 0 / 479.9 MB, free: 9.902 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.4468, allocations: 0 / 479.9 MB, free: 9.902 MB / 366.1 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.0009692/0.4478, allocations: 430.5 kB / 480.3 MB, free: 9.492 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.4479, allocations: 10.31 kB / 480.3 MB, free: 9.492 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.697e-05/0.4479, allocations: 41.06 kB / 480.3 MB, free: 9.449 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006012/0.4539, allocations: 453.5 kB / 480.8 MB, free: 9.266 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001228/0.4541, allocations: 168.9 kB / 480.9 MB, free: 9.066 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.73e-05/0.4541, allocations: 8.375 kB / 480.9 MB, free: 9.062 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.71e-05/0.4542, allocations: 7.688 kB / 480.9 MB, free: 9.062 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007662/0.455, allocations: 296.8 kB / 481.2 MB, free: 8.926 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.583e-05/0.455, allocations: 7.953 kB / 481.2 MB, free: 8.918 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.768e-05/0.455, allocations: 3.062 kB / 481.2 MB, free: 8.918 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.4551, allocations: 2.281 kB / 481.2 MB, free: 8.918 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007724/0.4558, allocations: 270.1 kB / 481.5 MB, free: 8.863 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001019/0.4569, allocations: 429.1 kB / 481.9 MB, free: 8.516 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009475/0.4578, allocations: 200.2 kB / 482.1 MB, free: 8.445 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.9e-05/0.4579, allocations: 3.188 kB / 482.1 MB, free: 8.445 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.737e-05/0.4579, allocations: 36.66 kB / 482.2 MB, free: 8.402 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 1.974e-06/0.4579, allocations: 0 / 482.2 MB, free: 8.402 MB / 366.1 MB Notification: Performance of matching and sorting (n=17): time 0.00168/0.4596, allocations: 416.6 kB / 482.6 MB, free: 8.281 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.742e-05/0.4597, allocations: 69.06 kB / 482.6 MB, free: 8.203 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.354e-05/0.4598, allocations: 99.39 kB / 482.7 MB, free: 8.105 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.574e-05/0.4598, allocations: 28.95 kB / 482.8 MB, free: 8.074 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.757e-05/0.4599, allocations: 93.08 kB / 482.9 MB, free: 7.984 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.841e-05/0.46, allocations: 62.11 kB / 482.9 MB, free: 7.938 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.983e-05/0.46, allocations: 3.188 kB / 482.9 MB, free: 7.938 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001737/0.4602, allocations: 316.8 kB / 483.2 MB, free: 7.625 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002727/0.4604, allocations: 82.12 kB / 483.3 MB, free: 7.605 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002792/0.4607, allocations: 119.4 kB / 483.4 MB, free: 7.543 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002584/0.461, allocations: 81.56 kB / 483.5 MB, free: 7.531 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.461, allocations: 3.938 kB / 483.5 MB, free: 7.527 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006387/0.4617, allocations: 247.3 kB / 483.7 MB, free: 7.449 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/0.4617, allocations: 4.594 kB / 483.8 MB, free: 7.449 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.4617, allocations: 6.734 kB / 483.8 MB, free: 7.445 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.939e-05/0.4617, allocations: 2.562 kB / 483.8 MB, free: 7.445 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003734/0.4621, allocations: 52.52 kB / 483.8 MB, free: 7.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.4621, allocations: 3.953 kB / 483.8 MB, free: 7.426 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002493/0.4624, allocations: 14.64 kB / 483.8 MB, free: 7.422 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.116e-05/0.4624, allocations: 14.56 kB / 483.8 MB, free: 7.418 MB / 366.1 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 () * Number of clocked 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 0.0001469/0.4626, allocations: 120.6 kB / 484 MB, free: 7.301 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.401e-05/0.4626, allocations: 8.125 kB / 484 MB, free: 7.297 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008128/0.4635, allocations: 278.4 kB / 484.2 MB, free: 7.195 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.179e-06/0.4635, allocations: 2.75 kB / 484.2 MB, free: 7.195 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/0.4635, allocations: 0 / 484.2 MB, free: 7.195 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.4635, allocations: 3.953 kB / 484.3 MB, free: 7.191 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001239/0.4647, allocations: 0.5885 MB / 484.8 MB, free: 6.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.4648, allocations: 2.531 kB / 484.8 MB, free: 6.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003223/0.4651, allocations: 50.2 kB / 484.9 MB, free: 6.754 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.05e-06/0.4651, allocations: 2.469 kB / 484.9 MB, free: 6.754 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.593e-05/0.4651, allocations: 6.516 kB / 484.9 MB, free: 6.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.187e-06/0.4651, allocations: 3.125 kB / 484.9 MB, free: 6.75 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.4651, allocations: 3.938 kB / 484.9 MB, free: 6.746 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006405/0.4658, allocations: 352.1 kB / 485.3 MB, free: 6.523 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.34e-05/0.4659, allocations: 83.64 kB / 485.3 MB, free: 6.426 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.636e-05/0.4659, allocations: 6.688 kB / 485.3 MB, free: 6.426 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002618/0.4662, allocations: 20.67 kB / 485.4 MB, free: 6.418 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.281e-05/0.4662, allocations: 8.422 kB / 485.4 MB, free: 6.414 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.71e-05/0.4662, allocations: 15.14 kB / 485.4 MB, free: 6.41 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.496e-05/0.4663, allocations: 80.12 kB / 485.5 MB, free: 6.336 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4663, allocations: 0 / 485.5 MB, free: 6.336 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003411/0.4666, allocations: 44.25 kB / 485.5 MB, free: 6.336 MB / 366.1 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 () * Number of clocked 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.001164/0.4678, allocations: 1.041 MB / 486.5 MB, free: 5.441 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006079/0.4684, allocations: 204.5 kB / 486.7 MB, free: 5.391 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.4684, allocations: 0 / 486.7 MB, free: 5.391 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002688/0.4687, allocations: 98.53 kB / 486.8 MB, free: 5.367 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000356/0.4691, allocations: 51.41 kB / 486.9 MB, free: 5.344 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001036/0.4701, allocations: 341.5 kB / 487.2 MB, free: 5.086 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003633/0.4705, allocations: 0.6935 MB / 487.9 MB, free: 4.383 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003971/0.4709, allocations: 59.64 kB / 488 MB, free: 4.344 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000158/0.4711, allocations: 45.06 kB / 488 MB, free: 4.324 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.4711, allocations: 0 / 488 MB, free: 4.324 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01543/0.4865, allocations: 3.922 MB / 491.9 MB, free: 2.395 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001864/0.4867, allocations: 166.9 kB / 492.1 MB, free: 2.156 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.724/2.211, allocations: 0 / 492.1 MB, free: 2.156 MB / 366.1 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