Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirTemperatureEnthalpyInversion.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Media.PerfectGases.Examples.MoistAirTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirTemperatureEnthalpyInversion") translateModel(Buildings.Media.PerfectGases.Examples.MoistAirTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00115/0.00115, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001456/0.001456, allocations: 190.7 kB / 16.25 MB, free: 6.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.524/1.524, allocations: 205.1 MB / 222.1 MB, free: 4.734 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.6549/0.6549, allocations: 95.48 MB / 364.9 MB, free: 10.07 MB / 302.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Buildings requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001478/0.001478, allocations: 67.91 kB / 444.8 MB, free: 9.996 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3087/0.3102, allocations: 69.07 MB / 0.5019 GB, free: 17.55 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Media.PerfectGases.Examples.MoistAirTemperatureEnthalpyInversion): time 0.4565/0.7667, allocations: 153.7 MB / 0.652 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 5.45e-05/0.7668, allocations: 18.3 kB / 0.652 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.187e-05/0.7669, allocations: 0 / 0.652 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.000111/0.767, allocations: 5.344 kB / 0.652 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 7.808e-05/0.7671, allocations: 20.91 kB / 0.652 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001768/0.7689, allocations: 469.8 kB / 0.6524 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 8.568e-05/0.769, allocations: 37.56 kB / 0.6525 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.069e-05/0.769, allocations: 5.016 kB / 0.6525 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.272e-05/0.769, allocations: 9.188 kB / 0.6525 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.32e-05/0.7691, allocations: 11.14 kB / 0.6525 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.18e-05/0.7691, allocations: 0.75 kB / 0.6525 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001188/0.7703, allocations: 0.5368 MB / 0.653 GB, free: 12.56 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.415e-05/0.7704, allocations: 6.125 kB / 0.653 GB, free: 12.56 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.055e-05/0.7704, allocations: 12.53 kB / 0.6531 GB, free: 12.56 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006341/0.7711, allocations: 362.9 kB / 0.6534 GB, free: 12.53 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.7711, allocations: 0 / 0.6534 GB, free: 12.53 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.005e-06/0.7711, allocations: 4 kB / 0.6534 GB, free: 12.53 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.17e-06/0.7711, allocations: 3.938 kB / 0.6534 GB, free: 12.52 MB / 0.4981 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.0004797/0.7716, allocations: 394 kB / 0.6538 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.7716, allocations: 14.33 kB / 0.6538 GB, free: 12.13 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.053e-05/0.7717, allocations: 6.781 kB / 0.6538 GB, free: 12.13 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001085/0.7718, allocations: 163 kB / 0.654 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.929e-05/0.7718, allocations: 30.61 kB / 0.654 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.037e-06/0.7719, allocations: 4.594 kB / 0.654 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001302/0.772, allocations: 47.81 kB / 0.654 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.932e-06/0.772, allocations: 0 / 0.654 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.043e-05/0.772, allocations: 6.219 kB / 0.654 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.807e-05/0.7721, allocations: 3.938 kB / 0.654 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.686e-05/0.7721, allocations: 24.5 kB / 0.6541 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000372/0.7725, allocations: 258.5 kB / 0.6543 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 3.505e-05/0.7725, allocations: 14.58 kB / 0.6543 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.668e-05/0.7726, allocations: 18.3 kB / 0.6543 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.677e-05/0.7726, allocations: 5.188 kB / 0.6544 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.134e-05/0.7726, allocations: 31.77 kB / 0.6544 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 1.222e-06/0.7726, allocations: 0 / 0.6544 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001355/0.7728, allocations: 44.94 kB / 0.6544 GB, free: 11.47 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.895e-05/0.7728, allocations: 53.84 kB / 0.6545 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.695e-05/0.7729, allocations: 100.8 kB / 0.6546 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.289e-05/0.7729, allocations: 33.02 kB / 0.6546 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.799e-05/0.7729, allocations: 90.33 kB / 0.6547 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 6.301e-06/0.773, allocations: 3.906 kB / 0.6547 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.033e-05/0.773, allocations: 18 kB / 0.6547 GB, free: 11.17 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001053/0.7731, allocations: 315.3 kB / 0.655 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.622e-05/0.7731, allocations: 5.719 kB / 0.655 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.645e-05/0.7732, allocations: 24.59 kB / 0.655 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.871e-05/0.7732, allocations: 36.78 kB / 0.6551 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.7732, allocations: 3.938 kB / 0.6551 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.587e-05/0.7733, allocations: 59.31 kB / 0.6551 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.061e-05/0.7733, allocations: 5.344 kB / 0.6551 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.7733, allocations: 0 / 0.6551 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.026e-05/0.7733, allocations: 6.781 kB / 0.6551 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.529e-05/0.7734, allocations: 5.094 kB / 0.6552 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.7734, allocations: 0 / 0.6552 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.469e-05/0.7734, allocations: 9.391 kB / 0.6552 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.054e-05/0.7735, allocations: 6.312 kB / 0.6552 GB, free: 10.75 MB / 0.4981 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.539e-05/0.7735, allocations: 113.1 kB / 0.6553 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.642e-05/0.7736, allocations: 3.938 kB / 0.6553 GB, free: 10.63 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001074/0.7737, allocations: 127.4 kB / 0.6554 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.022e-05/0.7737, allocations: 180.2 kB / 0.6556 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.89e-05/0.7738, allocations: 182.4 kB / 0.6557 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.447e-05/0.7739, allocations: 176.3 kB / 0.6559 GB, free: 9.965 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002081/0.7741, allocations: 413.9 kB / 0.6563 GB, free: 9.512 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.478e-05/0.7741, allocations: 107.3 kB / 0.6564 GB, free: 9.402 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.17e-05/0.7742, allocations: 112.2 kB / 0.6565 GB, free: 9.289 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.104e-05/0.7742, allocations: 176.3 kB / 0.6567 GB, free: 9.109 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.839e-05/0.7743, allocations: 185.8 kB / 0.6569 GB, free: 8.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.687e-05/0.7743, allocations: 180.2 kB / 0.657 GB, free: 8.746 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.723e-05/0.7744, allocations: 176.3 kB / 0.6572 GB, free: 8.566 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001265/0.7745, allocations: 315.4 kB / 0.6575 GB, free: 8.246 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.624e-05/0.7746, allocations: 178.1 kB / 0.6577 GB, free: 8.047 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.141e-05/0.7747, allocations: 189.4 kB / 0.6579 GB, free: 7.859 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001251/0.7748, allocations: 105.6 kB / 0.658 GB, free: 7.754 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.826e-05/0.7749, allocations: 187.5 kB / 0.6581 GB, free: 7.566 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.272e-05/0.7749, allocations: 103.5 kB / 0.6582 GB, free: 7.461 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.372e-05/0.775, allocations: 83.62 kB / 0.6583 GB, free: 7.387 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.775, allocations: 1.203 kB / 0.6583 GB, free: 7.387 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003643/0.7753, allocations: 95.97 kB / 0.6584 GB, free: 7.367 MB / 0.4981 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.0006295/0.776, allocations: 346.2 kB / 0.6587 GB, free: 7.172 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 6.853e-05/0.7761, allocations: 15.88 kB / 0.6588 GB, free: 7.164 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.7761, allocations: 0 / 0.6588 GB, free: 7.164 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 2.274e-06/0.7761, allocations: 2.719 kB / 0.6588 GB, free: 7.164 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003506/0.7764, allocations: 468.5 kB / 0.6592 GB, free: 6.711 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002412/0.7767, allocations: 183.2 kB / 0.6594 GB, free: 6.531 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002145/0.7769, allocations: 0.6739 MB / 0.66 GB, free: 5.836 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.806e-05/0.777, allocations: 12.45 kB / 0.66 GB, free: 5.832 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2e-05/0.777, allocations: 9.906 kB / 0.6601 GB, free: 5.824 MB / 0.4981 GB Notification: Performance of SimCode: time 2.6e-07/0.777, allocations: 0 / 0.6601 GB, free: 5.824 MB / 0.4981 GB Notification: Performance of Templates: time 0.004913/0.7819, allocations: 2.206 MB / 0.6622 GB, free: 5.594 MB / 0.4981 GB make -j1 -f Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirTemperatureEnthalpyInversion.makefile (rm -f Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirTemperatureEnthalpyInversion.pipe >> ../files/Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirTemperatureEnthalpyInversion.sim & ./Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirTemperatureEnthalpyInversion.pipe 2>&1)