Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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(IBPSA.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion,fileNamePrefix="IBPSA_latest_IBPSA_Media_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion,fileNamePrefix="IBPSA_latest_IBPSA_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.00106/0.001063, allocations: 106.1 kB / 16.27 MB, free: 5.93 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.00109/0.00109, allocations: 188.8 kB / 17.2 MB, free: 5.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.278/1.278, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.719/0.719, allocations: 122.9 MB / 413.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 67.89 kB / 0.4912 GB, free: 7.348 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3085/0.3098, allocations: 77.92 MB / 0.5673 GB, free: 32.89 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion): time 0.1414/0.4512, allocations: 147.8 MB / 0.7116 GB, free: 6.617 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0001375/0.4514, allocations: 63.84 kB / 0.7117 GB, free: 6.555 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.23e-05/0.4515, allocations: 0 / 0.7117 GB, free: 6.555 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 9.628e-05/0.4516, allocations: 3.938 kB / 0.7117 GB, free: 6.551 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 6.888e-05/0.4517, allocations: 15.91 kB / 0.7117 GB, free: 6.535 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004332/0.4521, allocations: 102.2 kB / 0.7118 GB, free: 6.438 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 7.474e-05/0.4522, allocations: 39.84 kB / 0.7119 GB, free: 6.398 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.334e-05/0.4522, allocations: 4 kB / 0.7119 GB, free: 6.395 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 4.67e-05/0.4523, allocations: 15.92 kB / 0.7119 GB, free: 6.379 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 5.935e-05/0.4524, allocations: 11.98 kB / 0.7119 GB, free: 6.367 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.103e-05/0.4524, allocations: 4 kB / 0.7119 GB, free: 6.363 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000249/0.4526, allocations: 83.72 kB / 0.712 GB, free: 6.281 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 4.194e-05/0.4527, allocations: 11.98 kB / 0.712 GB, free: 6.27 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.683e-05/0.4527, allocations: 7.938 kB / 0.712 GB, free: 6.262 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001525/0.4529, allocations: 78.22 kB / 0.7121 GB, free: 6.188 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.145e-06/0.4529, allocations: 3.938 kB / 0.7121 GB, free: 6.184 MB / 0.545 GB Notification: Performance of FrontEnd: time 9.92e-07/0.4529, allocations: 4 kB / 0.7121 GB, free: 6.18 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.428e-06/0.4529, allocations: 0 / 0.7121 GB, free: 6.18 MB / 0.545 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.0003591/0.4533, allocations: 341.1 kB / 0.7124 GB, free: 5.801 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.4533, allocations: 12.62 kB / 0.7124 GB, free: 5.789 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.066e-05/0.4533, allocations: 30.75 kB / 0.7124 GB, free: 5.75 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002237/0.4536, allocations: 20.91 kB / 0.7125 GB, free: 5.73 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001418/0.4537, allocations: 164.1 kB / 0.7126 GB, free: 5.531 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.434e-05/0.4538, allocations: 29.7 kB / 0.7126 GB, free: 5.496 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.128e-05/0.4538, allocations: 4 kB / 0.7126 GB, free: 5.492 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000127/0.4539, allocations: 45.67 kB / 0.7127 GB, free: 5.441 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.7e-06/0.454, allocations: 0 / 0.7127 GB, free: 5.441 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.057e-05/0.454, allocations: 4 kB / 0.7127 GB, free: 5.438 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.395e-05/0.454, allocations: 0 / 0.7127 GB, free: 5.438 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.242e-05/0.454, allocations: 23.92 kB / 0.7127 GB, free: 5.414 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003458/0.4544, allocations: 260.9 kB / 0.713 GB, free: 5.109 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 3.435e-05/0.4544, allocations: 14.58 kB / 0.713 GB, free: 5.086 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.545e-05/0.4545, allocations: 4.922 kB / 0.713 GB, free: 5.078 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 7.554e-06/0.4545, allocations: 4 kB / 0.713 GB, free: 5.074 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.309e-05/0.4545, allocations: 34.56 kB / 0.713 GB, free: 5.031 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.4545, allocations: 0 / 0.713 GB, free: 5.031 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0001221/0.4546, allocations: 45.53 kB / 0.7131 GB, free: 4.98 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.555e-05/0.4547, allocations: 55.34 kB / 0.7131 GB, free: 4.914 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.148e-05/0.4548, allocations: 105.8 kB / 0.7132 GB, free: 4.801 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.381e-05/0.4548, allocations: 33.64 kB / 0.7133 GB, free: 4.762 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.953e-05/0.4548, allocations: 91.98 kB / 0.7133 GB, free: 4.668 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 8.265e-06/0.4549, allocations: 7.891 kB / 0.7133 GB, free: 4.66 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.351e-05/0.4549, allocations: 17.7 kB / 0.7134 GB, free: 4.637 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001055/0.455, allocations: 314.8 kB / 0.7137 GB, free: 4.32 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.822e-05/0.455, allocations: 8.125 kB / 0.7137 GB, free: 4.312 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.653e-05/0.4551, allocations: 26.5 kB / 0.7137 GB, free: 4.277 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.696e-05/0.4551, allocations: 30.52 kB / 0.7137 GB, free: 4.238 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.4551, allocations: 0 / 0.7137 GB, free: 4.238 MB / 0.545 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.426e-05/0.4552, allocations: 61.62 kB / 0.7138 GB, free: 4.172 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/0.4552, allocations: 6.188 kB / 0.7138 GB, free: 4.168 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.4552, allocations: 256 / 0.7138 GB, free: 4.168 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.014e-05/0.4553, allocations: 0 / 0.7138 GB, free: 4.168 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.208e-05/0.4553, allocations: 15.94 kB / 0.7138 GB, free: 4.152 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/0.4553, allocations: 0 / 0.7138 GB, free: 4.152 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.393e-05/0.4554, allocations: 4 kB / 0.7138 GB, free: 4.148 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.047e-06/0.4554, allocations: 7.938 kB / 0.7138 GB, free: 4.141 MB / 0.545 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.579e-05/0.4555, allocations: 113.8 kB / 0.7139 GB, free: 4.02 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.591e-05/0.4555, allocations: 4.094 kB / 0.7139 GB, free: 4.016 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.332e-05/0.4555, allocations: 3.125 kB / 0.7139 GB, free: 4.016 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.4555, allocations: 3.938 kB / 0.7139 GB, free: 4.012 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.4555, allocations: 0 / 0.7139 GB, free: 4.012 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-06/0.4555, allocations: 0 / 0.7139 GB, free: 4.012 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002442/0.4558, allocations: 350.7 kB / 0.7143 GB, free: 3.609 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.4558, allocations: 0 / 0.7143 GB, free: 3.609 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.743e-05/0.4558, allocations: 7.922 kB / 0.7143 GB, free: 3.602 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.4558, allocations: 4.031 kB / 0.7143 GB, free: 3.598 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.538e-06/0.4558, allocations: 0 / 0.7143 GB, free: 3.598 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.4559, allocations: 3.938 kB / 0.7143 GB, free: 3.594 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.4559, allocations: 0 / 0.7143 GB, free: 3.594 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.614e-05/0.4559, allocations: 53.14 kB / 0.7143 GB, free: 3.523 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.298e-05/0.456, allocations: 81.05 kB / 0.7144 GB, free: 3.426 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.124e-05/0.456, allocations: 11.98 kB / 0.7144 GB, free: 3.414 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.167e-05/0.4561, allocations: 32 / 0.7144 GB, free: 3.414 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.13e-05/0.4561, allocations: 4 kB / 0.7144 GB, free: 3.41 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.483e-06/0.4561, allocations: 0 / 0.7144 GB, free: 3.41 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.129e-05/0.4562, allocations: 87.27 kB / 0.7145 GB, free: 3.324 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4562, allocations: 0 / 0.7145 GB, free: 3.324 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.000191/0.4564, allocations: 4 kB / 0.7145 GB, free: 3.32 MB / 0.545 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003037/0.4567, allocations: 0.5968 MB / 0.7151 GB, free: 2.695 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 7.279e-05/0.4567, allocations: 23.92 kB / 0.7151 GB, free: 2.672 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.4568, allocations: 0 / 0.7151 GB, free: 2.672 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 6.763e-06/0.4568, allocations: 7.875 kB / 0.7151 GB, free: 2.664 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002149/0.457, allocations: 4 kB / 0.7151 GB, free: 2.66 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003339/0.4573, allocations: 148.3 kB / 0.7153 GB, free: 2.473 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002343/0.4576, allocations: 0.6768 MB / 0.7159 GB, free: 1.77 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 5.299e-05/0.4576, allocations: 7.984 kB / 0.7159 GB, free: 1.762 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.601e-05/0.4577, allocations: 7.438 kB / 0.716 GB, free: 1.754 MB / 0.545 GB Notification: Performance of SimCode: time 2.41e-07/0.4577, allocations: 0 / 0.716 GB, free: 1.754 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01713/0.4748, allocations: 1.343 MB / 0.7173 GB, free: 0.5625 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.972/7.447, allocations: 15.81 kB / 0.7173 GB, free: 0.5508 MB / 0.545 GB (rm -f IBPSA_latest_IBPSA.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe ; mkfifo IBPSA_latest_IBPSA.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe >> ../files/IBPSA_latest_IBPSA.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IBPSA_latest_IBPSA_Media_Specialized_Air_Examples_PerfectGasTemperatureEnthalpyInversion.fmu > IBPSA_latest_IBPSA.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe 2>&1)