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.001386/0.001386, allocations: 108 kB / 15.61 MB, free: 152 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.001442/0.001442, allocations: 195.6 kB / 16.53 MB, free: 6.664 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.593/1.593, allocations: 205.1 MB / 222.4 MB, free: 4.59 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.6198/0.6198, allocations: 95.48 MB / 365.2 MB, free: 9.887 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.003096/0.003096, allocations: 67.91 kB / 445.3 MB, free: 9.625 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3443/0.3475, allocations: 69.08 MB / 0.5024 GB, free: 17.38 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Media.PerfectGases.Examples.MoistAirTemperatureEnthalpyInversion): time 0.4712/0.8187, allocations: 155.8 MB / 0.6545 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 7.43e-05/0.8188, allocations: 27.17 kB / 0.6545 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.705e-05/0.8188, allocations: 0.5312 kB / 0.6545 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.000134/0.819, allocations: 4.469 kB / 0.6545 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 9.53e-05/0.8191, allocations: 21.81 kB / 0.6546 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001774/0.8209, allocations: 0.5099 MB / 0.6551 GB, free: 13.65 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 7.465e-05/0.821, allocations: 31.23 kB / 0.6551 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.247e-05/0.8211, allocations: 0 / 0.6551 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.217e-05/0.8211, allocations: 18.27 kB / 0.6551 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.977e-05/0.8212, allocations: 15.08 kB / 0.6551 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.407e-05/0.8212, allocations: 2.656 kB / 0.6551 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009543/0.8222, allocations: 0.5277 MB / 0.6556 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 5.527e-05/0.8222, allocations: 7.766 kB / 0.6556 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.021e-05/0.8223, allocations: 13.61 kB / 0.6557 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0005684/0.8229, allocations: 351.3 kB / 0.656 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.8229, allocations: 0 / 0.656 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.873e-06/0.8229, allocations: 0 / 0.656 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.13e-06/0.8229, allocations: 0 / 0.656 GB, free: 13.57 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.0005428/0.8234, allocations: 398.8 kB / 0.6564 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.297e-05/0.8235, allocations: 11.61 kB / 0.6564 GB, free: 13.17 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.096e-05/0.8235, allocations: 10.05 kB / 0.6564 GB, free: 13.17 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001212/0.8236, allocations: 166.3 kB / 0.6566 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.495e-05/0.8237, allocations: 33.77 kB / 0.6566 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.628e-06/0.8237, allocations: 0 / 0.6566 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001278/0.8239, allocations: 56.48 kB / 0.6566 GB, free: 12.9 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.8239, allocations: 0 / 0.6566 GB, free: 12.9 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.235e-05/0.8239, allocations: 0 / 0.6566 GB, free: 12.9 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.045e-05/0.8239, allocations: 5.969 kB / 0.6566 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.838e-05/0.824, allocations: 23.91 kB / 0.6567 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004146/0.8244, allocations: 258.6 kB / 0.6569 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.283e-05/0.8245, allocations: 22.14 kB / 0.6569 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.093e-05/0.8245, allocations: 10.2 kB / 0.6569 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.135e-05/0.8245, allocations: 7.891 kB / 0.657 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.861e-05/0.8245, allocations: 30.56 kB / 0.657 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.8246, allocations: 0 / 0.657 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001771/0.8247, allocations: 39.38 kB / 0.657 GB, free: 12.51 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.936e-05/0.8248, allocations: 58.72 kB / 0.6571 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001001/0.8249, allocations: 106.8 kB / 0.6572 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.968e-05/0.8249, allocations: 29.64 kB / 0.6572 GB, free: 12.31 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.312e-05/0.825, allocations: 84.05 kB / 0.6573 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.494e-06/0.825, allocations: 3.906 kB / 0.6573 GB, free: 12.22 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.372e-05/0.8251, allocations: 19.62 kB / 0.6573 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001485/0.8252, allocations: 315 kB / 0.6576 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.428e-05/0.8253, allocations: 7.234 kB / 0.6576 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.155e-05/0.8253, allocations: 26.06 kB / 0.6576 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.153e-05/0.8254, allocations: 34.17 kB / 0.6577 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.8254, allocations: 2.891 kB / 0.6577 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001147/0.8255, allocations: 57.83 kB / 0.6577 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.468e-05/0.8255, allocations: 9.438 kB / 0.6577 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.8256, allocations: 0.5625 kB / 0.6577 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.267e-05/0.8256, allocations: 1.094 kB / 0.6577 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.701e-05/0.8257, allocations: 8.266 kB / 0.6578 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.8257, allocations: 1.031 kB / 0.6578 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.418e-05/0.8257, allocations: 12.3 kB / 0.6578 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.447e-05/0.8258, allocations: 2.75 kB / 0.6578 GB, free: 11.79 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 9.013e-05/0.8258, allocations: 108.2 kB / 0.6579 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.056e-05/0.8259, allocations: 5.125 kB / 0.6579 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001496/0.826, allocations: 134.7 kB / 0.658 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.086e-05/0.8261, allocations: 177.5 kB / 0.6582 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.964e-05/0.8262, allocations: 180.3 kB / 0.6583 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.092e-05/0.8263, allocations: 180.7 kB / 0.6585 GB, free: 11 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002657/0.8266, allocations: 416.3 kB / 0.6589 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.81e-05/0.8266, allocations: 106.2 kB / 0.659 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.952e-05/0.8267, allocations: 106.7 kB / 0.6591 GB, free: 10.33 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.274e-05/0.8267, allocations: 181.7 kB / 0.6593 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.378e-05/0.8268, allocations: 182.9 kB / 0.6595 GB, free: 9.961 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.1e-05/0.8269, allocations: 178.6 kB / 0.6596 GB, free: 9.781 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.546e-05/0.827, allocations: 188.2 kB / 0.6598 GB, free: 9.594 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000161/0.8272, allocations: 308.9 kB / 0.6601 GB, free: 9.277 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 9.276e-05/0.8273, allocations: 180.2 kB / 0.6603 GB, free: 9.078 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.507e-05/0.8274, allocations: 182.6 kB / 0.6605 GB, free: 8.898 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001622/0.8275, allocations: 111.3 kB / 0.6606 GB, free: 8.785 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.695e-05/0.8276, allocations: 178.5 kB / 0.6607 GB, free: 8.605 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.59e-05/0.8277, allocations: 111.3 kB / 0.6608 GB, free: 8.492 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.678e-05/0.8278, allocations: 85.27 kB / 0.6609 GB, free: 8.418 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8278, allocations: 0 / 0.6609 GB, free: 8.418 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005261/0.8283, allocations: 91 kB / 0.661 GB, free: 8.402 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.0009685/0.8293, allocations: 350.7 kB / 0.6613 GB, free: 8.199 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001036/0.8294, allocations: 10.64 kB / 0.6613 GB, free: 8.199 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.8294, allocations: 0.5312 kB / 0.6613 GB, free: 8.199 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 5.12e-06/0.8294, allocations: 4.438 kB / 0.6614 GB, free: 8.195 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004297/0.8299, allocations: 469.4 kB / 0.6618 GB, free: 7.742 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002997/0.8302, allocations: 176.8 kB / 0.662 GB, free: 7.57 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002609/0.8304, allocations: 0.6742 MB / 0.6626 GB, free: 6.875 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.465e-05/0.8305, allocations: 10.83 kB / 0.6626 GB, free: 6.871 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.063e-05/0.8305, allocations: 9.969 kB / 0.6626 GB, free: 6.863 MB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.8305, allocations: 1.203 kB / 0.6626 GB, free: 6.863 MB / 0.4981 GB Notification: Performance of Templates: time 0.00474/0.8353, allocations: 2.218 MB / 0.6648 GB, free: 6.629 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)