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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009944/0.0009944, allocations: 172.7 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.442/1.442, allocations: 205.2 MB / 219.8 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008944/0.000894, allocations: 90.62 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.533e-05/3.535e-05, allocations: 0 / 322.5 MB, free: 17.28 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09059/0.09065, allocations: 47.58 MB / 370.1 MB, free: 1.633 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.027/1.118, allocations: 442.2 MB / 0.7933 GB, free: 63.19 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002025/1.118, allocations: 65.03 kB / 0.7933 GB, free: 63.16 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04753/1.165, allocations: 24.89 MB / 0.8176 GB, free: 40.9 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.443e-06/1.165, allocations: 0 / 0.8176 GB, free: 40.9 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.01e-06/1.165, allocations: 0 / 0.8176 GB, free: 40.9 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.0006002/1.166, allocations: 438.9 kB / 0.818 GB, free: 40.43 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/1.166, allocations: 12.02 kB / 0.8181 GB, free: 40.41 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.343e-05/1.166, allocations: 38.56 kB / 0.8181 GB, free: 40.37 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005207/1.171, allocations: 463.3 kB / 0.8185 GB, free: 39.91 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.694e-05/1.171, allocations: 163 kB / 0.8187 GB, free: 39.71 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.18e-05/1.171, allocations: 8 kB / 0.8187 GB, free: 39.71 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.004e-05/1.171, allocations: 7.906 kB / 0.8187 GB, free: 39.7 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004389/1.172, allocations: 269.6 kB / 0.819 GB, free: 39.43 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/1.172, allocations: 4 kB / 0.819 GB, free: 39.43 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.119e-05/1.172, allocations: 0 / 0.819 GB, free: 39.43 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/1.172, allocations: 8 kB / 0.819 GB, free: 39.42 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004013/1.172, allocations: 231.9 kB / 0.8192 GB, free: 39.19 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008193/1.173, allocations: 424.5 kB / 0.8196 GB, free: 38.73 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007159/1.174, allocations: 190.5 kB / 0.8198 GB, free: 38.53 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.254e-05/1.174, allocations: 65.08 kB / 0.8198 GB, free: 38.46 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.147e-05/1.174, allocations: 4 kB / 0.8199 GB, free: 38.46 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.53e-05/1.174, allocations: 42.56 kB / 0.8199 GB, free: 38.41 MB / 426.7 MB Notification: Performance of pre-optimization done (n=13): time 1.132e-06/1.174, allocations: 0 / 0.8199 GB, free: 38.41 MB / 426.7 MB Notification: Performance of matching and sorting (n=17): time 0.00101/1.175, allocations: 302.2 kB / 0.8202 GB, free: 38.11 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.943e-05/1.175, allocations: 51.41 kB / 0.8202 GB, free: 38.05 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.508e-05/1.175, allocations: 96.98 kB / 0.8203 GB, free: 37.95 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.216e-05/1.175, allocations: 33.7 kB / 0.8204 GB, free: 37.91 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.443e-05/1.175, allocations: 91.89 kB / 0.8204 GB, free: 37.81 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.663e-05/1.175, allocations: 63.11 kB / 0.8205 GB, free: 37.75 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.619e-05/1.175, allocations: 4 kB / 0.8205 GB, free: 37.75 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 4.548e-05/1.175, allocations: 326.8 kB / 0.8208 GB, free: 37.42 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.731e-05/1.175, allocations: 60.36 kB / 0.8209 GB, free: 37.36 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001073/1.176, allocations: 100.9 kB / 0.821 GB, free: 37.24 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001099/1.176, allocations: 79.34 kB / 0.821 GB, free: 37.17 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.72e-07/1.176, allocations: 0 / 0.821 GB, free: 37.17 MB / 426.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003155/1.176, allocations: 193.5 kB / 0.8212 GB, free: 36.97 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/1.176, allocations: 8 kB / 0.8212 GB, free: 36.96 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/1.176, allocations: 3.938 kB / 0.8212 GB, free: 36.96 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/1.176, allocations: 4 kB / 0.8212 GB, free: 36.96 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003284/1.176, allocations: 52.08 kB / 0.8213 GB, free: 36.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/1.176, allocations: 0 / 0.8213 GB, free: 36.91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002215/1.177, allocations: 15.98 kB / 0.8213 GB, free: 36.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.193e-05/1.177, allocations: 11.98 kB / 0.8213 GB, free: 36.88 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 6.324e-05/1.177, allocations: 120.9 kB / 0.8214 GB, free: 36.75 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.699e-05/1.177, allocations: 7.906 kB / 0.8214 GB, free: 36.75 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004634/1.177, allocations: 241.5 kB / 0.8217 GB, free: 36.5 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/1.177, allocations: 4 kB / 0.8217 GB, free: 36.5 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/1.177, allocations: 0 / 0.8217 GB, free: 36.5 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/1.177, allocations: 192 / 0.8217 GB, free: 36.5 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007096/1.178, allocations: 0.5324 MB / 0.8222 GB, free: 35.91 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/1.178, allocations: 4 kB / 0.8222 GB, free: 35.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002956/1.178, allocations: 51.89 kB / 0.8223 GB, free: 35.85 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/1.178, allocations: 0 / 0.8223 GB, free: 35.85 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.1e-05/1.178, allocations: 4 kB / 0.8223 GB, free: 35.85 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/1.178, allocations: 3.953 kB / 0.8223 GB, free: 35.84 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/1.178, allocations: 4.062 kB / 0.8223 GB, free: 35.84 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002865/1.179, allocations: 311 kB / 0.8226 GB, free: 35.5 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.785e-05/1.179, allocations: 85.06 kB / 0.8226 GB, free: 35.4 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.875e-05/1.179, allocations: 12 kB / 0.8227 GB, free: 35.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002388/1.179, allocations: 15.98 kB / 0.8227 GB, free: 35.38 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.181e-05/1.179, allocations: 19.91 kB / 0.8227 GB, free: 35.36 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.158e-05/1.179, allocations: 8 kB / 0.8227 GB, free: 35.35 MB / 426.7 MB Notification: Performance of sorting global known variables: time 1.9e-05/1.179, allocations: 83.28 kB / 0.8228 GB, free: 35.27 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.179, allocations: 0 / 0.8228 GB, free: 35.27 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003785/1.179, allocations: 71.98 kB / 0.8228 GB, free: 35.2 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.0008919/1.18, allocations: 1.402 MB / 0.8242 GB, free: 33.76 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.000266/1.181, allocations: 157.2 kB / 0.8244 GB, free: 33.61 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/1.181, allocations: 0 / 0.8244 GB, free: 33.61 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000111/1.181, allocations: 77.33 kB / 0.8244 GB, free: 33.53 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002866/1.181, allocations: 44.27 kB / 0.8245 GB, free: 33.49 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005967/1.182, allocations: 228.3 kB / 0.8247 GB, free: 33.22 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.946e-05/1.182, allocations: 0.6935 MB / 0.8254 GB, free: 32.5 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0003547/1.182, allocations: 60.72 kB / 0.8254 GB, free: 32.44 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001514/1.182, allocations: 43.41 kB / 0.8255 GB, free: 32.39 MB / 426.7 MB Notification: Performance of SimCode: time 2.5e-07/1.182, allocations: 0 / 0.8255 GB, free: 32.39 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02182/1.204, allocations: 13.32 MB / 0.8385 GB, free: 19.06 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000155/1.204, allocations: 136.5 kB / 0.8386 GB, free: 18.84 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.835/3.04, allocations: 0 / 0.8386 GB, free: 18.84 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