Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.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.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion") translateModel(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006099/0.006099, allocations: 100.8 kB / 15.73 MB, free: 6.477 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.001078/0.001078, allocations: 189.4 kB / 16.67 MB, free: 6.391 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.321/1.321, allocations: 222.9 MB / 240.4 MB, free: 4.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002143/0.002143, allocations: 290.5 kB / 290.8 MB, free: 1.961 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9415/0.9415, allocations: 169.2 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001717/0.001717, allocations: 91.86 kB / 0.6814 GB, free: 15.52 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1426/0.1443, allocations: 86.97 MB / 0.7664 GB, free: 8.473 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.004726/0.1491, allocations: 4.025 MB / 0.7703 GB, free: 4.422 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0001839/0.1493, allocations: 159.5 kB / 0.7704 GB, free: 4.266 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.225e-05/0.1493, allocations: 0 / 0.7704 GB, free: 4.266 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 8.378e-05/0.1494, allocations: 3.938 kB / 0.7704 GB, free: 4.262 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.615e-05/0.1495, allocations: 15.91 kB / 0.7705 GB, free: 4.246 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002947/0.1498, allocations: 79.25 kB / 0.7705 GB, free: 4.172 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.633e-05/0.1499, allocations: 35.86 kB / 0.7706 GB, free: 4.137 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.51e-05/0.1499, allocations: 7.922 kB / 0.7706 GB, free: 4.129 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.392e-05/0.1499, allocations: 16 kB / 0.7706 GB, free: 4.113 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.972e-05/0.15, allocations: 7.984 kB / 0.7706 GB, free: 4.105 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.087e-05/0.15, allocations: 0 / 0.7706 GB, free: 4.105 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001724/0.1502, allocations: 67.8 kB / 0.7707 GB, free: 4.039 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 3.665e-05/0.1502, allocations: 7.938 kB / 0.7707 GB, free: 4.031 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.245e-05/0.1503, allocations: 11.92 kB / 0.7707 GB, free: 4.02 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001096/0.1504, allocations: 43.83 kB / 0.7707 GB, free: 3.977 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1504, allocations: 0 / 0.7707 GB, free: 3.977 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.493e-06/0.1504, allocations: 8 kB / 0.7707 GB, free: 3.969 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 3.957e-06/0.1504, allocations: 0 / 0.7707 GB, free: 3.969 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003436/0.1508, allocations: 331.5 kB / 0.7711 GB, free: 3.598 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 2.912e-05/0.1508, allocations: 8.031 kB / 0.7711 GB, free: 3.59 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.603e-05/0.1508, allocations: 0.9375 kB / 0.7711 GB, free: 3.59 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.43e-05/0.1509, allocations: 168.3 kB / 0.7712 GB, free: 3.387 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.05e-05/0.151, allocations: 26.27 kB / 0.7712 GB, free: 3.355 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.534e-06/0.151, allocations: 384 / 0.7712 GB, free: 3.355 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001137/0.1511, allocations: 57.61 kB / 0.7713 GB, free: 3.293 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.122e-06/0.1511, allocations: 0 / 0.7713 GB, free: 3.293 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.548e-06/0.1512, allocations: 0 / 0.7713 GB, free: 3.293 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.446e-05/0.1512, allocations: 0 / 0.7713 GB, free: 3.293 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.241e-05/0.1512, allocations: 23.92 kB / 0.7713 GB, free: 3.27 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003891/0.1516, allocations: 330 kB / 0.7716 GB, free: 2.879 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 3.435e-05/0.1517, allocations: 26.61 kB / 0.7717 GB, free: 2.844 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.207e-05/0.1517, allocations: 8.859 kB / 0.7717 GB, free: 2.832 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 8.151e-05/0.1518, allocations: 81.17 kB / 0.7717 GB, free: 2.734 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.335e-05/0.1518, allocations: 34.56 kB / 0.7718 GB, free: 2.691 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.1518, allocations: 0 / 0.7718 GB, free: 2.691 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.000122/0.1519, allocations: 41.53 kB / 0.7718 GB, free: 2.645 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.42e-05/0.152, allocations: 55.41 kB / 0.7719 GB, free: 2.578 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.992e-05/0.152, allocations: 101.8 kB / 0.772 GB, free: 2.469 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.325e-05/0.1521, allocations: 29.83 kB / 0.772 GB, free: 2.434 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.734e-05/0.1521, allocations: 92.03 kB / 0.7721 GB, free: 2.34 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.3e-06/0.1521, allocations: 7.938 kB / 0.7721 GB, free: 2.332 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.752e-05/0.1522, allocations: 13.72 kB / 0.7721 GB, free: 2.312 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.795e-05/0.1523, allocations: 318.8 kB / 0.7724 GB, free: 1.992 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.622e-05/0.1523, allocations: 3.984 kB / 0.7724 GB, free: 1.988 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.04e-05/0.1523, allocations: 13.72 kB / 0.7724 GB, free: 1.969 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.463e-05/0.1523, allocations: 29.66 kB / 0.7725 GB, free: 1.934 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1524, allocations: 3.938 kB / 0.7725 GB, free: 1.93 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.031e-05/0.1524, allocations: 49.62 kB / 0.7725 GB, free: 1.875 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.194e-05/0.1525, allocations: 8 kB / 0.7725 GB, free: 1.867 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/0.1525, allocations: 0 / 0.7725 GB, free: 1.867 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.909e-06/0.1525, allocations: 0 / 0.7725 GB, free: 1.867 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.939e-05/0.1525, allocations: 4 kB / 0.7725 GB, free: 1.863 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.1525, allocations: 3.984 kB / 0.7725 GB, free: 1.859 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.821e-05/0.1526, allocations: 11.97 kB / 0.7725 GB, free: 1.848 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.213e-06/0.1526, allocations: 0 / 0.7725 GB, free: 1.848 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (3): * Single equations (assignments): 3 * 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.864e-05/0.1526, allocations: 114.4 kB / 0.7726 GB, free: 1.727 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.566e-05/0.1527, allocations: 0 / 0.7726 GB, free: 1.727 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.625e-05/0.1528, allocations: 124.9 kB / 0.7728 GB, free: 1.594 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.758e-05/0.1528, allocations: 176.3 kB / 0.7729 GB, free: 1.414 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.292e-05/0.1529, allocations: 180.3 kB / 0.7731 GB, free: 1.23 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.459e-05/0.153, allocations: 184.2 kB / 0.7733 GB, free: 1.043 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001934/0.1532, allocations: 405.2 kB / 0.7737 GB, free: 0.5898 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-05/0.1532, allocations: 108.9 kB / 0.7738 GB, free: 488 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.778e-05/0.1532, allocations: 101 kB / 0.7739 GB, free: 380 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.481e-05/0.1533, allocations: 184.2 kB / 0.774 GB, free: 188 kB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.2974/0.4508, allocations: 180.3 kB / 0.7742 GB, free: 16.18 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.559e-05/0.4508, allocations: 178.5 kB / 0.7744 GB, free: 16 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.982e-05/0.4508, allocations: 181.9 kB / 0.7746 GB, free: 15.82 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.175e-05/0.4509, allocations: 307.9 kB / 0.7749 GB, free: 15.51 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.281e-05/0.451, allocations: 184.7 kB / 0.775 GB, free: 15.31 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.28e-05/0.451, allocations: 181.9 kB / 0.7752 GB, free: 15.13 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001589/0.4512, allocations: 109.5 kB / 0.7753 GB, free: 15.03 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.48e-05/0.4512, allocations: 179.9 kB / 0.7755 GB, free: 14.85 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.425e-05/0.4512, allocations: 110.6 kB / 0.7756 GB, free: 14.74 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 5.299e-05/0.4513, allocations: 83.62 kB / 0.7757 GB, free: 14.67 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4513, allocations: 2.031 kB / 0.7757 GB, free: 14.67 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000319/0.4516, allocations: 25.72 kB / 0.7757 GB, free: 14.67 MB / 0.5606 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 (0): * Single equations (assignments): 0 * 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.0002635/0.4519, allocations: 194.4 kB / 0.7759 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 8.672e-05/0.452, allocations: 9.328 kB / 0.7759 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.452, allocations: 1.969 kB / 0.7759 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 2.134e-06/0.452, allocations: 0.9844 kB / 0.7759 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002934/0.4523, allocations: 466.5 kB / 0.7763 GB, free: 14.06 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002468/0.4526, allocations: 180.6 kB / 0.7765 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000107/0.4527, allocations: 0.6745 MB / 0.7772 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 4.194e-05/0.4527, allocations: 5.625 kB / 0.7772 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.544e-05/0.4528, allocations: 10.31 kB / 0.7772 GB, free: 13.19 MB / 0.5606 GB Notification: Performance of SimCode: time 3.5e-07/0.4528, allocations: 0 / 0.7772 GB, free: 13.19 MB / 0.5606 GB Notification: Performance of Templates: time 0.002722/0.4555, allocations: 0.6397 MB / 0.7778 GB, free: 13.16 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.makefile (rm -f BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.sim & ./BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1)