Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion") translateModel(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8617/0.8617, allocations: 143.4 MB / 159.2 MB, free: 4.922 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001301/0.001301, allocations: 186.8 kB / 191.9 MB, free: 5.715 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.412/1.412, allocations: 222.9 MB / 447.3 MB, free: 5.855 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001053/0.001053, allocations: 114.4 kB / 0.517 GB, free: 3.715 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001912/0.001912, allocations: 278.9 kB / 0.5973 GB, free: 49.35 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 75.89 kB / 0.6885 GB, free: 3.82 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4001/0.4015, allocations: 81.29 MB / 0.7679 GB, free: 27.63 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion): time 0.551/0.9525, allocations: 145.6 MB / 0.9101 GB, free: 0.7695 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.0001523/0.9527, allocations: 57.28 kB / 0.9102 GB, free: 0.7656 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.075e-05/0.9528, allocations: 0.9688 kB / 0.9102 GB, free: 0.7656 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.0001262/0.9529, allocations: 4.406 kB / 0.9102 GB, free: 0.7656 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 7.91e-05/0.953, allocations: 8.484 kB / 0.9102 GB, free: 0.7656 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004467/0.9535, allocations: 105.7 kB / 0.9103 GB, free: 0.7578 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0001183/0.9536, allocations: 61.33 kB / 0.9103 GB, free: 0.7578 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 5.205e-05/0.9537, allocations: 2.438 kB / 0.9103 GB, free: 0.7578 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 5.452e-05/0.9537, allocations: 12.88 kB / 0.9103 GB, free: 0.7578 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 8.423e-05/0.9538, allocations: 18.69 kB / 0.9104 GB, free: 0.7578 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 1.469e-05/0.9538, allocations: 0 / 0.9104 GB, free: 0.7578 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000286/0.9541, allocations: 83.84 kB / 0.9104 GB, free: 0.7539 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 5.408e-05/0.9542, allocations: 5.688 kB / 0.9104 GB, free: 0.7539 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 4.223e-05/0.9542, allocations: 19.19 kB / 0.9105 GB, free: 0.7539 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0001686/0.9544, allocations: 71.08 kB / 0.9105 GB, free: 0.75 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.9544, allocations: 4.125 kB / 0.9105 GB, free: 0.75 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.072e-06/0.9544, allocations: 0 / 0.9105 GB, free: 0.75 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 4.017e-06/0.9544, allocations: 1.438 kB / 0.9105 GB, free: 0.75 MB / 0.5573 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.0005076/0.9549, allocations: 339.1 kB / 0.9109 GB, free: 16.4 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.955, allocations: 9.656 kB / 0.9109 GB, free: 16.4 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002202/0.9552, allocations: 23.75 kB / 0.9109 GB, free: 16.39 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001118/0.9553, allocations: 162.2 kB / 0.911 GB, free: 16.2 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.642e-05/0.9554, allocations: 34.19 kB / 0.9111 GB, free: 16.16 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.458e-06/0.9554, allocations: 0.6094 kB / 0.9111 GB, free: 16.16 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001637/0.9556, allocations: 47.59 kB / 0.9111 GB, free: 16.13 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.9556, allocations: 1.375 kB / 0.9111 GB, free: 16.13 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.075e-05/0.9556, allocations: 0 / 0.9111 GB, free: 16.13 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.746e-05/0.9557, allocations: 6.625 kB / 0.9111 GB, free: 16.12 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.903e-05/0.9557, allocations: 21.88 kB / 0.9111 GB, free: 16.12 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003892/0.9561, allocations: 260 kB / 0.9114 GB, free: 15.86 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 3.483e-05/0.9562, allocations: 19 kB / 0.9114 GB, free: 15.84 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.898e-05/0.9562, allocations: 8.984 kB / 0.9114 GB, free: 15.83 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 8.105e-06/0.9562, allocations: 5.094 kB / 0.9114 GB, free: 15.82 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.962e-05/0.9563, allocations: 33.81 kB / 0.9115 GB, free: 15.79 MB / 0.573 GB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.9563, allocations: 0 / 0.9115 GB, free: 15.79 MB / 0.573 GB Notification: Performance of matching and sorting (n=1): time 0.0001269/0.9564, allocations: 35.8 kB / 0.9115 GB, free: 15.75 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.168e-05/0.9564, allocations: 56.25 kB / 0.9115 GB, free: 15.69 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.55e-05/0.9565, allocations: 114.1 kB / 0.9117 GB, free: 15.59 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 1.38e-05/0.9566, allocations: 25.7 kB / 0.9117 GB, free: 15.55 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 4.115e-05/0.9566, allocations: 94.59 kB / 0.9118 GB, free: 15.46 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 7.263e-06/0.9566, allocations: 4.188 kB / 0.9118 GB, free: 15.46 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.273e-05/0.9567, allocations: 16.36 kB / 0.9118 GB, free: 15.45 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001135/0.9568, allocations: 315.8 kB / 0.9121 GB, free: 15.13 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.842e-05/0.9568, allocations: 3.766 kB / 0.9121 GB, free: 15.13 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.715e-05/0.9568, allocations: 24.94 kB / 0.9121 GB, free: 15.11 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.736e-05/0.9569, allocations: 33.33 kB / 0.9122 GB, free: 15.08 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.9569, allocations: 1.188 kB / 0.9122 GB, free: 15.08 MB / 0.573 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.027e-05/0.957, allocations: 59.17 kB / 0.9122 GB, free: 15.04 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.957, allocations: 5.781 kB / 0.9122 GB, free: 15.04 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.957, allocations: 0 / 0.9122 GB, free: 15.04 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/0.957, allocations: 4.688 kB / 0.9122 GB, free: 15.04 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.014e-05/0.9571, allocations: 5.656 kB / 0.9122 GB, free: 15.04 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.205e-06/0.9571, allocations: 11.05 kB / 0.9122 GB, free: 15.04 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.944e-05/0.9571, allocations: 5.656 kB / 0.9122 GB, free: 15.04 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.162e-06/0.9572, allocations: 5.469 kB / 0.9122 GB, free: 15.03 MB / 0.573 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 8.369e-05/0.9572, allocations: 108.6 kB / 0.9124 GB, free: 14.92 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.584e-05/0.9573, allocations: 2.156 kB / 0.9124 GB, free: 14.92 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.622e-05/0.9573, allocations: 8.781 kB / 0.9124 GB, free: 14.92 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.9573, allocations: 1.094 kB / 0.9124 GB, free: 14.92 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.9573, allocations: 3.938 kB / 0.9124 GB, free: 14.91 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.9573, allocations: 0.9688 kB / 0.9124 GB, free: 14.91 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002598/0.9576, allocations: 347.2 kB / 0.9127 GB, free: 14.54 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.9576, allocations: 1.188 kB / 0.9127 GB, free: 14.54 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.481e-05/0.9576, allocations: 3.344 kB / 0.9127 GB, free: 14.54 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.9576, allocations: 7.922 kB / 0.9127 GB, free: 14.53 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.581e-06/0.9576, allocations: 0 / 0.9127 GB, free: 14.53 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.9576, allocations: 1.969 kB / 0.9127 GB, free: 14.53 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.9577, allocations: 0 / 0.9127 GB, free: 14.53 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003119/0.958, allocations: 0.6134 MB / 0.9133 GB, free: 13.88 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 3.678e-05/0.958, allocations: 77.86 kB / 0.9134 GB, free: 13.79 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.47e-05/0.958, allocations: 2.312 kB / 0.9134 GB, free: 13.79 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.506e-05/0.9581, allocations: 8.328 kB / 0.9134 GB, free: 13.79 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.385e-05/0.9581, allocations: 1.203 kB / 0.9134 GB, free: 13.79 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.575e-06/0.9582, allocations: 0.7188 kB / 0.9134 GB, free: 13.79 MB / 0.573 GB Notification: Performance of sorting global known variables: time 4.608e-05/0.9582, allocations: 86.52 kB / 0.9135 GB, free: 13.71 MB / 0.573 GB Notification: Performance of sort global known variables: time 9e-08/0.9582, allocations: 0 / 0.9135 GB, free: 13.71 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0002818/0.9585, allocations: 6.531 kB / 0.9135 GB, free: 13.71 MB / 0.573 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 (1): * Single equations (assignments): 1 * 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.0001016/0.9586, allocations: 104.3 kB / 0.9136 GB, free: 13.62 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 7.801e-05/0.9587, allocations: 17.02 kB / 0.9136 GB, free: 13.62 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.9587, allocations: 0.9062 kB / 0.9136 GB, free: 13.62 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 6.242e-06/0.9587, allocations: 1.562 kB / 0.9136 GB, free: 13.62 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002442/0.959, allocations: 11.42 kB / 0.9136 GB, free: 13.62 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003216/0.9593, allocations: 210.6 kB / 0.9138 GB, free: 13.41 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002447/0.9595, allocations: 0.6759 MB / 0.9145 GB, free: 12.71 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 5.803e-05/0.9596, allocations: 5.609 kB / 0.9145 GB, free: 12.71 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.031e-05/0.9596, allocations: 12.78 kB / 0.9145 GB, free: 12.7 MB / 0.573 GB Notification: Performance of SimCode: time 2.31e-07/0.9596, allocations: 0.7812 kB / 0.9145 GB, free: 12.7 MB / 0.573 GB Notification: Performance of Templates: time 0.002435/0.9621, allocations: 0.5026 MB / 0.915 GB, free: 12.66 MB / 0.573 GB make -j1 -f BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.makefile (rm -f BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.sim & ./BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasTemperatureEnthalpyInversion.pipe 2>&1)