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.005956/0.005956, allocations: 101.9 kB / 15.73 MB, free: 6.062 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.001218/0.001219, allocations: 192.1 kB / 16.67 MB, free: 5.973 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.301/1.301, allocations: 222.9 MB / 240.4 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.002001/0.002001, allocations: 288.7 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9404/0.9404, allocations: 169.2 MB / 0.4983 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001581/0.001581, allocations: 96.28 kB / 0.6814 GB, free: 6.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4466/0.4482, allocations: 86.98 MB / 0.7664 GB, free: 3.945 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.AirTemperatureEnthalpyInversion): time 0.1511/0.5994, allocations: 148.3 MB / 0.9112 GB, free: 15.08 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.0001366/0.5996, allocations: 47.86 kB / 0.9112 GB, free: 15.04 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.696e-05/0.5997, allocations: 0 / 0.9112 GB, free: 15.04 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.0001164/0.5998, allocations: 7.938 kB / 0.9112 GB, free: 15.03 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 7.822e-05/0.5999, allocations: 7.922 kB / 0.9112 GB, free: 15.02 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007749/0.6007, allocations: 219.2 kB / 0.9114 GB, free: 14.8 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 8.078e-05/0.6008, allocations: 27.91 kB / 0.9115 GB, free: 14.78 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 4.038e-05/0.6008, allocations: 0 / 0.9115 GB, free: 14.78 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 3.479e-05/0.6009, allocations: 19.94 kB / 0.9115 GB, free: 14.76 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 7.129e-05/0.601, allocations: 15.91 kB / 0.9115 GB, free: 14.74 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 1.441e-05/0.601, allocations: 4 kB / 0.9115 GB, free: 14.74 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003877/0.6014, allocations: 191.5 kB / 0.9117 GB, free: 14.55 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 4.554e-05/0.6014, allocations: 11.97 kB / 0.9117 GB, free: 14.54 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 2.724e-05/0.6015, allocations: 11.88 kB / 0.9117 GB, free: 14.53 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.0002525/0.6017, allocations: 127.1 kB / 0.9118 GB, free: 14.41 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.6017, allocations: 0 / 0.9118 GB, free: 14.41 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.603e-06/0.6017, allocations: 0 / 0.9118 GB, free: 14.41 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 5.039e-06/0.6018, allocations: 0 / 0.9118 GB, free: 14.41 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.0003649/0.6021, allocations: 337.7 kB / 0.9122 GB, free: 14.04 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 3.362e-05/0.6022, allocations: 15.97 kB / 0.9122 GB, free: 14.02 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002868/0.6025, allocations: 20.91 kB / 0.9122 GB, free: 14 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.642e-05/0.6026, allocations: 168.4 kB / 0.9123 GB, free: 13.8 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.02e-05/0.6026, allocations: 33.64 kB / 0.9124 GB, free: 13.76 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.047e-05/0.6026, allocations: 0 / 0.9124 GB, free: 13.76 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001195/0.6028, allocations: 53.61 kB / 0.9124 GB, free: 13.7 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/0.6028, allocations: 4 kB / 0.9124 GB, free: 13.7 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.233e-05/0.6028, allocations: 3.984 kB / 0.9124 GB, free: 13.69 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.463e-05/0.6028, allocations: 4 kB / 0.9124 GB, free: 13.69 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.328e-05/0.6029, allocations: 19.98 kB / 0.9125 GB, free: 13.67 MB / 0.6856 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003285/0.6032, allocations: 268.8 kB / 0.9127 GB, free: 13.36 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 4.653e-05/0.6033, allocations: 26.52 kB / 0.9127 GB, free: 13.32 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.054e-05/0.6033, allocations: 8.859 kB / 0.9127 GB, free: 13.31 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001389/0.6034, allocations: 93.16 kB / 0.9128 GB, free: 13.2 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.204e-05/0.6035, allocations: 30.56 kB / 0.9129 GB, free: 13.16 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.6035, allocations: 4 kB / 0.9129 GB, free: 13.16 MB / 0.6856 GB Notification: Performance of matching and sorting (n=2): time 0.0002238/0.6037, allocations: 49.69 kB / 0.9129 GB, free: 13.1 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.445e-05/0.6038, allocations: 51.41 kB / 0.913 GB, free: 13.04 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.735e-05/0.6038, allocations: 105.8 kB / 0.9131 GB, free: 12.93 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 1.316e-05/0.6039, allocations: 29.64 kB / 0.9131 GB, free: 12.89 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 4.089e-05/0.6039, allocations: 88.09 kB / 0.9132 GB, free: 12.8 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 6.783e-06/0.6039, allocations: 3.953 kB / 0.9132 GB, free: 12.8 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.985e-05/0.6039, allocations: 21.84 kB / 0.9132 GB, free: 12.77 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 8.425e-05/0.604, allocations: 318.8 kB / 0.9135 GB, free: 12.45 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.694e-05/0.6041, allocations: 8 kB / 0.9135 GB, free: 12.44 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.296e-05/0.6041, allocations: 18.58 kB / 0.9135 GB, free: 12.41 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.357e-05/0.6041, allocations: 38.5 kB / 0.9136 GB, free: 12.37 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.6041, allocations: 0 / 0.9136 GB, free: 12.37 MB / 0.6856 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.46e-05/0.6042, allocations: 53.62 kB / 0.9136 GB, free: 12.31 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.156e-05/0.6042, allocations: 8 kB / 0.9136 GB, free: 12.3 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.6042, allocations: 0 / 0.9136 GB, free: 12.3 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.6043, allocations: 0 / 0.9136 GB, free: 12.3 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.145e-05/0.6043, allocations: 8 kB / 0.9136 GB, free: 12.29 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.732e-06/0.6043, allocations: 3.938 kB / 0.9136 GB, free: 12.29 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.691e-05/0.6044, allocations: 0 / 0.9136 GB, free: 12.29 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.6e-06/0.6044, allocations: 8.031 kB / 0.9136 GB, free: 12.28 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 6.117e-05/0.6044, allocations: 120.2 kB / 0.9138 GB, free: 12.16 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.875e-05/0.6045, allocations: 11.94 kB / 0.9138 GB, free: 12.14 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.677e-05/0.6045, allocations: 3.125 kB / 0.9138 GB, free: 12.14 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.6045, allocations: 0 / 0.9138 GB, free: 12.14 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.6045, allocations: 3.938 kB / 0.9138 GB, free: 12.14 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.843e-06/0.6045, allocations: 0 / 0.9138 GB, free: 12.14 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002499/0.6048, allocations: 371.6 kB / 0.9141 GB, free: 11.71 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.6048, allocations: 0 / 0.9141 GB, free: 11.71 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.397e-05/0.6048, allocations: 4 kB / 0.9141 GB, free: 11.71 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.6048, allocations: 3.938 kB / 0.9141 GB, free: 11.71 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.34e-06/0.6048, allocations: 0 / 0.9141 GB, free: 11.71 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.6048, allocations: 0 / 0.9141 GB, free: 11.71 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.6048, allocations: 4 kB / 0.9141 GB, free: 11.7 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.638e-05/0.6049, allocations: 77.98 kB / 0.9142 GB, free: 11.61 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 3.949e-05/0.605, allocations: 88.94 kB / 0.9143 GB, free: 11.5 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.596e-05/0.605, allocations: 4 kB / 0.9143 GB, free: 11.5 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.525e-05/0.6051, allocations: 4 kB / 0.9143 GB, free: 11.49 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.282e-05/0.6051, allocations: 4 kB / 0.9143 GB, free: 11.49 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.235e-06/0.6051, allocations: 0 / 0.9143 GB, free: 11.49 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 3.288e-05/0.6051, allocations: 83.55 kB / 0.9144 GB, free: 11.41 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.41e-07/0.6051, allocations: 0 / 0.9144 GB, free: 11.41 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.0001878/0.6053, allocations: 8 kB / 0.9144 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.0001075/0.6054, allocations: 107.4 kB / 0.9145 GB, free: 11.29 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 8.028e-05/0.6055, allocations: 19.92 kB / 0.9145 GB, free: 11.27 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.6055, allocations: 0 / 0.9145 GB, free: 11.27 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 1.24e-05/0.6056, allocations: 8 kB / 0.9145 GB, free: 11.26 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002041/0.6058, allocations: 10.75 kB / 0.9145 GB, free: 11.25 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002291/0.606, allocations: 123.4 kB / 0.9147 GB, free: 11.1 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001899/0.6062, allocations: 0.6768 MB / 0.9153 GB, free: 10.39 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 4.351e-05/0.6063, allocations: 4 kB / 0.9153 GB, free: 10.39 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.954e-05/0.6063, allocations: 15.44 kB / 0.9153 GB, free: 10.38 MB / 0.6856 GB Notification: Performance of SimCode: time 3.61e-07/0.6063, allocations: 0 / 0.9153 GB, free: 10.38 MB / 0.6856 GB Notification: Performance of Templates: time 0.002388/0.6087, allocations: 0.5697 MB / 0.9159 GB, free: 9.809 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)