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.001204/0.001204, allocations: 106.7 kB / 16.41 MB, free: 6.473 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.001269/0.001269, allocations: 187 kB / 17.34 MB, free: 5.754 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.24/1.24, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002068/0.002068, allocations: 298 kB / 291.5 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8789/0.8789, allocations: 169.3 MB / 0.499 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001774/0.001774, allocations: 95.86 kB / 0.6821 GB, free: 6.977 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3873/0.3891, allocations: 86.97 MB / 0.767 GB, free: 3.926 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion): time 0.139/0.5281, allocations: 148.3 MB / 0.9118 GB, free: 15.07 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.0001358/0.5283, allocations: 51.8 kB / 0.9119 GB, free: 15.02 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.439e-05/0.5284, allocations: 4 kB / 0.9119 GB, free: 15.01 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.0001088/0.5285, allocations: 3.984 kB / 0.9119 GB, free: 15.01 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 6.995e-05/0.5286, allocations: 3.938 kB / 0.9119 GB, free: 15 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007179/0.5293, allocations: 223.2 kB / 0.9121 GB, free: 14.79 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 7.4e-05/0.5294, allocations: 27.86 kB / 0.9121 GB, free: 14.76 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 4.152e-05/0.5294, allocations: 11.97 kB / 0.9121 GB, free: 14.75 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 3.356e-05/0.5295, allocations: 12 kB / 0.9121 GB, free: 14.73 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 6.725e-05/0.5295, allocations: 11.92 kB / 0.9122 GB, free: 14.72 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 1.353e-05/0.5296, allocations: 7.938 kB / 0.9122 GB, free: 14.71 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003843/0.53, allocations: 195.5 kB / 0.9124 GB, free: 14.52 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 4.332e-05/0.53, allocations: 7.984 kB / 0.9124 GB, free: 14.52 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 2.969e-05/0.53, allocations: 11.92 kB / 0.9124 GB, free: 14.5 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.0002395/0.5303, allocations: 115.5 kB / 0.9125 GB, free: 14.39 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.5303, allocations: 4 kB / 0.9125 GB, free: 14.39 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.312e-06/0.5303, allocations: 0 / 0.9125 GB, free: 14.39 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 5.711e-06/0.5303, allocations: 0 / 0.9125 GB, free: 14.39 MB / 0.6856 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.0004001/0.5307, allocations: 349.9 kB / 0.9128 GB, free: 14 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 3.29e-05/0.5308, allocations: 8.031 kB / 0.9128 GB, free: 14 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002992/0.5311, allocations: 28.89 kB / 0.9129 GB, free: 13.97 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001148/0.5312, allocations: 164.4 kB / 0.913 GB, free: 13.77 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.214e-05/0.5313, allocations: 33.64 kB / 0.913 GB, free: 13.73 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.725e-06/0.5313, allocations: 0 / 0.913 GB, free: 13.73 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001239/0.5314, allocations: 57.61 kB / 0.9131 GB, free: 13.67 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.743e-06/0.5314, allocations: 0 / 0.9131 GB, free: 13.67 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.134e-05/0.5314, allocations: 0 / 0.9131 GB, free: 13.67 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.405e-05/0.5315, allocations: 3.938 kB / 0.9131 GB, free: 13.66 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.229e-05/0.5315, allocations: 19.98 kB / 0.9131 GB, free: 13.64 MB / 0.6856 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003455/0.5319, allocations: 256.8 kB / 0.9134 GB, free: 13.34 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 4.973e-05/0.5319, allocations: 34.59 kB / 0.9134 GB, free: 13.3 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.11e-05/0.532, allocations: 8.859 kB / 0.9134 GB, free: 13.29 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001395/0.5321, allocations: 93.16 kB / 0.9135 GB, free: 13.18 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.38e-05/0.5321, allocations: 30.56 kB / 0.9135 GB, free: 13.14 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=2): time 1.222e-06/0.5322, allocations: 3.938 kB / 0.9135 GB, free: 13.14 MB / 0.6856 GB Notification: Performance of matching and sorting (n=2): time 0.0002278/0.5324, allocations: 53.69 kB / 0.9136 GB, free: 13.08 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.039e-05/0.5324, allocations: 51.41 kB / 0.9136 GB, free: 13.02 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.024e-05/0.5325, allocations: 109.7 kB / 0.9137 GB, free: 12.9 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 1.417e-05/0.5325, allocations: 25.7 kB / 0.9138 GB, free: 12.87 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 4.015e-05/0.5326, allocations: 84.14 kB / 0.9138 GB, free: 12.78 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 7.053e-06/0.5326, allocations: 3.906 kB / 0.9138 GB, free: 12.78 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.994e-05/0.5326, allocations: 17.72 kB / 0.9139 GB, free: 12.75 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001087/0.5327, allocations: 323 kB / 0.9142 GB, free: 12.43 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.679e-05/0.5328, allocations: 8 kB / 0.9142 GB, free: 12.42 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.806e-05/0.5328, allocations: 18.58 kB / 0.9142 GB, free: 12.39 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.116e-05/0.5328, allocations: 34.5 kB / 0.9142 GB, free: 12.35 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.5329, allocations: 8 kB / 0.9142 GB, free: 12.34 MB / 0.6856 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.616e-05/0.5329, allocations: 57.55 kB / 0.9143 GB, free: 12.28 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.533, allocations: 6.812 kB / 0.9143 GB, free: 12.28 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.533, allocations: 7.922 kB / 0.9143 GB, free: 12.27 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.098e-05/0.533, allocations: 0 / 0.9143 GB, free: 12.27 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.426e-05/0.533, allocations: 8 kB / 0.9143 GB, free: 12.26 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.5331, allocations: 7.875 kB / 0.9143 GB, free: 12.25 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.526e-05/0.5331, allocations: 0 / 0.9143 GB, free: 12.25 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.667e-06/0.5331, allocations: 4 kB / 0.9143 GB, free: 12.25 MB / 0.6856 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 7.829e-05/0.5332, allocations: 120.3 kB / 0.9144 GB, free: 12.12 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.404e-05/0.5332, allocations: 0 / 0.9144 GB, free: 12.12 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.804e-05/0.5332, allocations: 7.125 kB / 0.9144 GB, free: 12.12 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.5332, allocations: 3.984 kB / 0.9144 GB, free: 12.12 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.5332, allocations: 3.938 kB / 0.9144 GB, free: 12.11 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.5333, allocations: 0 / 0.9144 GB, free: 12.11 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002725/0.5335, allocations: 359.6 kB / 0.9148 GB, free: 11.7 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.5335, allocations: 0 / 0.9148 GB, free: 11.7 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.612e-05/0.5336, allocations: 7.984 kB / 0.9148 GB, free: 11.69 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/0.5336, allocations: 3.938 kB / 0.9148 GB, free: 11.69 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.28e-06/0.5336, allocations: 0 / 0.9148 GB, free: 11.69 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.5336, allocations: 3.938 kB / 0.9148 GB, free: 11.68 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.5336, allocations: 4 kB / 0.9148 GB, free: 11.68 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.511e-05/0.5337, allocations: 77.91 kB / 0.9149 GB, free: 11.58 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 4.773e-05/0.5337, allocations: 88.97 kB / 0.915 GB, free: 11.48 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.711e-05/0.5338, allocations: 4 kB / 0.915 GB, free: 11.47 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.657e-05/0.5338, allocations: 0 / 0.915 GB, free: 11.47 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.493e-05/0.5339, allocations: 4 kB / 0.915 GB, free: 11.47 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.013e-06/0.5339, allocations: 0 / 0.915 GB, free: 11.47 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 4.235e-05/0.5339, allocations: 83.27 kB / 0.9151 GB, free: 11.39 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.01e-07/0.5339, allocations: 0 / 0.9151 GB, free: 11.39 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.0002043/0.5341, allocations: 12 kB / 0.9151 GB, free: 11.38 MB / 0.6856 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.0001001/0.5342, allocations: 99.7 kB / 0.9152 GB, free: 11.27 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 7.99e-05/0.5343, allocations: 15.94 kB / 0.9152 GB, free: 11.25 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.5343, allocations: 0 / 0.9152 GB, free: 11.25 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 1.223e-05/0.5343, allocations: 11.98 kB / 0.9152 GB, free: 11.24 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002162/0.5346, allocations: 6.75 kB / 0.9152 GB, free: 11.24 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002598/0.5348, allocations: 160.7 kB / 0.9153 GB, free: 11.05 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002374/0.5351, allocations: 0.6768 MB / 0.916 GB, free: 10.34 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.444e-05/0.5351, allocations: 7.438 kB / 0.916 GB, free: 10.34 MB / 0.6856 GB Notification: Performance of SimCode: time 3.51e-07/0.5351, allocations: 3.938 kB / 0.916 GB, free: 10.33 MB / 0.6856 GB Notification: Performance of Templates: time 0.001768/0.5369, allocations: 0.6127 MB / 0.9166 GB, free: 9.719 MB / 0.6856 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)