Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.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.SteamTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_SteamTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_SteamTemperatureEnthalpyInversion",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.00146/0.00146, allocations: 108 kB / 15.6 MB, free: 132 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.00148/0.00148, allocations: 191 kB / 16.53 MB, free: 6.391 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.341/1.341, allocations: 222.9 MB / 240.2 MB, free: 4.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002441/0.002441, allocations: 287 kB / 290.7 MB, free: 1.863 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9671/0.9671, allocations: 169.3 MB / 0.4982 GB, free: 13.88 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002641/0.002641, allocations: 102 kB / 0.5953 GB, free: 27.84 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1311/0.1337, allocations: 86.97 MB / 0.6803 GB, free: 0.6172 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion): time 0.3936/0.5273, allocations: 135.4 MB / 0.8125 GB, free: 2.586 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0001339/0.5275, allocations: 50.05 kB / 0.8126 GB, free: 2.578 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.632e-05/0.5275, allocations: 0 / 0.8126 GB, free: 2.578 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 8.563e-05/0.5276, allocations: 7 kB / 0.8126 GB, free: 2.574 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.961e-05/0.5277, allocations: 8.391 kB / 0.8126 GB, free: 2.574 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006529/0.5284, allocations: 247.7 kB / 0.8128 GB, free: 2.52 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 6.081e-05/0.5285, allocations: 29.59 kB / 0.8128 GB, free: 2.516 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 2.795e-05/0.5285, allocations: 5.031 kB / 0.8128 GB, free: 2.516 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.084e-05/0.5285, allocations: 16.67 kB / 0.8129 GB, free: 2.512 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.241e-05/0.5286, allocations: 20.53 kB / 0.8129 GB, free: 2.512 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.058e-05/0.5286, allocations: 0 / 0.8129 GB, free: 2.512 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003747/0.529, allocations: 247 kB / 0.8131 GB, free: 2.488 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 3.465e-05/0.529, allocations: 5 kB / 0.8131 GB, free: 2.488 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.172e-05/0.529, allocations: 12.23 kB / 0.8131 GB, free: 2.484 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002836/0.5293, allocations: 185.5 kB / 0.8133 GB, free: 2.477 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.5293, allocations: 0.8438 kB / 0.8133 GB, free: 2.477 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.092e-06/0.5294, allocations: 0 / 0.8133 GB, free: 2.477 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.498e-06/0.5294, allocations: 2.906 kB / 0.8133 GB, free: 2.477 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004797/0.5298, allocations: 358.7 kB / 0.8137 GB, free: 18.11 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.038e-05/0.5299, allocations: 11.47 kB / 0.8137 GB, free: 18.11 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.097e-05/0.5299, allocations: 34.69 kB / 0.8137 GB, free: 18.07 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.847e-05/0.5299, allocations: 3.562 kB / 0.8137 GB, free: 18.07 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000113/0.5301, allocations: 166.3 kB / 0.8139 GB, free: 17.87 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.508e-05/0.5301, allocations: 29.52 kB / 0.8139 GB, free: 17.84 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.009e-05/0.5301, allocations: 3.938 kB / 0.8139 GB, free: 17.84 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001126/0.5303, allocations: 42.98 kB / 0.8139 GB, free: 17.8 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.255e-06/0.5303, allocations: 2.531 kB / 0.8139 GB, free: 17.8 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.077e-06/0.5303, allocations: 0 / 0.8139 GB, free: 17.8 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.727e-05/0.5303, allocations: 4.953 kB / 0.8139 GB, free: 17.8 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.607e-05/0.5304, allocations: 17.56 kB / 0.814 GB, free: 17.8 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006953/0.5311, allocations: 0.6063 MB / 0.8145 GB, free: 17.15 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 3.068e-05/0.5311, allocations: 15.89 kB / 0.8146 GB, free: 17.13 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.11e-05/0.5311, allocations: 8.922 kB / 0.8146 GB, free: 17.12 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002219/0.5313, allocations: 333.9 kB / 0.8149 GB, free: 16.75 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.597e-05/0.5314, allocations: 38.55 kB / 0.8149 GB, free: 16.7 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 1.492e-06/0.5314, allocations: 4 kB / 0.8149 GB, free: 16.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001279/0.5315, allocations: 39.53 kB / 0.815 GB, free: 16.66 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.331e-05/0.5316, allocations: 51.41 kB / 0.815 GB, free: 16.6 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.59e-05/0.5316, allocations: 102.9 kB / 0.8151 GB, free: 16.5 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.713e-05/0.5317, allocations: 25.7 kB / 0.8151 GB, free: 16.47 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 4.411e-05/0.5317, allocations: 89.77 kB / 0.8152 GB, free: 16.38 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 5.24e-06/0.5317, allocations: 10.08 kB / 0.8152 GB, free: 16.38 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.327e-05/0.5317, allocations: 16.34 kB / 0.8153 GB, free: 16.36 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001211/0.5319, allocations: 322.2 kB / 0.8156 GB, free: 16.04 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.3e-05/0.5319, allocations: 4.922 kB / 0.8156 GB, free: 16.04 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.652e-05/0.5319, allocations: 15.56 kB / 0.8156 GB, free: 16.03 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.554e-05/0.5319, allocations: 23.28 kB / 0.8156 GB, free: 16.01 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.5319, allocations: 1.094 kB / 0.8156 GB, free: 16.01 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.034e-05/0.532, allocations: 53.14 kB / 0.8157 GB, free: 15.97 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.099e-05/0.532, allocations: 8.656 kB / 0.8157 GB, free: 15.97 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.107e-06/0.532, allocations: 0 / 0.8157 GB, free: 15.97 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.1e-05/0.5321, allocations: 0 / 0.8157 GB, free: 15.97 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.061e-05/0.5321, allocations: 10.91 kB / 0.8157 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.5321, allocations: 2.578 kB / 0.8157 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.691e-05/0.5321, allocations: 3.562 kB / 0.8157 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.524e-06/0.5321, allocations: 4.719 kB / 0.8157 GB, free: 15.96 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (3): * Single equations (assignments): 3 * 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.317e-05/0.5322, allocations: 113.6 kB / 0.8158 GB, free: 15.85 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.605e-05/0.5323, allocations: 7.297 kB / 0.8158 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.77e-05/0.5324, allocations: 115.7 kB / 0.8159 GB, free: 15.73 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.927e-05/0.5324, allocations: 181 kB / 0.8161 GB, free: 15.55 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.977e-05/0.5325, allocations: 181.5 kB / 0.8163 GB, free: 15.37 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.776e-05/0.5326, allocations: 182 kB / 0.8164 GB, free: 15.18 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000222/0.5328, allocations: 417.2 kB / 0.8168 GB, free: 14.73 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.019e-05/0.5329, allocations: 101 kB / 0.8169 GB, free: 14.62 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.307e-05/0.5329, allocations: 104.9 kB / 0.817 GB, free: 14.52 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.774e-05/0.533, allocations: 180.3 kB / 0.8172 GB, free: 14.34 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.076e-05/0.5331, allocations: 184.2 kB / 0.8174 GB, free: 14.15 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.261e-05/0.5331, allocations: 176.3 kB / 0.8175 GB, free: 13.97 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.017e-05/0.5332, allocations: 191.1 kB / 0.8177 GB, free: 13.79 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000136/0.5333, allocations: 305.1 kB / 0.818 GB, free: 13.47 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.878e-05/0.5334, allocations: 187.3 kB / 0.8182 GB, free: 13.27 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.507e-05/0.5335, allocations: 188.6 kB / 0.8184 GB, free: 13.08 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001476/0.5337, allocations: 108.6 kB / 0.8185 GB, free: 12.97 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.666e-05/0.5338, allocations: 182.6 kB / 0.8186 GB, free: 12.79 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.953e-05/0.5338, allocations: 101 kB / 0.8187 GB, free: 12.68 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 4.762e-05/0.5339, allocations: 89.44 kB / 0.8188 GB, free: 12.6 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5339, allocations: 0 / 0.8188 GB, free: 12.6 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003025/0.5342, allocations: 63.05 kB / 0.8189 GB, free: 12.59 MB / 0.5762 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 (0): * Single equations (assignments): 0 * 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.0005585/0.5347, allocations: 0.8852 MB / 0.8198 GB, free: 11.76 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 6.41e-05/0.5348, allocations: 11.28 kB / 0.8198 GB, free: 11.75 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.5348, allocations: 1.406 kB / 0.8198 GB, free: 11.75 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 2.224e-06/0.5348, allocations: 3.938 kB / 0.8198 GB, free: 11.75 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003969/0.5352, allocations: 461.1 kB / 0.8202 GB, free: 11.3 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009834/0.5362, allocations: 1.34 MB / 0.8215 GB, free: 9.984 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002729/0.5365, allocations: 0.6753 MB / 0.8222 GB, free: 9.289 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 3.387e-05/0.5365, allocations: 6.672 kB / 0.8222 GB, free: 9.289 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.858e-05/0.5366, allocations: 12.72 kB / 0.8222 GB, free: 9.281 MB / 0.5762 GB Notification: Performance of SimCode: time 2.41e-07/0.5366, allocations: 0 / 0.8222 GB, free: 9.281 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02182/0.5584, allocations: 2.206 MB / 0.8243 GB, free: 8.82 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.44/7.999, allocations: 14.12 kB / 0.8244 GB, free: 8.812 MB / 0.5762 GB (rm -f BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion_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_SteamTemperatureEnthalpyInversion.fmu > BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.pipe 2>&1)