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.001089/0.00109, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.008023/0.008023, allocations: 168.9 kB / 16.26 MB, free: 6.656 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.336/1.336, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001877/0.001877, allocations: 278.4 kB / 291.7 MB, free: 1.879 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9596/0.9596, allocations: 169.5 MB / 0.5004 GB, free: 14.11 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004325/0.0004325, allocations: 14.72 kB / 0.5986 GB, free: 27.93 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1674/0.1678, allocations: 88.55 MB / 0.6851 GB, free: 15.07 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion): time 0.4745/0.6423, allocations: 144.1 MB / 0.8259 GB, free: 15.86 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0001087/0.6425, allocations: 49.58 kB / 0.8259 GB, free: 15.85 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.848e-05/0.6425, allocations: 0 / 0.8259 GB, free: 15.85 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 9.699e-05/0.6426, allocations: 4 kB / 0.8259 GB, free: 15.85 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 7.483e-05/0.6427, allocations: 14.2 kB / 0.8259 GB, free: 15.84 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006538/0.6434, allocations: 203 kB / 0.8261 GB, free: 15.8 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 8.676e-05/0.6435, allocations: 59.39 kB / 0.8262 GB, free: 15.78 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.072e-05/0.6435, allocations: 1.219 kB / 0.8262 GB, free: 15.78 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.39e-05/0.6435, allocations: 19.62 kB / 0.8262 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 6.699e-05/0.6436, allocations: 16.22 kB / 0.8262 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.118e-05/0.6436, allocations: 5.031 kB / 0.8262 GB, free: 15.76 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003888/0.644, allocations: 224.2 kB / 0.8264 GB, free: 15.7 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.387e-05/0.6441, allocations: 9.719 kB / 0.8264 GB, free: 15.69 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.889e-05/0.6441, allocations: 41.98 kB / 0.8265 GB, free: 15.65 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002341/0.6444, allocations: 125 kB / 0.8266 GB, free: 15.61 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.6444, allocations: 0.9375 kB / 0.8266 GB, free: 15.61 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.333e-06/0.6444, allocations: 3.938 kB / 0.8266 GB, free: 15.61 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 3.627e-06/0.6444, allocations: 4 kB / 0.8266 GB, free: 15.61 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.0003291/0.6447, allocations: 334.1 kB / 0.8269 GB, free: 15.25 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.497e-05/0.6448, allocations: 9.5 kB / 0.8269 GB, free: 15.25 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003001/0.6451, allocations: 23.75 kB / 0.827 GB, free: 15.24 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001085/0.6452, allocations: 166.3 kB / 0.8271 GB, free: 15.04 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.239e-05/0.6453, allocations: 31.67 kB / 0.8272 GB, free: 15 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.055e-06/0.6453, allocations: 1.281 kB / 0.8272 GB, free: 15 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001237/0.6454, allocations: 50.41 kB / 0.8272 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.791e-06/0.6454, allocations: 0 / 0.8272 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.154e-05/0.6454, allocations: 0 / 0.8272 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.898e-05/0.6455, allocations: 6.031 kB / 0.8272 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.232e-05/0.6455, allocations: 21.2 kB / 0.8272 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003252/0.6458, allocations: 263.3 kB / 0.8275 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 4.716e-05/0.6459, allocations: 31.75 kB / 0.8275 GB, free: 14.64 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.865e-05/0.6459, allocations: 7.297 kB / 0.8275 GB, free: 14.63 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000134/0.6461, allocations: 94.16 kB / 0.8276 GB, free: 14.54 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.721e-05/0.6461, allocations: 35.81 kB / 0.8276 GB, free: 14.49 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.6461, allocations: 3.938 kB / 0.8276 GB, free: 14.49 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0002159/0.6463, allocations: 51.88 kB / 0.8277 GB, free: 14.45 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.106e-05/0.6464, allocations: 56.58 kB / 0.8277 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.744e-05/0.6465, allocations: 107.1 kB / 0.8279 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.685e-05/0.6465, allocations: 26.7 kB / 0.8279 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.998e-05/0.6465, allocations: 88.5 kB / 0.828 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.027e-06/0.6465, allocations: 11.45 kB / 0.828 GB, free: 14.15 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.254e-05/0.6466, allocations: 11.03 kB / 0.828 GB, free: 14.14 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 8.58e-05/0.6467, allocations: 312 kB / 0.8283 GB, free: 13.82 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.775e-05/0.6467, allocations: 10.88 kB / 0.8283 GB, free: 13.82 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.713e-05/0.6467, allocations: 22.75 kB / 0.8283 GB, free: 13.79 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.398e-05/0.6468, allocations: 31.02 kB / 0.8283 GB, free: 13.77 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.6468, allocations: 0.875 kB / 0.8283 GB, free: 13.77 MB / 0.5606 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.893e-05/0.6469, allocations: 61.47 kB / 0.8284 GB, free: 13.72 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.506e-05/0.6469, allocations: 5.312 kB / 0.8284 GB, free: 13.72 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.758e-06/0.6469, allocations: 0.9688 kB / 0.8284 GB, free: 13.72 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.859e-06/0.6469, allocations: 1.25 kB / 0.8284 GB, free: 13.72 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.089e-05/0.647, allocations: 5 kB / 0.8284 GB, free: 13.72 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.647, allocations: 5.562 kB / 0.8284 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.884e-05/0.647, allocations: 9.781 kB / 0.8284 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.539e-06/0.647, allocations: 1.125 kB / 0.8284 GB, free: 13.71 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.602e-05/0.6471, allocations: 114.9 kB / 0.8285 GB, free: 13.59 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.517e-05/0.6471, allocations: 7.938 kB / 0.8285 GB, free: 13.59 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.997e-05/0.6471, allocations: 7.938 kB / 0.8286 GB, free: 13.58 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.6472, allocations: 1.062 kB / 0.8286 GB, free: 13.58 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.6472, allocations: 1.812 kB / 0.8286 GB, free: 13.58 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.6472, allocations: 5.094 kB / 0.8286 GB, free: 13.58 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002486/0.6474, allocations: 359.6 kB / 0.8289 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.6474, allocations: 1.312 kB / 0.8289 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.374e-05/0.6475, allocations: 2.031 kB / 0.8289 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.6475, allocations: 8.812 kB / 0.8289 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.16e-06/0.6475, allocations: 0.9688 kB / 0.8289 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.6475, allocations: 1.094 kB / 0.8289 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.6475, allocations: 1.125 kB / 0.8289 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.131e-05/0.6476, allocations: 71.61 kB / 0.829 GB, free: 13.1 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 2.933e-05/0.6476, allocations: 78.08 kB / 0.8291 GB, free: 13 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.588e-05/0.6476, allocations: 9 kB / 0.8291 GB, free: 13 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.47e-05/0.6477, allocations: 10.83 kB / 0.8291 GB, free: 12.99 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.151e-05/0.6477, allocations: 3.656 kB / 0.8291 GB, free: 12.99 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.485e-06/0.6477, allocations: 1.344 kB / 0.8291 GB, free: 12.99 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.37e-05/0.6478, allocations: 78.22 kB / 0.8292 GB, free: 12.92 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6478, allocations: 3.938 kB / 0.8292 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0001885/0.648, allocations: 7.469 kB / 0.8292 GB, free: 12.91 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 (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.0001236/0.6481, allocations: 107.8 kB / 0.8293 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 6.828e-05/0.6482, allocations: 18.39 kB / 0.8293 GB, free: 12.81 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.6482, allocations: 0 / 0.8293 GB, free: 12.81 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 9.167e-06/0.6482, allocations: 3.656 kB / 0.8293 GB, free: 12.81 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001978/0.6484, allocations: 9.75 kB / 0.8293 GB, free: 12.81 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002418/0.6487, allocations: 143.8 kB / 0.8294 GB, free: 12.67 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002183/0.6489, allocations: 0.6777 MB / 0.8301 GB, free: 11.97 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 5.865e-05/0.649, allocations: 12.7 kB / 0.8301 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.929e-05/0.649, allocations: 8.5 kB / 0.8301 GB, free: 11.95 MB / 0.5606 GB Notification: Performance of SimCode: time 2.41e-07/0.649, allocations: 5.062 kB / 0.8301 GB, free: 11.95 MB / 0.5606 GB Notification: Performance of Templates: time 0.002469/0.6515, allocations: 0.5533 MB / 0.8307 GB, free: 11.68 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)