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.001119/0.001118, allocations: 91.61 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.001068/0.001068, 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 3.2.3+maint.om/package.mo): time 1.859/1.859, allocations: 205.4 MB / 222.1 MB, free: 5.887 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.7154/0.7154, allocations: 95.63 MB / 366 MB, free: 10.41 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.0008278/0.0008279, allocations: 16 kB / 446.9 MB, free: 9.418 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5027/0.5035, allocations: 70.34 MB / 0.5051 GB, free: 16.62 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Media.PerfectGases.Examples.MoistAirTemperatureEnthalpyInversion): time 0.5555/1.059, allocations: 141.4 MB / 0.6431 GB, free: 1.262 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 4.711e-05/1.059, allocations: 23.94 kB / 0.6432 GB, free: 1.262 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.148e-05/1.059, allocations: 1.781 kB / 0.6432 GB, free: 1.262 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001101/1.059, allocations: 0 / 0.6432 GB, free: 1.262 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001007/1.059, allocations: 17.45 kB / 0.6432 GB, free: 1.258 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001555/1.061, allocations: 408.5 kB / 0.6436 GB, free: 1.238 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 9.537e-05/1.061, allocations: 43.55 kB / 0.6436 GB, free: 1.238 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.366e-05/1.061, allocations: 6.969 kB / 0.6436 GB, free: 1.234 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.18e-05/1.061, allocations: 13.38 kB / 0.6436 GB, free: 1.234 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.237e-05/1.061, allocations: 12.12 kB / 0.6436 GB, free: 1.234 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.064e-05/1.061, allocations: 4.312 kB / 0.6436 GB, free: 1.234 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001173/1.062, allocations: 482.7 kB / 0.6441 GB, free: 1.227 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.304e-05/1.063, allocations: 8.578 kB / 0.6441 GB, free: 1.227 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001738/1.063, allocations: 30.08 kB / 0.6441 GB, free: 17.2 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004933/1.063, allocations: 229.2 kB / 0.6444 GB, free: 17.18 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 8.235e-06/1.063, allocations: 4 kB / 0.6444 GB, free: 17.18 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.937e-06/1.063, allocations: 1.781 kB / 0.6444 GB, free: 17.18 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.217e-06/1.063, allocations: 2.734 kB / 0.6444 GB, free: 17.18 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.0004884/1.064, allocations: 392.2 kB / 0.6447 GB, free: 16.79 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/1.064, allocations: 8.906 kB / 0.6447 GB, free: 16.79 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.268e-05/1.064, allocations: 1.688 kB / 0.6447 GB, free: 16.79 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001143/1.064, allocations: 167.9 kB / 0.6449 GB, free: 16.59 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.793e-05/1.064, allocations: 30.58 kB / 0.6449 GB, free: 16.55 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.083e-05/1.064, allocations: 4.75 kB / 0.6449 GB, free: 16.55 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001424/1.064, allocations: 50.33 kB / 0.645 GB, free: 16.52 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/1.064, allocations: 0 / 0.645 GB, free: 16.52 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/1.064, allocations: 0.7188 kB / 0.645 GB, free: 16.52 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.235e-05/1.064, allocations: 4.984 kB / 0.645 GB, free: 16.52 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.814e-05/1.064, allocations: 24.05 kB / 0.645 GB, free: 16.52 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003628/1.065, allocations: 259.8 kB / 0.6453 GB, free: 16.25 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 3.6e-05/1.065, allocations: 24.81 kB / 0.6453 GB, free: 16.23 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.48e-05/1.065, allocations: 6.422 kB / 0.6453 GB, free: 16.22 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.047e-05/1.065, allocations: 1.688 kB / 0.6453 GB, free: 16.22 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.791e-05/1.065, allocations: 34.19 kB / 0.6453 GB, free: 16.18 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/1.065, allocations: 1.781 kB / 0.6453 GB, free: 16.18 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001495/1.065, allocations: 41.34 kB / 0.6454 GB, free: 16.14 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.154e-05/1.065, allocations: 55.36 kB / 0.6454 GB, free: 16.08 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.089e-05/1.065, allocations: 108.4 kB / 0.6455 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 9.751e-05/1.065, allocations: 25.7 kB / 0.6455 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.742e-05/1.065, allocations: 94.23 kB / 0.6456 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.27e-06/1.065, allocations: 0 / 0.6456 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.766e-06/1.065, allocations: 0 / 0.6456 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001088/1.065, allocations: 317.4 kB / 0.6459 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.428e-05/1.065, allocations: 3.188 kB / 0.6459 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.853e-05/1.065, allocations: 24.69 kB / 0.646 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.625e-05/1.066, allocations: 12.91 kB / 0.646 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/1.066, allocations: 0 / 0.646 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.735e-05/1.066, allocations: 55.53 kB / 0.646 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/1.066, allocations: 5.344 kB / 0.646 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/1.066, allocations: 0.75 kB / 0.646 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/1.066, allocations: 3.406 kB / 0.646 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.035e-05/1.066, allocations: 9.641 kB / 0.646 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.124e-06/1.066, allocations: 11.36 kB / 0.6461 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.306e-05/1.066, allocations: 7.375 kB / 0.6461 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.236e-05/1.066, allocations: 1.781 kB / 0.6461 GB, free: 15.47 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.577e-05/1.066, allocations: 112.5 kB / 0.6462 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.471e-05/1.066, allocations: 5.359 kB / 0.6462 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001286/1.066, allocations: 125.4 kB / 0.6463 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001237/1.066, allocations: 186.2 kB / 0.6465 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-05/1.066, allocations: 178.9 kB / 0.6466 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.152e-05/1.066, allocations: 183.9 kB / 0.6468 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003029/1.067, allocations: 403.1 kB / 0.6472 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.059e-05/1.067, allocations: 106.5 kB / 0.6473 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.506e-05/1.067, allocations: 107.2 kB / 0.6474 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.999e-05/1.067, allocations: 183.2 kB / 0.6476 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.079e-05/1.067, allocations: 183.1 kB / 0.6478 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.812e-05/1.067, allocations: 179 kB / 0.6479 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.485e-05/1.067, allocations: 182.2 kB / 0.6481 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001477/1.067, allocations: 315.6 kB / 0.6484 GB, free: 12.99 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.877e-05/1.067, allocations: 184.6 kB / 0.6486 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.82e-05/1.067, allocations: 178 kB / 0.6488 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001354/1.068, allocations: 111.2 kB / 0.6489 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.898e-05/1.068, allocations: 181.8 kB / 0.649 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.625e-05/1.068, allocations: 107.7 kB / 0.6491 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.421e-05/1.068, allocations: 91.02 kB / 0.6492 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/1.068, allocations: 0 / 0.6492 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005034/1.068, allocations: 93.91 kB / 0.6493 GB, free: 12.12 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 (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.0008291/1.069, allocations: 343.7 kB / 0.6496 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001042/1.069, allocations: 15.89 kB / 0.6497 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/1.069, allocations: 0 / 0.6497 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.613e-06/1.069, allocations: 0 / 0.6497 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006357/1.07, allocations: 0.5232 MB / 0.6502 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004475/1.07, allocations: 192.2 kB / 0.6503 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003229/1.071, allocations: 0.676 MB / 0.651 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.454e-05/1.071, allocations: 8.719 kB / 0.651 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.883e-05/1.071, allocations: 19.58 kB / 0.651 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/1.071, allocations: 0 / 0.651 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of Templates: time 0.00595/1.077, allocations: 2.112 MB / 0.6531 GB, free: 10.29 MB / 0.4981 GB make -j1 -f Buildings_1.6_Buildings.Media.PerfectGases.Examples.MoistAirTemperatureEnthalpyInversion.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: