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: translateModel(BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion") translateModel(BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009164/0.0009164, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.0009948/0.0009948, allocations: 172.7 kB / 15.95 MB, free: 208 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.289/1.289, allocations: 223.3 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001772/0.001772, allocations: 269.7 kB / 291.4 MB, free: 1.973 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9203/0.9203, allocations: 169.5 MB / 0.5 GB, free: 14.18 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004071/0.0004071, allocations: 12.81 kB / 0.598 GB, free: 28.28 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1345/0.1349, allocations: 88.55 MB / 0.6845 GB, free: 15.44 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion): time 0.403/0.538, allocations: 134.4 MB / 0.8158 GB, free: 1.285 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0001021/0.5381, allocations: 46.14 kB / 0.8158 GB, free: 1.281 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.558e-05/0.5382, allocations: 0 / 0.8158 GB, free: 1.281 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 8.856e-05/0.5383, allocations: 8.328 kB / 0.8158 GB, free: 1.277 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 6.312e-05/0.5383, allocations: 10.77 kB / 0.8158 GB, free: 1.277 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005262/0.5389, allocations: 157.7 kB / 0.816 GB, free: 1.246 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 7.319e-05/0.5389, allocations: 41.23 kB / 0.816 GB, free: 1.242 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.119e-05/0.539, allocations: 4.312 kB / 0.816 GB, free: 1.242 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 3.762e-05/0.539, allocations: 15.2 kB / 0.816 GB, free: 1.238 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 6.114e-05/0.5391, allocations: 14.34 kB / 0.816 GB, free: 1.238 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.129e-05/0.5391, allocations: 5.219 kB / 0.816 GB, free: 1.234 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002775/0.5394, allocations: 98.53 kB / 0.8161 GB, free: 1.219 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 3.268e-05/0.5394, allocations: 15.2 kB / 0.8162 GB, free: 1.215 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 7.179e-05/0.5395, allocations: 33.08 kB / 0.8162 GB, free: 17.18 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001258/0.5396, allocations: 56.64 kB / 0.8162 GB, free: 17.18 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.868e-06/0.5397, allocations: 0 / 0.8162 GB, free: 17.18 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.483e-06/0.5397, allocations: 0 / 0.8162 GB, free: 17.18 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 3.466e-06/0.5397, allocations: 0 / 0.8162 GB, free: 17.18 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003281/0.54, allocations: 331.1 kB / 0.8166 GB, free: 16.82 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.129e-05/0.54, allocations: 11.58 kB / 0.8166 GB, free: 16.82 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002888/0.5403, allocations: 26.03 kB / 0.8166 GB, free: 16.82 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001036/0.5404, allocations: 167.9 kB / 0.8168 GB, free: 16.61 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.624e-05/0.5405, allocations: 28.11 kB / 0.8168 GB, free: 16.58 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.257e-06/0.5405, allocations: 1.062 kB / 0.8168 GB, free: 16.58 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001274/0.5407, allocations: 50.73 kB / 0.8168 GB, free: 16.55 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.392e-06/0.5407, allocations: 0 / 0.8168 GB, free: 16.55 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.059e-05/0.5407, allocations: 0 / 0.8168 GB, free: 16.55 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.558e-05/0.5407, allocations: 6.734 kB / 0.8168 GB, free: 16.55 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.778e-05/0.5408, allocations: 20.95 kB / 0.8169 GB, free: 16.55 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003006/0.5411, allocations: 261.1 kB / 0.8171 GB, free: 16.28 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 3.792e-05/0.5411, allocations: 24.02 kB / 0.8171 GB, free: 16.25 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.687e-05/0.5411, allocations: 10.58 kB / 0.8171 GB, free: 16.24 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001453/0.5413, allocations: 91.58 kB / 0.8172 GB, free: 16.15 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.187e-05/0.5413, allocations: 39.86 kB / 0.8173 GB, free: 16.1 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 1.172e-06/0.5413, allocations: 0 / 0.8173 GB, free: 16.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0002133/0.5416, allocations: 54.62 kB / 0.8173 GB, free: 16.07 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.979e-05/0.5416, allocations: 51.41 kB / 0.8174 GB, free: 16 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.177e-05/0.5417, allocations: 112.7 kB / 0.8175 GB, free: 15.89 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.537e-05/0.5417, allocations: 26.98 kB / 0.8175 GB, free: 15.86 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.766e-05/0.5417, allocations: 88.5 kB / 0.8176 GB, free: 15.78 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 7.203e-06/0.5417, allocations: 10.95 kB / 0.8176 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.796e-06/0.5418, allocations: 4 kB / 0.8176 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.541e-05/0.5419, allocations: 312.3 kB / 0.8179 GB, free: 15.46 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.501e-05/0.5419, allocations: 7.766 kB / 0.8179 GB, free: 15.46 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.015e-05/0.5419, allocations: 19.64 kB / 0.8179 GB, free: 15.43 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.221e-05/0.5419, allocations: 10.8 kB / 0.8179 GB, free: 15.43 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.5419, allocations: 1.125 kB / 0.8179 GB, free: 15.43 MB / 0.5606 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.726e-05/0.542, allocations: 54.09 kB / 0.818 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.208e-05/0.542, allocations: 9.734 kB / 0.818 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.542, allocations: 0 / 0.818 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.347e-06/0.5421, allocations: 2.5 kB / 0.818 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.349e-05/0.5421, allocations: 11.69 kB / 0.818 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/0.5421, allocations: 1.75 kB / 0.818 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.607e-05/0.5422, allocations: 1.406 kB / 0.818 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.528e-06/0.5422, allocations: 5.25 kB / 0.818 GB, free: 15.38 MB / 0.5606 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 7.428e-05/0.5423, allocations: 118.6 kB / 0.8181 GB, free: 15.27 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.592e-05/0.5423, allocations: 2.344 kB / 0.8181 GB, free: 15.27 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.974e-05/0.5423, allocations: 10.08 kB / 0.8181 GB, free: 15.26 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.5423, allocations: 1.156 kB / 0.8181 GB, free: 15.26 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.5423, allocations: 0 / 0.8181 GB, free: 15.26 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.5423, allocations: 1.125 kB / 0.8181 GB, free: 15.26 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002661/0.5426, allocations: 359.8 kB / 0.8185 GB, free: 14.87 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.5426, allocations: 9.391 kB / 0.8185 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.694e-05/0.5426, allocations: 5.625 kB / 0.8185 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.5427, allocations: 1.188 kB / 0.8185 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.061e-06/0.5427, allocations: 4.625 kB / 0.8185 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.5427, allocations: 0 / 0.8185 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.5427, allocations: 3.281 kB / 0.8185 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.785e-05/0.5427, allocations: 74.81 kB / 0.8186 GB, free: 14.78 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.818e-05/0.5428, allocations: 81.06 kB / 0.8187 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.585e-05/0.5428, allocations: 1.156 kB / 0.8187 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.794e-05/0.5429, allocations: 6.062 kB / 0.8187 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.462e-05/0.5429, allocations: 1.312 kB / 0.8187 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.825e-06/0.5429, allocations: 5.25 kB / 0.8187 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.807e-05/0.543, allocations: 84.94 kB / 0.8188 GB, free: 14.61 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.543, allocations: 0 / 0.8188 GB, free: 14.61 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0001975/0.5432, allocations: 6.312 kB / 0.8188 GB, free: 14.61 MB / 0.5606 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 (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.0001056/0.5433, allocations: 107.9 kB / 0.8189 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 6.845e-05/0.5434, allocations: 17.41 kB / 0.8189 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.5434, allocations: 0 / 0.8189 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.008e-05/0.5434, allocations: 3.875 kB / 0.8189 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002005/0.5436, allocations: 10 kB / 0.8189 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002257/0.5438, allocations: 139.1 kB / 0.819 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002144/0.5441, allocations: 0.6749 MB / 0.8197 GB, free: 13.69 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 5.912e-05/0.5441, allocations: 11.17 kB / 0.8197 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.748e-05/0.5441, allocations: 9.812 kB / 0.8197 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of SimCode: time 2.21e-07/0.5442, allocations: 0 / 0.8197 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of Templates: time 0.002393/0.5465, allocations: 0.5342 MB / 0.8202 GB, free: 13.61 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.makefile (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 & ./BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.pipe 2>&1)