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.0009387/0.0009386, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.0009555/0.0009555, allocations: 177.3 kB / 15.94 MB, free: 228 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.353/1.353, allocations: 223.2 MB / 239.9 MB, free: 5.453 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.295/2.295, allocations: 390.3 MB / 0.6653 GB, free: 3.016 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003337/0.0003337, allocations: 8 kB / 0.8146 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.761/0.7614, allocations: 142.3 MB / 0.9536 GB, free: 8.051 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion): time 0.1615/0.9229, allocations: 124.9 MB / 1.076 GB, free: 2.922 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0002818/0.9233, allocations: 127.7 kB / 1.076 GB, free: 2.797 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.025e-05/0.9233, allocations: 4 kB / 1.076 GB, free: 2.793 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001284/0.9235, allocations: 7.938 kB / 1.076 GB, free: 2.785 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.346e-05/0.9235, allocations: 7.969 kB / 1.076 GB, free: 2.777 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000462/0.924, allocations: 78.75 kB / 1.076 GB, free: 2.703 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.87e-05/0.9241, allocations: 23.95 kB / 1.076 GB, free: 2.68 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 5.045e-05/0.9241, allocations: 4 kB / 1.076 GB, free: 2.676 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 4.34e-05/0.9242, allocations: 15.98 kB / 1.076 GB, free: 2.66 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.769e-05/0.9243, allocations: 8 kB / 1.076 GB, free: 2.652 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.272e-05/0.9243, allocations: 0 / 1.076 GB, free: 2.652 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002602/0.9246, allocations: 47.89 kB / 1.076 GB, free: 2.605 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.343e-05/0.9246, allocations: 15.91 kB / 1.076 GB, free: 2.59 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.849e-05/0.9247, allocations: 29.7 kB / 1.076 GB, free: 2.555 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001263/0.9248, allocations: 26.23 kB / 1.076 GB, free: 2.531 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.9248, allocations: 0 / 1.076 GB, free: 2.531 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.054e-06/0.9248, allocations: 0 / 1.076 GB, free: 2.531 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.348e-06/0.9248, allocations: 0 / 1.076 GB, free: 2.531 MB / 0.8262 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.0003976/0.9252, allocations: 339.3 kB / 1.076 GB, free: 2.152 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5e-05/0.9253, allocations: 12.03 kB / 1.076 GB, free: 2.141 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.656e-05/0.9253, allocations: 30.56 kB / 1.076 GB, free: 2.102 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003245/0.9257, allocations: 19.97 kB / 1.076 GB, free: 2.082 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001309/0.9258, allocations: 163 kB / 1.076 GB, free: 1.883 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.366e-05/0.9259, allocations: 33.64 kB / 1.077 GB, free: 1.844 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.165e-05/0.9259, allocations: 4 kB / 1.077 GB, free: 1.84 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001637/0.9261, allocations: 57.56 kB / 1.077 GB, free: 1.777 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.9261, allocations: 0 / 1.077 GB, free: 1.777 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.645e-05/0.9261, allocations: 3.984 kB / 1.077 GB, free: 1.773 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.366e-05/0.9262, allocations: 4 kB / 1.077 GB, free: 1.77 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.04e-05/0.9262, allocations: 19.98 kB / 1.077 GB, free: 1.75 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004494/0.9267, allocations: 252.9 kB / 1.077 GB, free: 1.453 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 4.565e-05/0.9268, allocations: 22.58 kB / 1.077 GB, free: 1.422 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 7.313e-06/0.9268, allocations: 0 / 1.077 GB, free: 1.422 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.371e-05/0.9268, allocations: 38.56 kB / 1.077 GB, free: 1.375 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 1.453e-06/0.9268, allocations: 0 / 1.077 GB, free: 1.375 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0001658/0.927, allocations: 33.61 kB / 1.077 GB, free: 1.336 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.853e-05/0.927, allocations: 51.41 kB / 1.077 GB, free: 1.273 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.861e-05/0.9271, allocations: 106 kB / 1.077 GB, free: 1.16 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.638e-05/0.9272, allocations: 29.7 kB / 1.077 GB, free: 1.125 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.205e-05/0.9272, allocations: 95.98 kB / 1.077 GB, free: 1.027 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 8.055e-06/0.9273, allocations: 3.906 kB / 1.077 GB, free: 1.023 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.175e-06/0.9273, allocations: 0 / 1.077 GB, free: 1.023 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001221/0.9274, allocations: 314.8 kB / 1.078 GB, free: 0.707 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.069e-05/0.9274, allocations: 8 kB / 1.078 GB, free: 0.6992 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.822e-05/0.9275, allocations: 30.5 kB / 1.078 GB, free: 0.6602 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.426e-05/0.9275, allocations: 19.98 kB / 1.078 GB, free: 0.6406 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.9275, allocations: 0 / 1.078 GB, free: 0.6406 MB / 0.8262 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001156/0.9277, allocations: 53.59 kB / 1.078 GB, free: 0.582 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.9277, allocations: 7.984 kB / 1.078 GB, free: 0.5742 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.9277, allocations: 0 / 1.078 GB, free: 0.5742 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.9277, allocations: 0 / 1.078 GB, free: 0.5742 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.105e-05/0.9278, allocations: 8.25 kB / 1.078 GB, free: 0.5664 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.9278, allocations: 96 / 1.078 GB, free: 0.5664 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.863e-05/0.9279, allocations: 12 kB / 1.078 GB, free: 0.5547 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.431e-06/0.9279, allocations: 0 / 1.078 GB, free: 0.5547 MB / 0.8262 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 8.943e-05/0.928, allocations: 109.8 kB / 1.078 GB, free: 448 kB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.585e-05/0.928, allocations: 3.953 kB / 1.078 GB, free: 444 kB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.523e-05/0.9281, allocations: 15.05 kB / 1.078 GB, free: 428 kB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.9281, allocations: 0 / 1.078 GB, free: 428 kB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.9281, allocations: 3.938 kB / 1.078 GB, free: 424 kB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.9281, allocations: 4 kB / 1.078 GB, free: 420 kB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000322/0.9284, allocations: 346.8 kB / 1.078 GB, free: 12 kB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.9284, allocations: 0 / 1.078 GB, free: 12 kB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.805e-05/0.9285, allocations: 0 / 1.078 GB, free: 12 kB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.9285, allocations: 3.938 kB / 1.078 GB, free: 8 kB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.462e-06/0.9285, allocations: 0 / 1.078 GB, free: 8 kB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.9285, allocations: 0 / 1.078 GB, free: 8 kB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.918e-06/0.9285, allocations: 4 kB / 1.078 GB, free: 4 kB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001141/0.9286, allocations: 72.95 kB / 1.078 GB, free: 15.91 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.347e-05/0.9287, allocations: 77.11 kB / 1.078 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.964e-05/0.9287, allocations: 4 kB / 1.078 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.688e-05/0.9288, allocations: 3.984 kB / 1.078 GB, free: 15.81 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.433e-05/0.9288, allocations: 4 kB / 1.078 GB, free: 15.81 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.593e-06/0.9288, allocations: 0 / 1.078 GB, free: 15.81 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 4.544e-05/0.9289, allocations: 83.28 kB / 1.078 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9289, allocations: 0 / 1.078 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0001936/0.9291, allocations: 8.031 kB / 1.078 GB, free: 15.72 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.0002981/0.9294, allocations: 0.5968 MB / 1.079 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 7.017e-05/0.9295, allocations: 11.94 kB / 1.079 GB, free: 15.08 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.9295, allocations: 0 / 1.079 GB, free: 15.08 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 4.629e-06/0.9295, allocations: 4.219 kB / 1.079 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001645/0.9297, allocations: 11.98 kB / 1.079 GB, free: 15.06 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003386/0.93, allocations: 148.2 kB / 1.079 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000208/0.9302, allocations: 0.6847 MB / 1.08 GB, free: 14.17 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 5.637e-05/0.9303, allocations: 12.05 kB / 1.08 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.691e-05/0.9303, allocations: 7.438 kB / 1.08 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of SimCode: time 2.51e-07/0.9304, allocations: 0 / 1.08 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0113/0.9417, allocations: 1.138 MB / 1.081 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001849/0.9419, allocations: 216.1 kB / 1.081 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.756/2.698, allocations: 0 / 1.081 GB, free: 12.95 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