Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_AirTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_AirTemperatureEnthalpyInversion",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.007392/0.007392, allocations: 100.7 kB / 15.73 MB, free: 6.051 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.0021/0.0021, allocations: 192.8 kB / 16.67 MB, free: 5.969 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.418/1.418, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002528/0.002528, allocations: 290.2 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.293/1.293, allocations: 178.5 MB / 0.5074 GB, free: 12.61 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002867/0.002867, allocations: 91.84 kB / 0.6943 GB, free: 15.24 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3819/0.3848, allocations: 89.14 MB / 0.7813 GB, free: 1.164 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion): time 0.1724/0.5573, allocations: 148.3 MB / 0.9261 GB, free: 3.957 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.0001425/0.5575, allocations: 47.84 kB / 0.9262 GB, free: 3.91 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.631e-05/0.5575, allocations: 4 kB / 0.9262 GB, free: 3.906 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.0001109/0.5576, allocations: 3.938 kB / 0.9262 GB, free: 3.902 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 7.785e-05/0.5578, allocations: 11.91 kB / 0.9262 GB, free: 3.891 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008058/0.5586, allocations: 219.2 kB / 0.9264 GB, free: 3.676 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 8.838e-05/0.5587, allocations: 31.84 kB / 0.9264 GB, free: 3.645 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 4.28e-05/0.5587, allocations: 7.938 kB / 0.9264 GB, free: 3.637 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 4.045e-05/0.5588, allocations: 15.98 kB / 0.9264 GB, free: 3.621 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 6.808e-05/0.5588, allocations: 11.92 kB / 0.9265 GB, free: 3.609 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 1.606e-05/0.5589, allocations: 4 kB / 0.9265 GB, free: 3.605 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004679/0.5593, allocations: 191.4 kB / 0.9266 GB, free: 3.418 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 4.601e-05/0.5594, allocations: 15.98 kB / 0.9267 GB, free: 3.402 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 2.916e-05/0.5594, allocations: 11.92 kB / 0.9267 GB, free: 3.391 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.000276/0.5597, allocations: 113.8 kB / 0.9268 GB, free: 3.285 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.5597, allocations: 0 / 0.9268 GB, free: 3.285 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.302e-06/0.5597, allocations: 0 / 0.9268 GB, free: 3.285 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 4.498e-06/0.5597, allocations: 0 / 0.9268 GB, free: 3.285 MB / 0.6856 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.0004414/0.5602, allocations: 349.9 kB / 0.9271 GB, free: 2.898 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.5602, allocations: 8.031 kB / 0.9271 GB, free: 2.891 MB / 0.6856 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.022e-05/0.5603, allocations: 34.73 kB / 0.9272 GB, free: 2.848 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003076/0.5606, allocations: 28.92 kB / 0.9272 GB, free: 2.82 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000142/0.5608, allocations: 172.1 kB / 0.9273 GB, free: 2.613 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.496e-05/0.5608, allocations: 25.7 kB / 0.9274 GB, free: 2.582 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.16e-05/0.5608, allocations: 4 kB / 0.9274 GB, free: 2.578 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001309/0.561, allocations: 45.69 kB / 0.9274 GB, free: 2.527 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.561, allocations: 0 / 0.9274 GB, free: 2.527 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.014e-05/0.561, allocations: 0 / 0.9274 GB, free: 2.527 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.765e-05/0.561, allocations: 3.984 kB / 0.9274 GB, free: 2.523 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.46e-05/0.5611, allocations: 24 kB / 0.9274 GB, free: 2.5 MB / 0.6856 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003687/0.5615, allocations: 268.7 kB / 0.9277 GB, free: 2.188 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 5.752e-05/0.5615, allocations: 22.56 kB / 0.9277 GB, free: 2.156 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.336e-05/0.5616, allocations: 12.92 kB / 0.9277 GB, free: 2.141 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001639/0.5617, allocations: 93.09 kB / 0.9278 GB, free: 2.031 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.52e-05/0.5618, allocations: 34.56 kB / 0.9279 GB, free: 1.988 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=2): time 1.272e-06/0.5618, allocations: 0 / 0.9279 GB, free: 1.988 MB / 0.6856 GB Notification: Performance of matching and sorting (n=2): time 0.0002462/0.562, allocations: 53.62 kB / 0.9279 GB, free: 1.93 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.176e-05/0.5621, allocations: 55.34 kB / 0.928 GB, free: 1.863 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.94e-05/0.5622, allocations: 101.9 kB / 0.9281 GB, free: 1.754 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 1.727e-05/0.5622, allocations: 25.83 kB / 0.9281 GB, free: 1.723 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 5.467e-05/0.5623, allocations: 92.08 kB / 0.9282 GB, free: 1.629 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 9.427e-06/0.5623, allocations: 7.953 kB / 0.9282 GB, free: 1.621 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.281e-05/0.5623, allocations: 13.72 kB / 0.9282 GB, free: 1.602 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.000143/0.5625, allocations: 322.8 kB / 0.9285 GB, free: 1.277 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.734e-05/0.5625, allocations: 3.984 kB / 0.9285 GB, free: 1.273 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.284e-05/0.5625, allocations: 22.58 kB / 0.9285 GB, free: 1.242 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.297e-05/0.5626, allocations: 34.52 kB / 0.9286 GB, free: 1.199 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.5626, allocations: 0 / 0.9286 GB, free: 1.199 MB / 0.6856 GB Notification: Performance of matching and sorting (n=4) (initialization): time 9.233e-05/0.5627, allocations: 53.62 kB / 0.9286 GB, free: 1.141 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/0.5627, allocations: 7.938 kB / 0.9286 GB, free: 1.133 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.5627, allocations: 0 / 0.9286 GB, free: 1.133 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.5627, allocations: 7.938 kB / 0.9286 GB, free: 1.125 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.021e-05/0.5628, allocations: 12.08 kB / 0.9286 GB, free: 1.113 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.5628, allocations: 3.938 kB / 0.9286 GB, free: 1.109 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.351e-05/0.5629, allocations: 11.95 kB / 0.9287 GB, free: 1.098 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.278e-06/0.5629, allocations: 0 / 0.9287 GB, free: 1.098 MB / 0.6856 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 8.499e-05/0.563, allocations: 109.8 kB / 0.9288 GB, free: 0.9805 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.597e-05/0.563, allocations: 0 / 0.9288 GB, free: 0.9805 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.262e-05/0.563, allocations: 7.406 kB / 0.9288 GB, free: 0.9766 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.563, allocations: 4 kB / 0.9288 GB, free: 0.9727 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.563, allocations: 7.875 kB / 0.9288 GB, free: 0.9648 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.888e-06/0.563, allocations: 7.984 kB / 0.9288 GB, free: 0.957 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003267/0.5634, allocations: 359.6 kB / 0.9291 GB, free: 0.543 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.5634, allocations: 0 / 0.9291 GB, free: 0.543 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.287e-05/0.5634, allocations: 11.88 kB / 0.9291 GB, free: 0.5312 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.5634, allocations: 0 / 0.9291 GB, free: 0.5312 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.745e-06/0.5634, allocations: 4 kB / 0.9291 GB, free: 0.5273 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.5635, allocations: 7.984 kB / 0.9291 GB, free: 0.5195 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.5635, allocations: 0 / 0.9291 GB, free: 0.5195 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.473e-05/0.5636, allocations: 66.06 kB / 0.9292 GB, free: 444 kB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 5.276e-05/0.5636, allocations: 89 kB / 0.9293 GB, free: 336 kB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.597e-05/0.5636, allocations: 0 / 0.9293 GB, free: 336 kB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.683e-05/0.5637, allocations: 7.984 kB / 0.9293 GB, free: 328 kB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.015e-05/0.5637, allocations: 0 / 0.9293 GB, free: 328 kB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.575e-06/0.5638, allocations: 4.031 kB / 0.9293 GB, free: 324 kB / 0.6856 GB Notification: Performance of sorting global known variables: time 5.013e-05/0.5638, allocations: 83.28 kB / 0.9294 GB, free: 240 kB / 0.6856 GB Notification: Performance of sort global known variables: time 2.134e-06/0.5638, allocations: 0 / 0.9294 GB, free: 240 kB / 0.6856 GB Notification: Performance of remove unused functions: time 0.0001983/0.564, allocations: 11.94 kB / 0.9294 GB, free: 228 kB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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.0004323/0.5645, allocations: 0.6094 MB / 0.93 GB, free: 15.58 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 8.353e-05/0.5646, allocations: 19.94 kB / 0.93 GB, free: 15.56 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.5646, allocations: 0 / 0.93 GB, free: 15.56 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 1.444e-05/0.5646, allocations: 4 kB / 0.93 GB, free: 15.56 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002122/0.5648, allocations: 18.91 kB / 0.93 GB, free: 15.54 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003829/0.5652, allocations: 158.2 kB / 0.9302 GB, free: 15.34 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002978/0.5655, allocations: 0.6729 MB / 0.9308 GB, free: 14.64 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 5.343e-05/0.5656, allocations: 7.984 kB / 0.9308 GB, free: 14.64 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.978e-05/0.5656, allocations: 7.438 kB / 0.9309 GB, free: 14.63 MB / 0.7012 GB Notification: Performance of SimCode: time 2.61e-07/0.5656, allocations: 7.938 kB / 0.9309 GB, free: 14.62 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02171/0.5873, allocations: 1.46 MB / 0.9323 GB, free: 13.28 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.571/8.158, allocations: 18.17 kB / 0.9323 GB, free: 13.26 MB / 0.7012 GB (rm -f BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Media_Examples_AirTemperatureEnthalpyInversion.fmu > BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.pipe 2>&1)