Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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) 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) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion,fileNamePrefix="Buildings_9_Buildings_Media_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion,fileNamePrefix="Buildings_9_Buildings_Media_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.276/2.276, allocations: 390.3 MB / 405.3 MB, free: 13.47 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001066/0.001066, allocations: 178.7 kB / 498.1 MB, free: 5.73 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.444/1.444, allocations: 223.2 MB / 0.7948 GB, free: 18.85 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000892/0.0008921, allocations: 98.52 kB / 0.9346 GB, free: 7.145 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003389/0.000339, allocations: 8.953 kB / 1.084 GB, free: 212.6 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2365/0.2369, allocations: 142.4 MB / 1.223 GB, free: 89.46 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 10.43/10.66, allocations: 4.408 GB / 5.631 GB, free: 203.7 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002141/10.66, allocations: 86.25 kB / 5.631 GB, free: 203.6 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 0.08359/10.75, allocations: 47.12 MB / 5.677 GB, free: 164.4 MB / 1.167 GB Notification: Performance of FrontEnd: time 2.344e-06/10.75, allocations: 0 / 5.677 GB, free: 164.4 MB / 1.167 GB Notification: Performance of Transformations before backend: time 7.374e-06/10.75, allocations: 0 / 5.677 GB, free: 164.4 MB / 1.167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003443/10.75, allocations: 334.9 kB / 5.677 GB, free: 164.1 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.868e-05/10.75, allocations: 8.031 kB / 5.677 GB, free: 164.1 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.778e-05/10.75, allocations: 33.19 kB / 5.677 GB, free: 164 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002201/10.75, allocations: 27.89 kB / 5.677 GB, free: 164 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.054e-05/10.75, allocations: 163 kB / 5.678 GB, free: 163.8 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.588e-05/10.75, allocations: 33.62 kB / 5.678 GB, free: 163.8 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.08e-05/10.75, allocations: 7.953 kB / 5.678 GB, free: 163.8 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001414/10.75, allocations: 40.31 kB / 5.678 GB, free: 163.7 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/10.75, allocations: 0 / 5.678 GB, free: 163.7 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.453e-05/10.75, allocations: 2.688 kB / 5.678 GB, free: 163.7 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.866e-05/10.75, allocations: 8 kB / 5.678 GB, free: 163.7 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.5e-05/10.75, allocations: 18.61 kB / 5.678 GB, free: 163.7 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003789/10.75, allocations: 256.4 kB / 5.678 GB, free: 163.4 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 3.969e-05/10.75, allocations: 22.83 kB / 5.678 GB, free: 163.4 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 6.763e-06/10.75, allocations: 0 / 5.678 GB, free: 163.4 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.188e-05/10.75, allocations: 36.81 kB / 5.678 GB, free: 163.3 MB / 1.167 GB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/10.75, allocations: 0 / 5.678 GB, free: 163.3 MB / 1.167 GB Notification: Performance of matching and sorting (n=1): time 0.0001456/10.75, allocations: 37.75 kB / 5.678 GB, free: 163.3 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.371e-05/10.75, allocations: 58.03 kB / 5.678 GB, free: 163.2 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.437e-05/10.75, allocations: 99.38 kB / 5.678 GB, free: 163.1 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 1.071e-05/10.75, allocations: 25.7 kB / 5.678 GB, free: 163.1 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 3.362e-05/10.75, allocations: 94.38 kB / 5.678 GB, free: 163 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 5.29e-06/10.75, allocations: 0 / 5.678 GB, free: 163 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.865e-06/10.75, allocations: 4.125 kB / 5.678 GB, free: 163 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 7.288e-05/10.75, allocations: 317.3 kB / 5.679 GB, free: 162.7 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.389e-05/10.75, allocations: 0 / 5.679 GB, free: 162.7 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.551e-05/10.75, allocations: 28.69 kB / 5.679 GB, free: 162.6 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.215e-05/10.75, allocations: 13.89 kB / 5.679 GB, free: 162.6 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/10.75, allocations: 0 / 5.679 GB, free: 162.6 MB / 1.167 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.075e-05/10.75, allocations: 58.38 kB / 5.679 GB, free: 162.6 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/10.75, allocations: 4 kB / 5.679 GB, free: 162.6 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/10.75, allocations: 96 / 5.679 GB, free: 162.6 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/10.75, allocations: 7.984 kB / 5.679 GB, free: 162.5 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.189e-05/10.75, allocations: 4 kB / 5.679 GB, free: 162.5 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/10.75, allocations: 3.938 kB / 5.679 GB, free: 162.5 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.85e-05/10.75, allocations: 7.906 kB / 5.679 GB, free: 162.5 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.561e-06/10.75, allocations: 0 / 5.679 GB, free: 162.5 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (4): * Single equations (assignments): 4 * 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 5.594e-05/10.75, allocations: 124.5 kB / 5.679 GB, free: 162.4 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.453e-05/10.75, allocations: 0 / 5.679 GB, free: 162.4 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.919e-05/10.75, allocations: 15 kB / 5.679 GB, free: 162.4 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/10.75, allocations: 0 / 5.679 GB, free: 162.4 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/10.75, allocations: 0 / 5.679 GB, free: 162.4 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/10.75, allocations: 0 / 5.679 GB, free: 162.4 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001833/10.75, allocations: 343.6 kB / 5.679 GB, free: 162 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/10.75, allocations: 3.984 kB / 5.679 GB, free: 162 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.43e-05/10.75, allocations: 3.938 kB / 5.679 GB, free: 162 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/10.75, allocations: 4.031 kB / 5.679 GB, free: 162 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.38e-06/10.75, allocations: 4 kB / 5.679 GB, free: 162 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/10.75, allocations: 0 / 5.679 GB, free: 162 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/10.75, allocations: 0 / 5.679 GB, free: 162 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.345e-05/10.75, allocations: 58.59 kB / 5.679 GB, free: 161.9 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 2.161e-05/10.75, allocations: 85.02 kB / 5.679 GB, free: 161.8 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.598e-05/10.75, allocations: 3.984 kB / 5.679 GB, free: 161.8 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.743e-05/10.75, allocations: 8.031 kB / 5.679 GB, free: 161.8 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.939e-06/10.75, allocations: 0 / 5.679 GB, free: 161.8 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.515e-06/10.75, allocations: 256 / 5.679 GB, free: 161.8 MB / 1.167 GB Notification: Performance of sorting global known variables: time 2.848e-05/10.75, allocations: 85.66 kB / 5.679 GB, free: 161.7 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.1e-07/10.75, allocations: 0 / 5.679 GB, free: 161.7 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.0003081/10.75, allocations: 43.86 kB / 5.679 GB, free: 161.7 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (1): * Single equations (assignments): 1 * 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.0007814/10.75, allocations: 1.073 MB / 5.68 GB, free: 160.6 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 7.283e-05/10.75, allocations: 8 kB / 5.68 GB, free: 160.6 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/10.75, allocations: 4.188 kB / 5.68 GB, free: 160.6 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 5.791e-06/10.75, allocations: 7.938 kB / 5.68 GB, free: 160.6 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000148/10.75, allocations: 11.48 kB / 5.68 GB, free: 160.6 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003336/10.75, allocations: 150.4 kB / 5.681 GB, free: 160.4 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001005/10.75, allocations: 0.677 MB / 5.681 GB, free: 159.7 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 6.661e-05/10.75, allocations: 12.05 kB / 5.681 GB, free: 159.7 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.037e-05/10.75, allocations: 14.81 kB / 5.681 GB, free: 159.7 MB / 1.167 GB Notification: Performance of SimCode: time 3.7e-07/10.75, allocations: 0 / 5.681 GB, free: 159.7 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02361/10.78, allocations: 10.56 MB / 5.692 GB, free: 149.3 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001717/10.78, allocations: 220 kB / 5.692 GB, free: 149 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.829/12.61, allocations: 0 / 5.692 GB, free: 149 MB / 1.167 GB (rm -f Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe >> ../files/Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion_res.mat --tempDir=temp_Buildings_9_Buildings_Media_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Media_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion.fmu > Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion_res.mat does not exist to compare? outputFormat=mat