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.001297/0.001297, allocations: 111.7 kB / 16.41 MB, free: 6.484 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.00123/0.00123, allocations: 193.2 kB / 17.34 MB, free: 5.75 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.4/1.4, 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.002548/0.002548, allocations: 289.8 kB / 291.5 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.002/1.002, allocations: 169.2 MB / 0.499 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002821/0.002821, allocations: 99.84 kB / 0.6821 GB, free: 7.016 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4031/0.4059, allocations: 86.97 MB / 0.767 GB, free: 3.984 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion): time 0.1759/0.5818, allocations: 148.7 MB / 0.9123 GB, free: 14.7 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.0001343/0.5819, allocations: 51.69 kB / 0.9123 GB, free: 14.65 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.254e-05/0.5819, allocations: 0 / 0.9123 GB, free: 14.65 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.0001175/0.5821, allocations: 7.922 kB / 0.9123 GB, free: 14.64 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 7.377e-05/0.5821, allocations: 11.98 kB / 0.9123 GB, free: 14.63 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007138/0.5828, allocations: 225.8 kB / 0.9125 GB, free: 14.41 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 9.531e-05/0.5829, allocations: 35.91 kB / 0.9126 GB, free: 14.38 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 3.62e-05/0.583, allocations: 0 / 0.9126 GB, free: 14.38 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 3.676e-05/0.583, allocations: 12 kB / 0.9126 GB, free: 14.36 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 6.771e-05/0.5831, allocations: 23.84 kB / 0.9126 GB, free: 14.34 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 1.037e-05/0.5831, allocations: 0 / 0.9126 GB, free: 14.34 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003887/0.5835, allocations: 191.5 kB / 0.9128 GB, free: 14.15 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 4.232e-05/0.5835, allocations: 11.97 kB / 0.9128 GB, free: 14.14 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 2.802e-05/0.5836, allocations: 11.94 kB / 0.9128 GB, free: 14.13 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.0002681/0.5838, allocations: 119.1 kB / 0.9129 GB, free: 14.02 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.5838, allocations: 0 / 0.9129 GB, free: 14.02 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.392e-06/0.5838, allocations: 4 kB / 0.9129 GB, free: 14.02 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 5.681e-06/0.5838, allocations: 0 / 0.9129 GB, free: 14.02 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.0004367/0.5843, allocations: 337.7 kB / 0.9133 GB, free: 13.64 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.5843, allocations: 12.03 kB / 0.9133 GB, free: 13.63 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003022/0.5846, allocations: 24.91 kB / 0.9133 GB, free: 13.61 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001404/0.5847, allocations: 168.3 kB / 0.9135 GB, free: 13.4 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.808e-05/0.5848, allocations: 33.64 kB / 0.9135 GB, free: 13.36 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.175e-06/0.5848, allocations: 0 / 0.9135 GB, free: 13.36 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00013/0.5849, allocations: 49.67 kB / 0.9135 GB, free: 13.31 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.585, allocations: 3.938 kB / 0.9135 GB, free: 13.3 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.073e-05/0.585, allocations: 0 / 0.9135 GB, free: 13.3 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.502e-05/0.585, allocations: 4 kB / 0.9135 GB, free: 13.3 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.518e-05/0.585, allocations: 23.97 kB / 0.9136 GB, free: 13.28 MB / 0.6856 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003723/0.5854, allocations: 268.8 kB / 0.9138 GB, free: 12.96 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 5.515e-05/0.5855, allocations: 22.58 kB / 0.9138 GB, free: 12.93 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.072e-05/0.5855, allocations: 8.922 kB / 0.9138 GB, free: 12.92 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001546/0.5856, allocations: 89.09 kB / 0.9139 GB, free: 12.82 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.853e-05/0.5857, allocations: 38.5 kB / 0.914 GB, free: 12.77 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/0.5857, allocations: 4 kB / 0.914 GB, free: 12.77 MB / 0.6856 GB Notification: Performance of matching and sorting (n=2): time 0.0002337/0.5859, allocations: 45.69 kB / 0.914 GB, free: 12.71 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.107e-05/0.586, allocations: 51.41 kB / 0.9141 GB, free: 12.65 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.32e-05/0.586, allocations: 109.8 kB / 0.9142 GB, free: 12.54 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 1.785e-05/0.5861, allocations: 25.7 kB / 0.9142 GB, free: 12.5 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 5.382e-05/0.5861, allocations: 84.09 kB / 0.9143 GB, free: 12.42 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 1.091e-05/0.5861, allocations: 11.95 kB / 0.9143 GB, free: 12.41 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.68e-05/0.5862, allocations: 25.77 kB / 0.9143 GB, free: 12.38 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001432/0.5863, allocations: 318.8 kB / 0.9146 GB, free: 12.05 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.766e-05/0.5863, allocations: 4 kB / 0.9146 GB, free: 12.05 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.327e-05/0.5864, allocations: 26.5 kB / 0.9146 GB, free: 12.02 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.46e-05/0.5864, allocations: 30.58 kB / 0.9147 GB, free: 11.98 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.5864, allocations: 0 / 0.9147 GB, free: 11.98 MB / 0.6856 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.213e-05/0.5865, allocations: 53.62 kB / 0.9147 GB, free: 11.92 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.219e-05/0.5865, allocations: 4 kB / 0.9147 GB, free: 11.91 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.5865, allocations: 4 kB / 0.9147 GB, free: 11.91 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.5865, allocations: 0 / 0.9147 GB, free: 11.91 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.796e-05/0.5866, allocations: 11.94 kB / 0.9147 GB, free: 11.9 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.421e-05/0.5866, allocations: 11.94 kB / 0.9148 GB, free: 11.89 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.797e-05/0.5866, allocations: 0 / 0.9148 GB, free: 11.89 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.088e-06/0.5866, allocations: 96 / 0.9148 GB, free: 11.89 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 8.596e-05/0.5867, allocations: 116.2 kB / 0.9149 GB, free: 11.77 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.888e-05/0.5868, allocations: 11.88 kB / 0.9149 GB, free: 11.75 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.063e-05/0.5868, allocations: 11.12 kB / 0.9149 GB, free: 11.75 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.5868, allocations: 0 / 0.9149 GB, free: 11.75 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.5868, allocations: 3.938 kB / 0.9149 GB, free: 11.74 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.5868, allocations: 0 / 0.9149 GB, free: 11.74 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003206/0.5871, allocations: 363.6 kB / 0.9152 GB, free: 11.32 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.5871, allocations: 4 kB / 0.9152 GB, free: 11.32 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.587e-05/0.5871, allocations: 4 kB / 0.9152 GB, free: 11.32 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.44e-06/0.5871, allocations: 7.938 kB / 0.9153 GB, free: 11.31 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.441e-06/0.5871, allocations: 0 / 0.9153 GB, free: 11.31 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.5872, allocations: 0 / 0.9153 GB, free: 11.31 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.5872, allocations: 0 / 0.9153 GB, free: 11.31 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.87e-05/0.5872, allocations: 77.98 kB / 0.9153 GB, free: 11.21 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 4.939e-05/0.5873, allocations: 88.94 kB / 0.9154 GB, free: 11.11 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.421e-05/0.5873, allocations: 0 / 0.9154 GB, free: 11.11 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.926e-05/0.5874, allocations: 4 kB / 0.9154 GB, free: 11.1 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.194e-05/0.5874, allocations: 0 / 0.9154 GB, free: 11.1 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.498e-06/0.5874, allocations: 7.984 kB / 0.9154 GB, free: 11.09 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 4.343e-05/0.5874, allocations: 79.28 kB / 0.9155 GB, free: 11.02 MB / 0.6856 GB Notification: Performance of sort global known variables: time 9e-08/0.5874, allocations: 4 kB / 0.9155 GB, free: 11.01 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.0001882/0.5876, allocations: 4 kB / 0.9155 GB, free: 11.01 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.0001262/0.5878, allocations: 103.7 kB / 0.9156 GB, free: 10.9 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 9.239e-05/0.5879, allocations: 19.92 kB / 0.9156 GB, free: 10.88 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.5879, allocations: 0 / 0.9156 GB, free: 10.88 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 1.042e-05/0.5879, allocations: 4 kB / 0.9156 GB, free: 10.88 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000235/0.5881, allocations: 4.312 kB / 0.9156 GB, free: 10.87 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002769/0.5884, allocations: 135.2 kB / 0.9158 GB, free: 10.71 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003059/0.5887, allocations: 0.6768 MB / 0.9164 GB, free: 10 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 4.818e-05/0.5887, allocations: 7.984 kB / 0.9164 GB, free: 9.996 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.109e-05/0.5888, allocations: 11.44 kB / 0.9164 GB, free: 9.984 MB / 0.6856 GB Notification: Performance of SimCode: time 2.81e-07/0.5888, allocations: 0 / 0.9164 GB, free: 9.984 MB / 0.6856 GB Notification: Performance of Templates: time 0.003387/0.5921, allocations: 0.578 MB / 0.917 GB, free: 9.41 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion.pipe 2>&1)