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.001522/0.001522, allocations: 108 kB / 15.6 MB, free: 124 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001542/0.001542, allocations: 195.6 kB / 16.54 MB, free: 6.688 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.361/1.361, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002376/0.002376, allocations: 283.1 kB / 290.7 MB, free: 2.004 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.049/1.049, allocations: 178.6 MB / 0.5073 GB, free: 4.57 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002633/0.002633, allocations: 101.9 kB / 0.6065 GB, free: 24.72 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1445/0.1471, allocations: 89.15 MB / 0.6936 GB, free: 4.258 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion): time 0.4113/0.5585, allocations: 148.3 MB / 0.8384 GB, free: 13.24 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0001214/0.5586, allocations: 46.27 kB / 0.8384 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.474e-05/0.5587, allocations: 0 / 0.8384 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 8.993e-05/0.5588, allocations: 0 / 0.8384 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 6.745e-05/0.5589, allocations: 13.05 kB / 0.8384 GB, free: 13.2 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006937/0.5596, allocations: 222.9 kB / 0.8387 GB, free: 13.05 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 6.794e-05/0.5596, allocations: 34.06 kB / 0.8387 GB, free: 13.04 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 3.17e-05/0.5597, allocations: 1.75 kB / 0.8387 GB, free: 13.04 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 3.193e-05/0.5597, allocations: 12.47 kB / 0.8387 GB, free: 13.03 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 6.392e-05/0.5598, allocations: 22.53 kB / 0.8387 GB, free: 13.02 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.228e-05/0.5598, allocations: 1.062 kB / 0.8387 GB, free: 13.02 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003915/0.5602, allocations: 196.8 kB / 0.8389 GB, free: 12.9 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 3.865e-05/0.5603, allocations: 9.484 kB / 0.8389 GB, free: 12.9 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 2.551e-05/0.5603, allocations: 13.44 kB / 0.8389 GB, free: 12.89 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0002253/0.5605, allocations: 112.3 kB / 0.839 GB, free: 12.84 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.5605, allocations: 0 / 0.839 GB, free: 12.84 MB / 0.5762 GB Notification: Performance of FrontEnd: time 8.446e-06/0.5605, allocations: 0 / 0.839 GB, free: 12.84 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.658e-06/0.5606, allocations: 5.062 kB / 0.8391 GB, free: 12.83 MB / 0.5762 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.0004028/0.561, allocations: 342.8 kB / 0.8394 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.366e-05/0.561, allocations: 9.844 kB / 0.8394 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.374e-05/0.561, allocations: 30.75 kB / 0.8394 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002891/0.5613, allocations: 36.06 kB / 0.8395 GB, free: 12.41 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001216/0.5615, allocations: 161.5 kB / 0.8396 GB, free: 12.21 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.659e-05/0.5615, allocations: 30.8 kB / 0.8396 GB, free: 12.18 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.259e-05/0.5615, allocations: 1.969 kB / 0.8396 GB, free: 12.18 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001294/0.5617, allocations: 53.83 kB / 0.8397 GB, free: 12.13 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.625e-06/0.5617, allocations: 0 / 0.8397 GB, free: 12.13 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.004e-05/0.5617, allocations: 1 kB / 0.8397 GB, free: 12.13 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.759e-05/0.5617, allocations: 1.688 kB / 0.8397 GB, free: 12.13 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.132e-05/0.5618, allocations: 21.8 kB / 0.8397 GB, free: 12.12 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003538/0.5622, allocations: 260 kB / 0.84 GB, free: 11.83 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 5.352e-05/0.5622, allocations: 23.67 kB / 0.84 GB, free: 11.8 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.069e-05/0.5623, allocations: 7.547 kB / 0.84 GB, free: 11.8 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001555/0.5624, allocations: 90.5 kB / 0.8401 GB, free: 11.7 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.018e-05/0.5625, allocations: 44.44 kB / 0.8401 GB, free: 11.65 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=2): time 1.031e-06/0.5625, allocations: 0 / 0.8401 GB, free: 11.65 MB / 0.5762 GB Notification: Performance of matching and sorting (n=2): time 0.0002318/0.5627, allocations: 48.84 kB / 0.8402 GB, free: 11.61 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.503e-05/0.5627, allocations: 51.41 kB / 0.8402 GB, free: 11.55 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.818e-05/0.5628, allocations: 107.9 kB / 0.8403 GB, free: 11.44 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.714e-05/0.5629, allocations: 26.61 kB / 0.8403 GB, free: 11.41 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 5.866e-05/0.5629, allocations: 97.03 kB / 0.8404 GB, free: 11.31 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.837e-06/0.5629, allocations: 9.656 kB / 0.8404 GB, free: 11.3 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.174e-05/0.563, allocations: 16.33 kB / 0.8405 GB, free: 11.28 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001276/0.5631, allocations: 317 kB / 0.8408 GB, free: 10.96 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.446e-05/0.5631, allocations: 2.156 kB / 0.8408 GB, free: 10.96 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.458e-05/0.5632, allocations: 32.08 kB / 0.8408 GB, free: 10.93 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.956e-05/0.5632, allocations: 30.67 kB / 0.8408 GB, free: 10.9 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.696e-06/0.5632, allocations: 1.094 kB / 0.8408 GB, free: 10.9 MB / 0.5762 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.483e-05/0.5633, allocations: 61.62 kB / 0.8409 GB, free: 10.85 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.186e-05/0.5633, allocations: 5.531 kB / 0.8409 GB, free: 10.85 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.5633, allocations: 0 / 0.8409 GB, free: 10.85 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.16e-05/0.5634, allocations: 1.156 kB / 0.8409 GB, free: 10.85 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.491e-05/0.5634, allocations: 15.06 kB / 0.8409 GB, free: 10.84 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.5634, allocations: 9.281 kB / 0.8409 GB, free: 10.83 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.763e-05/0.5635, allocations: 1.219 kB / 0.8409 GB, free: 10.83 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.048e-06/0.5635, allocations: 2.156 kB / 0.8409 GB, free: 10.83 MB / 0.5762 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.458e-05/0.5636, allocations: 108.2 kB / 0.841 GB, free: 10.72 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.801e-05/0.5636, allocations: 5.266 kB / 0.841 GB, free: 10.71 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.9e-05/0.5636, allocations: 8.375 kB / 0.841 GB, free: 10.71 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.5636, allocations: 1.188 kB / 0.841 GB, free: 10.71 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.652e-06/0.5636, allocations: 3.938 kB / 0.841 GB, free: 10.71 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.5637, allocations: 0 / 0.841 GB, free: 10.71 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003185/0.564, allocations: 361.4 kB / 0.8414 GB, free: 10.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.564, allocations: 0 / 0.8414 GB, free: 10.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.857e-05/0.564, allocations: 9.344 kB / 0.8414 GB, free: 10.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.419e-06/0.564, allocations: 5.094 kB / 0.8414 GB, free: 10.3 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.411e-06/0.564, allocations: 0 / 0.8414 GB, free: 10.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.564, allocations: 1.656 kB / 0.8414 GB, free: 10.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.5641, allocations: 0 / 0.8414 GB, free: 10.3 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.04e-05/0.5641, allocations: 79.86 kB / 0.8415 GB, free: 10.21 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 4.245e-05/0.5642, allocations: 83.27 kB / 0.8416 GB, free: 10.11 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.665e-05/0.5642, allocations: 2.375 kB / 0.8416 GB, free: 10.11 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.877e-05/0.5643, allocations: 2.375 kB / 0.8416 GB, free: 10.11 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.518e-06/0.5643, allocations: 0 / 0.8416 GB, free: 10.11 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.272e-06/0.5643, allocations: 6.516 kB / 0.8416 GB, free: 10.11 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 4.368e-05/0.5644, allocations: 85.81 kB / 0.8416 GB, free: 10.02 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5644, allocations: 3.938 kB / 0.8416 GB, free: 10.02 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0001942/0.5646, allocations: 7.062 kB / 0.8417 GB, free: 10.02 MB / 0.5762 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.0003928/0.565, allocations: 0.6101 MB / 0.8423 GB, free: 9.406 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 8.155e-05/0.5651, allocations: 14.41 kB / 0.8423 GB, free: 9.402 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.5651, allocations: 0 / 0.8423 GB, free: 9.402 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.452e-05/0.5651, allocations: 13.2 kB / 0.8423 GB, free: 9.395 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002307/0.5653, allocations: 12.28 kB / 0.8423 GB, free: 9.387 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003657/0.5657, allocations: 153.9 kB / 0.8424 GB, free: 9.219 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002869/0.566, allocations: 0.6794 MB / 0.8431 GB, free: 8.516 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 5.211e-05/0.5661, allocations: 6.141 kB / 0.8431 GB, free: 8.516 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.204e-05/0.5661, allocations: 11.42 kB / 0.8431 GB, free: 8.504 MB / 0.5762 GB Notification: Performance of SimCode: time 2.9e-07/0.5661, allocations: 4 kB / 0.8431 GB, free: 8.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02253/0.5886, allocations: 1.442 MB / 0.8445 GB, free: 7.715 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.252/7.841, allocations: 12.3 kB / 0.8445 GB, free: 7.707 MB / 0.5762 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)