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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001882/0.001882, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.487/1.487, allocations: 221.3 MB / 235.5 MB, free: 2.906 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.00106/0.00106, allocations: 110.1 kB / 286.5 MB, free: 176 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.478e-05/3.484e-05, allocations: 4 kB / 343.9 MB, free: 4.219 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.13, allocations: 50.41 MB / 394.3 MB, free: 1.77 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.316/1.446, allocations: 443.2 MB / 0.8179 GB, free: 51.96 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002396/1.447, allocations: 62.98 kB / 0.818 GB, free: 51.94 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05074/1.497, allocations: 25.43 MB / 0.8428 GB, free: 30.46 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.585e-06/1.498, allocations: 0 / 0.8428 GB, free: 30.46 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.62e-06/1.498, allocations: 0 / 0.8428 GB, free: 30.46 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.0007699/1.498, allocations: 442.2 kB / 0.8432 GB, free: 29.99 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.302e-05/1.498, allocations: 8.031 kB / 0.8432 GB, free: 29.98 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.919e-05/1.498, allocations: 41.86 kB / 0.8433 GB, free: 29.93 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005415/1.504, allocations: 460 kB / 0.8437 GB, free: 29.52 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001079/1.504, allocations: 171 kB / 0.8439 GB, free: 29.31 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.401e-05/1.504, allocations: 7.75 kB / 0.8439 GB, free: 29.31 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.627e-05/1.504, allocations: 7.938 kB / 0.8439 GB, free: 29.3 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005216/1.505, allocations: 268.3 kB / 0.8442 GB, free: 29.1 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.423e-05/1.505, allocations: 0 / 0.8442 GB, free: 29.1 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.548e-05/1.505, allocations: 3.438 kB / 0.8442 GB, free: 29.1 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/1.505, allocations: 0 / 0.8442 GB, free: 29.1 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004453/1.505, allocations: 235 kB / 0.8444 GB, free: 28.95 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009923/1.506, allocations: 418.1 kB / 0.8448 GB, free: 28.54 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008157/1.507, allocations: 196.4 kB / 0.845 GB, free: 28.38 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001004/1.507, allocations: 59.22 kB / 0.845 GB, free: 28.34 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.074e-05/1.507, allocations: 3.984 kB / 0.845 GB, free: 28.34 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.154e-05/1.507, allocations: 38.39 kB / 0.8451 GB, free: 28.29 MB / 442.7 MB Notification: Performance of pre-optimization done (n=13): time 1.933e-06/1.507, allocations: 4 kB / 0.8451 GB, free: 28.29 MB / 442.7 MB Notification: Performance of matching and sorting (n=17): time 0.001132/1.508, allocations: 307.5 kB / 0.8454 GB, free: 28.05 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.344e-05/1.508, allocations: 51.41 kB / 0.8454 GB, free: 27.99 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.033e-05/1.508, allocations: 92.98 kB / 0.8455 GB, free: 27.89 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.24e-05/1.508, allocations: 33.02 kB / 0.8455 GB, free: 27.86 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.276e-05/1.509, allocations: 91.89 kB / 0.8456 GB, free: 27.76 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.678e-05/1.509, allocations: 56.2 kB / 0.8457 GB, free: 27.71 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.673e-05/1.509, allocations: 3.875 kB / 0.8457 GB, free: 27.71 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.529e-05/1.509, allocations: 318.4 kB / 0.846 GB, free: 27.4 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001052/1.509, allocations: 61.25 kB / 0.846 GB, free: 27.36 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001261/1.509, allocations: 110.7 kB / 0.8461 GB, free: 27.26 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001163/1.509, allocations: 62.53 kB / 0.8462 GB, free: 27.22 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/1.509, allocations: 4 kB / 0.8462 GB, free: 27.21 MB / 442.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003178/1.509, allocations: 205.2 kB / 0.8464 GB, free: 27.05 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/1.509, allocations: 8 kB / 0.8464 GB, free: 27.05 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.742e-06/1.509, allocations: 0 / 0.8464 GB, free: 27.05 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.328e-05/1.509, allocations: 4 kB / 0.8464 GB, free: 27.04 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003383/1.51, allocations: 51.77 kB / 0.8465 GB, free: 27 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.838e-06/1.51, allocations: 0 / 0.8465 GB, free: 27 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002283/1.51, allocations: 15.67 kB / 0.8465 GB, free: 26.98 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.902e-05/1.51, allocations: 15.98 kB / 0.8465 GB, free: 26.97 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.65e-05/1.51, allocations: 115.5 kB / 0.8466 GB, free: 26.86 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.867e-05/1.51, allocations: 11.86 kB / 0.8466 GB, free: 26.84 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005341/1.511, allocations: 243.2 kB / 0.8468 GB, free: 26.66 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/1.511, allocations: 0 / 0.8468 GB, free: 26.66 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/1.511, allocations: 8 kB / 0.8469 GB, free: 26.65 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/1.511, allocations: 0 / 0.8469 GB, free: 26.65 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008064/1.512, allocations: 0.5343 MB / 0.8474 GB, free: 26.13 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/1.512, allocations: 0 / 0.8474 GB, free: 26.13 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002992/1.512, allocations: 47.89 kB / 0.8474 GB, free: 26.09 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/1.512, allocations: 4 kB / 0.8474 GB, free: 26.08 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.312e-05/1.512, allocations: 7.938 kB / 0.8474 GB, free: 26.08 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/1.512, allocations: 0 / 0.8474 GB, free: 26.08 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/1.512, allocations: 0 / 0.8474 GB, free: 26.08 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003236/1.512, allocations: 310.4 kB / 0.8477 GB, free: 25.79 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.64e-05/1.512, allocations: 85.02 kB / 0.8478 GB, free: 25.68 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.086e-05/1.512, allocations: 7.438 kB / 0.8478 GB, free: 25.68 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002412/1.513, allocations: 19.12 kB / 0.8478 GB, free: 25.66 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.42e-05/1.513, allocations: 19.91 kB / 0.8479 GB, free: 25.64 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.352e-05/1.513, allocations: 19.25 kB / 0.8479 GB, free: 25.63 MB / 442.7 MB Notification: Performance of sorting global known variables: time 2.439e-05/1.513, allocations: 79.28 kB / 0.8479 GB, free: 25.55 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.513, allocations: 0 / 0.8479 GB, free: 25.55 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0004604/1.513, allocations: 75.72 kB / 0.848 GB, free: 25.5 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.001147/1.514, allocations: 1.413 MB / 0.8494 GB, free: 24.11 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0003059/1.515, allocations: 155.3 kB / 0.8495 GB, free: 24.01 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/1.515, allocations: 0 / 0.8495 GB, free: 24.01 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001197/1.515, allocations: 84.73 kB / 0.8496 GB, free: 23.95 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003375/1.515, allocations: 35.98 kB / 0.8497 GB, free: 23.92 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007789/1.516, allocations: 220.5 kB / 0.8499 GB, free: 23.69 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000234/1.516, allocations: 0.6974 MB / 0.8506 GB, free: 22.96 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.000369/1.517, allocations: 52.52 kB / 0.8506 GB, free: 22.91 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001662/1.517, allocations: 42.47 kB / 0.8506 GB, free: 22.88 MB / 442.7 MB Notification: Performance of SimCode: time 2.5e-07/1.517, allocations: 0 / 0.8506 GB, free: 22.88 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02726/1.544, allocations: 13.33 MB / 0.8637 GB, free: 9.648 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001544/1.544, allocations: 140.5 kB / 0.8638 GB, free: 9.422 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.278/3.822, allocations: 0 / 0.8638 GB, free: 9.422 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