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.001329/0.001334, allocations: 102 kB / 16.41 MB, free: 6.488 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.001273/0.001273, allocations: 192.2 kB / 17.34 MB, free: 5.73 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.26/1.26, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002065/0.002065, allocations: 296.2 kB / 291.5 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9697/0.9697, allocations: 169.3 MB / 0.499 GB, free: 4.422 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001759/0.001759, allocations: 95.84 kB / 0.6821 GB, free: 6.992 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3971/0.3989, allocations: 86.98 MB / 0.767 GB, free: 3.953 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion): time 0.1482/0.5471, allocations: 148.3 MB / 0.9118 GB, free: 15.1 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.000165/0.5473, allocations: 51.8 kB / 0.9119 GB, free: 15.05 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.795e-05/0.5474, allocations: 0 / 0.9119 GB, free: 15.05 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.0001107/0.5475, allocations: 3.938 kB / 0.9119 GB, free: 15.05 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 8.315e-05/0.5476, allocations: 23.91 kB / 0.9119 GB, free: 15.02 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.000809/0.5484, allocations: 203.2 kB / 0.9121 GB, free: 14.82 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 9.551e-05/0.5485, allocations: 39.84 kB / 0.9121 GB, free: 14.79 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 3.794e-05/0.5486, allocations: 0 / 0.9121 GB, free: 14.79 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 3.482e-05/0.5486, allocations: 11.98 kB / 0.9121 GB, free: 14.77 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 7.19e-05/0.5487, allocations: 23.91 kB / 0.9122 GB, free: 14.75 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 1.313e-05/0.5487, allocations: 0 / 0.9122 GB, free: 14.75 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004675/0.5492, allocations: 203.4 kB / 0.9124 GB, free: 14.55 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 4.314e-05/0.5493, allocations: 3.984 kB / 0.9124 GB, free: 14.55 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 2.818e-05/0.5493, allocations: 15.94 kB / 0.9124 GB, free: 14.53 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.0002559/0.5496, allocations: 107.5 kB / 0.9125 GB, free: 14.43 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.5496, allocations: 0 / 0.9125 GB, free: 14.43 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.643e-06/0.5496, allocations: 0 / 0.9125 GB, free: 14.43 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 4.749e-06/0.5496, allocations: 0 / 0.9125 GB, free: 14.43 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.0004242/0.55, allocations: 346 kB / 0.9128 GB, free: 14.05 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.5501, allocations: 12.03 kB / 0.9128 GB, free: 14.04 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003241/0.5504, allocations: 32.84 kB / 0.9129 GB, free: 14 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001388/0.5505, allocations: 164.3 kB / 0.913 GB, free: 13.8 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.542e-05/0.5506, allocations: 37.58 kB / 0.913 GB, free: 13.76 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.476e-06/0.5506, allocations: 0 / 0.913 GB, free: 13.76 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001215/0.5507, allocations: 45.69 kB / 0.9131 GB, free: 13.71 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.235e-06/0.5508, allocations: 4 kB / 0.9131 GB, free: 13.71 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.182e-05/0.5508, allocations: 4 kB / 0.9131 GB, free: 13.7 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.863e-05/0.5508, allocations: 7.984 kB / 0.9131 GB, free: 13.7 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.73e-05/0.5509, allocations: 19.98 kB / 0.9131 GB, free: 13.68 MB / 0.6856 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003476/0.5512, allocations: 256.9 kB / 0.9134 GB, free: 13.38 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 5.138e-05/0.5513, allocations: 30.5 kB / 0.9134 GB, free: 13.34 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.017e-05/0.5513, allocations: 8.922 kB / 0.9134 GB, free: 13.32 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001486/0.5515, allocations: 93.09 kB / 0.9135 GB, free: 13.21 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.268e-05/0.5515, allocations: 34.56 kB / 0.9135 GB, free: 13.17 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=2): time 1.362e-06/0.5515, allocations: 0 / 0.9135 GB, free: 13.17 MB / 0.6856 GB Notification: Performance of matching and sorting (n=2): time 0.0002517/0.5518, allocations: 49.62 kB / 0.9136 GB, free: 13.12 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.907e-05/0.5518, allocations: 51.41 kB / 0.9136 GB, free: 13.05 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.375e-05/0.5519, allocations: 113.8 kB / 0.9137 GB, free: 12.93 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 1.884e-05/0.5519, allocations: 29.69 kB / 0.9138 GB, free: 12.9 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 4.459e-05/0.552, allocations: 84.12 kB / 0.9138 GB, free: 12.81 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 9.638e-06/0.552, allocations: 11.91 kB / 0.9139 GB, free: 12.8 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.072e-05/0.552, allocations: 9.719 kB / 0.9139 GB, free: 12.79 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001453/0.5522, allocations: 322.8 kB / 0.9142 GB, free: 12.46 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.805e-05/0.5522, allocations: 7.984 kB / 0.9142 GB, free: 12.45 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.89e-05/0.5522, allocations: 22.58 kB / 0.9142 GB, free: 12.42 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.449e-05/0.5523, allocations: 30.52 kB / 0.9142 GB, free: 12.38 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.5523, allocations: 0 / 0.9142 GB, free: 12.38 MB / 0.6856 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.042e-05/0.5524, allocations: 57.53 kB / 0.9143 GB, free: 12.32 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/0.5524, allocations: 4 kB / 0.9143 GB, free: 12.32 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.5524, allocations: 8.094 kB / 0.9143 GB, free: 12.31 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.5524, allocations: 0 / 0.9143 GB, free: 12.31 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.009e-05/0.5525, allocations: 11.98 kB / 0.9143 GB, free: 12.3 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.688e-06/0.5525, allocations: 11.92 kB / 0.9143 GB, free: 12.29 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.868e-05/0.5525, allocations: 0 / 0.9143 GB, free: 12.29 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.669e-06/0.5526, allocations: 288 / 0.9143 GB, free: 12.29 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.764e-05/0.5526, allocations: 109.8 kB / 0.9144 GB, free: 12.17 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.814e-05/0.5527, allocations: 0 / 0.9144 GB, free: 12.17 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.31e-05/0.5527, allocations: 19.05 kB / 0.9144 GB, free: 12.15 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.5527, allocations: 4 kB / 0.9144 GB, free: 12.15 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.5527, allocations: 3.938 kB / 0.9144 GB, free: 12.14 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.5527, allocations: 3.938 kB / 0.9145 GB, free: 12.14 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003189/0.553, allocations: 351.6 kB / 0.9148 GB, free: 11.73 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.5531, allocations: 3.938 kB / 0.9148 GB, free: 11.73 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.663e-05/0.5531, allocations: 11.94 kB / 0.9148 GB, free: 11.72 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.5531, allocations: 3.938 kB / 0.9148 GB, free: 11.71 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.082e-06/0.5531, allocations: 4 kB / 0.9148 GB, free: 11.71 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.5531, allocations: 8.047 kB / 0.9148 GB, free: 11.7 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.5531, allocations: 0 / 0.9148 GB, free: 11.7 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.697e-05/0.5532, allocations: 69.91 kB / 0.9149 GB, free: 11.61 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 4.342e-05/0.5533, allocations: 84.98 kB / 0.915 GB, free: 11.51 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.781e-05/0.5533, allocations: 3.984 kB / 0.915 GB, free: 11.51 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.186e-05/0.5534, allocations: 8 kB / 0.915 GB, free: 11.5 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.091e-05/0.5534, allocations: 4.031 kB / 0.915 GB, free: 11.5 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.064e-06/0.5534, allocations: 0 / 0.915 GB, free: 11.5 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 3.668e-05/0.5534, allocations: 83.28 kB / 0.9151 GB, free: 11.41 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5534, allocations: 0 / 0.9151 GB, free: 11.41 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.0002098/0.5537, allocations: 11.98 kB / 0.9151 GB, free: 11.4 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.0001254/0.5538, allocations: 103.2 kB / 0.9152 GB, free: 11.29 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 7.957e-05/0.5539, allocations: 16 kB / 0.9152 GB, free: 11.28 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.5539, allocations: 0 / 0.9152 GB, free: 11.28 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 1.158e-05/0.5539, allocations: 7.938 kB / 0.9152 GB, free: 11.27 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000235/0.5541, allocations: 7.984 kB / 0.9152 GB, free: 11.26 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00027/0.5544, allocations: 145.1 kB / 0.9153 GB, free: 11.08 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002455/0.5547, allocations: 0.681 MB / 0.916 GB, free: 10.38 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.396e-05/0.5547, allocations: 7.438 kB / 0.916 GB, free: 10.37 MB / 0.6856 GB Notification: Performance of SimCode: time 3.2e-07/0.5547, allocations: 0 / 0.916 GB, free: 10.37 MB / 0.6856 GB Notification: Performance of Templates: time 0.00195/0.5567, allocations: 0.6123 MB / 0.9166 GB, free: 9.758 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)