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.001154/0.001154, allocations: 101.7 kB / 15.98 MB, free: 6.359 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.001289/0.001289, allocations: 199.1 kB / 16.91 MB, free: 6.191 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.181/1.181, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001916/0.001916, allocations: 289 kB / 291 MB, free: 14.72 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8511/0.8511, allocations: 169.2 MB / 0.4985 GB, free: 4.746 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001636/0.001636, allocations: 94.48 kB / 0.5953 GB, free: 15.57 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1464/0.1481, allocations: 86.97 MB / 0.6803 GB, free: 8.609 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion): time 0.3833/0.5314, allocations: 146.2 MB / 0.823 GB, free: 13.34 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.0001456/0.5316, allocations: 52.23 kB / 0.8231 GB, free: 13.29 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.19e-05/0.5316, allocations: 0 / 0.8231 GB, free: 13.29 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 9.975e-05/0.5317, allocations: 0 / 0.8231 GB, free: 13.29 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 7.313e-05/0.5319, allocations: 15.91 kB / 0.8231 GB, free: 13.28 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006879/0.5326, allocations: 198.4 kB / 0.8233 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 8.132e-05/0.5326, allocations: 39.84 kB / 0.8233 GB, free: 13.05 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 3.404e-05/0.5327, allocations: 7.984 kB / 0.8233 GB, free: 13.04 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 4.268e-05/0.5327, allocations: 12 kB / 0.8233 GB, free: 13.03 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 5.933e-05/0.5328, allocations: 19.91 kB / 0.8233 GB, free: 13.01 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 1.171e-05/0.5328, allocations: 4 kB / 0.8233 GB, free: 13.01 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003908/0.5332, allocations: 203.4 kB / 0.8235 GB, free: 12.81 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 3.954e-05/0.5333, allocations: 4 kB / 0.8235 GB, free: 12.8 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 2.816e-05/0.5333, allocations: 15.92 kB / 0.8236 GB, free: 12.79 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.0001783/0.5335, allocations: 74.58 kB / 0.8236 GB, free: 12.72 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.5335, allocations: 0 / 0.8236 GB, free: 12.72 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.263e-06/0.5335, allocations: 0 / 0.8236 GB, free: 12.72 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 4.588e-06/0.5335, allocations: 0 / 0.8236 GB, free: 12.72 MB / 0.5919 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.0003858/0.5339, allocations: 343.5 kB / 0.824 GB, free: 12.34 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.5339, allocations: 8.031 kB / 0.824 GB, free: 12.33 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000303/0.5343, allocations: 28.91 kB / 0.824 GB, free: 12.3 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001107/0.5344, allocations: 165.1 kB / 0.8242 GB, free: 12.1 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.358e-05/0.5344, allocations: 33.64 kB / 0.8242 GB, free: 12.06 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.212e-05/0.5345, allocations: 4 kB / 0.8242 GB, free: 12.06 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001267/0.5346, allocations: 45.67 kB / 0.8242 GB, free: 12.01 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.813e-06/0.5346, allocations: 0 / 0.8242 GB, free: 12.01 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.302e-05/0.5346, allocations: 4 kB / 0.8242 GB, free: 12 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.8e-05/0.5346, allocations: 4 kB / 0.8242 GB, free: 12 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.978e-05/0.5347, allocations: 23.98 kB / 0.8243 GB, free: 11.98 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003463/0.5351, allocations: 264.8 kB / 0.8245 GB, free: 11.67 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 5.474e-05/0.5351, allocations: 26.45 kB / 0.8245 GB, free: 11.63 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.938e-05/0.5351, allocations: 8.922 kB / 0.8245 GB, free: 11.62 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001455/0.5353, allocations: 97.09 kB / 0.8246 GB, free: 11.51 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.343e-05/0.5353, allocations: 34.56 kB / 0.8247 GB, free: 11.46 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.5353, allocations: 0 / 0.8247 GB, free: 11.46 MB / 0.5919 GB Notification: Performance of matching and sorting (n=2): time 0.0002461/0.5356, allocations: 45.69 kB / 0.8247 GB, free: 11.41 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.751e-05/0.5356, allocations: 55.34 kB / 0.8248 GB, free: 11.35 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.283e-05/0.5357, allocations: 117.7 kB / 0.8249 GB, free: 11.22 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.393e-05/0.5357, allocations: 29.83 kB / 0.8249 GB, free: 11.19 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 4.847e-05/0.5358, allocations: 84.05 kB / 0.825 GB, free: 11.1 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 1.056e-05/0.5358, allocations: 11.89 kB / 0.825 GB, free: 11.09 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.891e-05/0.5358, allocations: 13.72 kB / 0.825 GB, free: 11.07 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 9.788e-05/0.5359, allocations: 318.8 kB / 0.8253 GB, free: 10.75 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.682e-05/0.536, allocations: 4 kB / 0.8253 GB, free: 10.75 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.935e-05/0.536, allocations: 22.58 kB / 0.8253 GB, free: 10.71 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.77e-05/0.5361, allocations: 38.5 kB / 0.8254 GB, free: 10.67 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.654e-06/0.5361, allocations: 0 / 0.8254 GB, free: 10.67 MB / 0.5919 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.718e-05/0.5362, allocations: 53.62 kB / 0.8254 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.225e-05/0.5362, allocations: 4 kB / 0.8254 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.5362, allocations: 4 kB / 0.8254 GB, free: 10.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.189e-05/0.5362, allocations: 96 / 0.8254 GB, free: 10.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.609e-05/0.5363, allocations: 8 kB / 0.8254 GB, free: 10.59 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.246e-06/0.5363, allocations: 4.688 kB / 0.8255 GB, free: 10.59 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.902e-05/0.5363, allocations: 3.938 kB / 0.8255 GB, free: 10.59 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.339e-06/0.5363, allocations: 0 / 0.8255 GB, free: 10.59 MB / 0.5919 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.516e-05/0.5364, allocations: 113.8 kB / 0.8256 GB, free: 10.46 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.558e-05/0.5364, allocations: 3.906 kB / 0.8256 GB, free: 10.46 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.517e-05/0.5365, allocations: 11.11 kB / 0.8256 GB, free: 10.45 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.5365, allocations: 0 / 0.8256 GB, free: 10.45 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/0.5365, allocations: 3.688 kB / 0.8256 GB, free: 10.45 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.5365, allocations: 7.938 kB / 0.8256 GB, free: 10.44 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002791/0.5368, allocations: 359.6 kB / 0.8259 GB, free: 10.03 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.5368, allocations: 0 / 0.8259 GB, free: 10.03 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.384e-05/0.5368, allocations: 4 kB / 0.8259 GB, free: 10.02 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.008e-06/0.5368, allocations: 3.938 kB / 0.8259 GB, free: 10.02 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.945e-06/0.5368, allocations: 4 kB / 0.8259 GB, free: 10.02 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.5368, allocations: 7.875 kB / 0.826 GB, free: 10.01 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.5369, allocations: 4.062 kB / 0.826 GB, free: 10 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.036e-05/0.5369, allocations: 69.98 kB / 0.826 GB, free: 9.914 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 3.116e-05/0.537, allocations: 77.11 kB / 0.8261 GB, free: 9.82 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.836e-05/0.537, allocations: 7.938 kB / 0.8261 GB, free: 9.812 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.031e-05/0.5371, allocations: 7.938 kB / 0.8261 GB, free: 9.805 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.102e-05/0.5371, allocations: 0 / 0.8261 GB, free: 9.805 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-06/0.5371, allocations: 4.031 kB / 0.8261 GB, free: 9.801 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 4.596e-05/0.5372, allocations: 83.27 kB / 0.8262 GB, free: 9.719 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5372, allocations: 0 / 0.8262 GB, free: 9.719 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.000203/0.5374, allocations: 8 kB / 0.8262 GB, free: 9.711 MB / 0.5919 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.0001271/0.5375, allocations: 111.1 kB / 0.8263 GB, free: 9.594 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 7.63e-05/0.5376, allocations: 12.11 kB / 0.8263 GB, free: 9.582 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.5376, allocations: 4.062 kB / 0.8263 GB, free: 9.578 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 1.198e-05/0.5376, allocations: 7.938 kB / 0.8263 GB, free: 9.57 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002383/0.5379, allocations: 8 kB / 0.8263 GB, free: 9.562 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002733/0.5381, allocations: 151 kB / 0.8265 GB, free: 9.383 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001967/0.5384, allocations: 0.6808 MB / 0.8271 GB, free: 8.676 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.203e-05/0.5384, allocations: 7.438 kB / 0.8272 GB, free: 8.668 MB / 0.5919 GB Notification: Performance of SimCode: time 2.2e-07/0.5384, allocations: 0 / 0.8272 GB, free: 8.668 MB / 0.5919 GB Notification: Performance of Templates: time 0.001803/0.5402, allocations: 0.6223 MB / 0.8278 GB, free: 8.055 MB / 0.5919 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)