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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001041/0.001041, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001244/0.001244, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.345/1.345, allocations: 223.3 MB / 240 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.393/2.393, allocations: 390.4 MB / 0.6655 GB, free: 2.949 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003661/0.0003662, allocations: 12 kB / 0.8149 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8402/0.8406, allocations: 142.3 MB / 0.9538 GB, free: 8.059 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion): time 0.1873/1.028, allocations: 134.1 MB / 1.085 GB, free: 9.684 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0001646/1.028, allocations: 43.91 kB / 1.085 GB, free: 9.641 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.703e-05/1.028, allocations: 3.938 kB / 1.085 GB, free: 9.637 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001415/1.028, allocations: 0 / 1.085 GB, free: 9.637 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001008/1.028, allocations: 15.91 kB / 1.085 GB, free: 9.621 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004399/1.029, allocations: 83.75 kB / 1.085 GB, free: 9.539 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001065/1.029, allocations: 51.81 kB / 1.085 GB, free: 9.488 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 4.24e-05/1.029, allocations: 0 / 1.085 GB, free: 9.488 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 4.017e-05/1.029, allocations: 8 kB / 1.085 GB, free: 9.48 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 8.783e-05/1.029, allocations: 23.91 kB / 1.085 GB, free: 9.457 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.378e-05/1.029, allocations: 4 kB / 1.085 GB, free: 9.453 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002184/1.029, allocations: 39.84 kB / 1.085 GB, free: 9.414 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 3.767e-05/1.03, allocations: 3.984 kB / 1.085 GB, free: 9.41 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 4.707e-05/1.03, allocations: 33.7 kB / 1.085 GB, free: 9.371 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.000109/1.03, allocations: 38.2 kB / 1.085 GB, free: 9.336 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/1.03, allocations: 0 / 1.085 GB, free: 9.336 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.184e-06/1.03, allocations: 0 / 1.085 GB, free: 9.336 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.638e-06/1.03, allocations: 0 / 1.085 GB, free: 9.336 MB / 0.8419 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.0004408/1.03, allocations: 339.3 kB / 1.085 GB, free: 8.957 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.16e-05/1.03, allocations: 8.031 kB / 1.085 GB, free: 8.949 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.61e-05/1.03, allocations: 30.56 kB / 1.085 GB, free: 8.91 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000245/1.031, allocations: 19.98 kB / 1.085 GB, free: 8.891 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001376/1.031, allocations: 167 kB / 1.086 GB, free: 8.688 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.296e-05/1.031, allocations: 33.69 kB / 1.086 GB, free: 8.648 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.138e-05/1.031, allocations: 0 / 1.086 GB, free: 8.648 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001548/1.031, allocations: 49.64 kB / 1.086 GB, free: 8.594 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/1.031, allocations: 0 / 1.086 GB, free: 8.594 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.33e-05/1.031, allocations: 0 / 1.086 GB, free: 8.594 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.07e-05/1.031, allocations: 3.938 kB / 1.086 GB, free: 8.59 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.403e-05/1.031, allocations: 19.98 kB / 1.086 GB, free: 8.57 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004583/1.032, allocations: 260.9 kB / 1.086 GB, free: 8.266 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 5.015e-05/1.032, allocations: 22.58 kB / 1.086 GB, free: 8.234 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.216e-05/1.032, allocations: 4.859 kB / 1.086 GB, free: 8.227 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 6.593e-06/1.032, allocations: 0 / 1.086 GB, free: 8.227 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.629e-05/1.032, allocations: 38.56 kB / 1.086 GB, free: 8.18 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=1): time 8.21e-07/1.032, allocations: 0 / 1.086 GB, free: 8.18 MB / 0.8419 GB Notification: Performance of matching and sorting (n=1): time 0.00017/1.032, allocations: 41.59 kB / 1.086 GB, free: 8.133 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.032e-05/1.032, allocations: 55.34 kB / 1.086 GB, free: 8.066 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000102/1.032, allocations: 109.8 kB / 1.086 GB, free: 7.949 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.769e-05/1.032, allocations: 25.7 kB / 1.086 GB, free: 7.918 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 5.604e-05/1.032, allocations: 95.97 kB / 1.086 GB, free: 7.82 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 6.993e-06/1.032, allocations: 7.844 kB / 1.086 GB, free: 7.812 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.865e-06/1.032, allocations: 4 kB / 1.086 GB, free: 7.809 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001276/1.032, allocations: 315 kB / 1.087 GB, free: 7.492 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.651e-05/1.032, allocations: 7.984 kB / 1.087 GB, free: 7.484 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.245e-05/1.032, allocations: 22.58 kB / 1.087 GB, free: 7.453 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.325e-05/1.032, allocations: 4 kB / 1.087 GB, free: 7.449 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/1.032, allocations: 0 / 1.087 GB, free: 7.449 MB / 0.8419 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.343e-05/1.032, allocations: 61.58 kB / 1.087 GB, free: 7.383 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/1.033, allocations: 4 kB / 1.087 GB, free: 7.379 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/1.033, allocations: 4 kB / 1.087 GB, free: 7.375 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/1.033, allocations: 0 / 1.087 GB, free: 7.375 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.069e-05/1.033, allocations: 8 kB / 1.087 GB, free: 7.367 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.074e-05/1.033, allocations: 11.92 kB / 1.087 GB, free: 7.355 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.255e-05/1.033, allocations: 0 / 1.087 GB, free: 7.355 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.861e-06/1.033, allocations: 4 kB / 1.087 GB, free: 7.352 MB / 0.8419 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 9.056e-05/1.033, allocations: 105.8 kB / 1.087 GB, free: 7.238 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.594e-05/1.033, allocations: 12.05 kB / 1.087 GB, free: 7.227 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.886e-05/1.033, allocations: 3.125 kB / 1.087 GB, free: 7.223 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/1.033, allocations: 0 / 1.087 GB, free: 7.223 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/1.033, allocations: 0 / 1.087 GB, free: 7.223 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/1.033, allocations: 0 / 1.087 GB, free: 7.223 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002883/1.033, allocations: 358.7 kB / 1.087 GB, free: 6.812 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/1.033, allocations: 0 / 1.087 GB, free: 6.812 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.799e-05/1.033, allocations: 4 kB / 1.087 GB, free: 6.809 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/1.033, allocations: 7.969 kB / 1.087 GB, free: 6.801 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.092e-06/1.033, allocations: 0 / 1.087 GB, free: 6.801 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/1.033, allocations: 0 / 1.087 GB, free: 6.801 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/1.033, allocations: 0 / 1.087 GB, free: 6.801 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.189e-05/1.033, allocations: 68.98 kB / 1.087 GB, free: 6.715 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.088e-05/1.033, allocations: 77.11 kB / 1.087 GB, free: 6.621 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.566e-05/1.033, allocations: 0 / 1.087 GB, free: 6.621 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.086e-05/1.033, allocations: 8.031 kB / 1.087 GB, free: 6.613 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.192e-05/1.033, allocations: 96 / 1.087 GB, free: 6.613 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.256e-06/1.033, allocations: 3.984 kB / 1.087 GB, free: 6.609 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 5.656e-05/1.034, allocations: 83.27 kB / 1.088 GB, free: 6.527 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/1.034, allocations: 4 kB / 1.088 GB, free: 6.523 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0001908/1.034, allocations: 8 kB / 1.088 GB, free: 6.516 MB / 0.8419 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.0003906/1.034, allocations: 0.6007 MB / 1.088 GB, free: 5.883 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 7.346e-05/1.034, allocations: 8 kB / 1.088 GB, free: 5.875 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/1.034, allocations: 4 kB / 1.088 GB, free: 5.871 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 6.302e-06/1.034, allocations: 7.875 kB / 1.088 GB, free: 5.863 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002257/1.034, allocations: 10.98 kB / 1.088 GB, free: 5.855 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003684/1.035, allocations: 146.5 kB / 1.088 GB, free: 5.672 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002979/1.035, allocations: 0.6808 MB / 1.089 GB, free: 4.965 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 5.522e-05/1.035, allocations: 4 kB / 1.089 GB, free: 4.961 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.222e-05/1.035, allocations: 11.44 kB / 1.089 GB, free: 4.949 MB / 0.8419 GB Notification: Performance of SimCode: time 1.954e-06/1.035, allocations: 0 / 1.089 GB, free: 4.949 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0112/1.046, allocations: 1.159 MB / 1.09 GB, free: 3.98 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001969/1.047, allocations: 224.6 kB / 1.09 GB, free: 3.738 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.699/2.746, allocations: 0 / 1.09 GB, free: 3.738 MB / 0.8419 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