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.0008061/0.0008061, allocations: 89.22 kB / 16.31 MB, free: 5.676 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.0009134/0.0009134, allocations: 185.5 kB / 17.21 MB, free: 5.594 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.297/1.297, allocations: 223.2 MB / 241.2 MB, free: 368 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002457/0.0002461, allocations: 8 kB / 300.9 MB, free: 6.375 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09278/0.09304, allocations: 50.4 MB / 351.3 MB, free: 3.957 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.IdealGasH2O): time 0.3433/0.4363, allocations: 135.3 MB / 486.6 MB, free: 14.77 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002461/0.4389, allocations: 2.327 MB / 489 MB, free: 12.45 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.743e-05/0.4389, allocations: 0 / 489 MB, free: 12.45 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001298/0.4391, allocations: 19.89 kB / 489 MB, free: 12.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007801/0.4398, allocations: 252.4 kB / 489.2 MB, free: 12.18 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001621/0.44, allocations: 47.8 kB / 489.3 MB, free: 12.14 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 9.628e-05/0.4401, allocations: 75.55 kB / 489.4 MB, free: 12.06 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.059e-05/0.4402, allocations: 0 / 489.4 MB, free: 12.06 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.853e-05/0.4403, allocations: 39.78 kB / 489.4 MB, free: 12.02 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.99e-05/0.4404, allocations: 19.92 kB / 489.4 MB, free: 12 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.075e-05/0.4404, allocations: 8 kB / 489.4 MB, free: 12 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007189/0.4411, allocations: 371.4 kB / 489.8 MB, free: 11.63 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.083e-05/0.4411, allocations: 0 / 489.8 MB, free: 11.63 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.385e-05/0.4412, allocations: 41.64 kB / 489.8 MB, free: 11.59 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003183/0.4415, allocations: 205.2 kB / 490 MB, free: 11.39 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.244e-06/0.4415, allocations: 4 kB / 490 MB, free: 11.38 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.4415, allocations: 0 / 490 MB, free: 11.38 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.592e-06/0.4415, allocations: 0 / 490 MB, free: 11.38 MB / 398.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.000818/0.4423, allocations: 423.9 kB / 490.4 MB, free: 10.92 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.682e-05/0.4424, allocations: 12.02 kB / 490.5 MB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.666e-05/0.4425, allocations: 38.56 kB / 490.5 MB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005062/0.4475, allocations: 451.8 kB / 490.9 MB, free: 10.42 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001256/0.4477, allocations: 175 kB / 491.1 MB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.259e-05/0.4477, allocations: 11.84 kB / 491.1 MB, free: 10.2 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.64e-05/0.4478, allocations: 15.94 kB / 491.1 MB, free: 10.18 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008027/0.4486, allocations: 295.6 kB / 491.4 MB, free: 9.891 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.392e-05/0.4486, allocations: 3.953 kB / 491.4 MB, free: 9.887 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.06e-05/0.4487, allocations: 4 kB / 491.4 MB, free: 9.883 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.4487, allocations: 0 / 491.4 MB, free: 9.883 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00073/0.4494, allocations: 275.8 kB / 491.7 MB, free: 9.613 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009392/0.4504, allocations: 412.9 kB / 492.1 MB, free: 9.156 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009584/0.4513, allocations: 206.3 kB / 492.3 MB, free: 8.945 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001828/0.4515, allocations: 80.8 kB / 492.4 MB, free: 8.863 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.847e-05/0.4516, allocations: 3.984 kB / 492.4 MB, free: 8.859 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.41e-05/0.4516, allocations: 30.56 kB / 492.4 MB, free: 8.82 MB / 398.1 MB Notification: Performance of pre-optimization done (n=13): time 1.653e-06/0.4516, allocations: 0 / 492.4 MB, free: 8.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=17): time 0.001646/0.4533, allocations: 425.7 kB / 492.8 MB, free: 8.402 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.499e-05/0.4533, allocations: 51.41 kB / 492.9 MB, free: 8.34 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.953e-05/0.4534, allocations: 109.8 kB / 493 MB, free: 8.223 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.571e-05/0.4534, allocations: 29.7 kB / 493 MB, free: 8.188 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.406e-05/0.4535, allocations: 87.95 kB / 493.1 MB, free: 8.098 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.815e-05/0.4535, allocations: 63.05 kB / 493.2 MB, free: 8.035 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.97e-05/0.4536, allocations: 4 kB / 493.2 MB, free: 8.031 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001138/0.4537, allocations: 322.8 kB / 493.5 MB, free: 7.707 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002277/0.4539, allocations: 80.31 kB / 493.6 MB, free: 7.629 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002511/0.4542, allocations: 112.9 kB / 493.7 MB, free: 7.504 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002383/0.4544, allocations: 87.95 kB / 493.8 MB, free: 7.418 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.4544, allocations: 4 kB / 493.8 MB, free: 7.414 MB / 398.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006124/0.455, allocations: 248 kB / 494 MB, free: 7.168 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.4551, allocations: 8 kB / 494 MB, free: 7.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.4551, allocations: 3.938 kB / 494 MB, free: 7.156 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.4551, allocations: 4 kB / 494 MB, free: 7.152 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000402/0.4555, allocations: 47.95 kB / 494.1 MB, free: 7.105 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.298e-06/0.4555, allocations: 3.953 kB / 494.1 MB, free: 7.102 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002181/0.4558, allocations: 15.98 kB / 494.1 MB, free: 7.086 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.845e-05/0.4558, allocations: 11.98 kB / 494.1 MB, free: 7.074 MB / 398.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.000104/0.4559, allocations: 125.8 kB / 494.2 MB, free: 6.941 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.915e-05/0.456, allocations: 8.75 kB / 494.2 MB, free: 6.934 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008484/0.4568, allocations: 273.8 kB / 494.5 MB, free: 6.664 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.4568, allocations: 0 / 494.5 MB, free: 6.664 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.4568, allocations: 5.688 kB / 494.5 MB, free: 6.66 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.4568, allocations: 4.141 kB / 494.5 MB, free: 6.656 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001142/0.458, allocations: 0.5907 MB / 495.1 MB, free: 6.004 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.458, allocations: 0 / 495.1 MB, free: 6.004 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000304/0.4583, allocations: 43.97 kB / 495.1 MB, free: 5.961 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.823e-06/0.4583, allocations: 11.98 kB / 495.2 MB, free: 5.949 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.42e-05/0.4584, allocations: 8 kB / 495.2 MB, free: 5.941 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.4584, allocations: 0 / 495.2 MB, free: 5.941 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.4584, allocations: 0 / 495.2 MB, free: 5.941 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006852/0.4591, allocations: 327.6 kB / 495.5 MB, free: 5.602 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.172e-05/0.4591, allocations: 92.95 kB / 495.6 MB, free: 5.492 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.348e-05/0.4592, allocations: 4 kB / 495.6 MB, free: 5.488 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002332/0.4594, allocations: 15.92 kB / 495.6 MB, free: 5.477 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.938e-05/0.4595, allocations: 15.92 kB / 495.6 MB, free: 5.461 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.62e-05/0.4595, allocations: 15.98 kB / 495.6 MB, free: 5.445 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4e-05/0.4595, allocations: 83.28 kB / 495.7 MB, free: 5.363 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.246e-06/0.4595, allocations: 0 / 495.7 MB, free: 5.363 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003339/0.4599, allocations: 47.94 kB / 495.7 MB, free: 5.316 MB / 398.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.0009695/0.4609, allocations: 0.8848 MB / 496.6 MB, free: 4.402 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005913/0.4615, allocations: 187.7 kB / 496.8 MB, free: 4.219 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.4615, allocations: 0 / 496.8 MB, free: 4.219 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002656/0.4617, allocations: 112.2 kB / 496.9 MB, free: 4.109 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004318/0.4622, allocations: 35.91 kB / 497 MB, free: 4.074 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009608/0.4632, allocations: 350.2 kB / 497.3 MB, free: 3.688 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003388/0.4635, allocations: 0.6892 MB / 498 MB, free: 2.973 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003892/0.4639, allocations: 52.75 kB / 498 MB, free: 2.922 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001687/0.4641, allocations: 43.41 kB / 498.1 MB, free: 2.883 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4641, allocations: 0 / 498.1 MB, free: 2.883 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01493/0.479, allocations: 3.956 MB / 0.4903 GB, free: 15.06 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000244/0.4793, allocations: 166.6 kB / 0.4904 GB, free: 14.82 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.755/2.234, allocations: 0 / 0.4904 GB, free: 14.82 MB / 414.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