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.004546/0.004546, allocations: 96.28 kB / 15.73 MB, free: 5.996 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.0009891/0.0009892, allocations: 185.8 kB / 16.67 MB, free: 5.926 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.289/1.289, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001997/0.001997, allocations: 286.9 kB / 290.8 MB, free: 1.91 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.928/0.928, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001612/0.001612, allocations: 91.86 kB / 0.6814 GB, free: 15.5 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1455/0.1471, allocations: 86.97 MB / 0.7664 GB, free: 8.449 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.004972/0.1521, allocations: 4.018 MB / 0.7703 GB, free: 4.406 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0001762/0.1523, allocations: 151.5 kB / 0.7704 GB, free: 4.258 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.206e-05/0.1524, allocations: 7.938 kB / 0.7704 GB, free: 4.25 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 8.465e-05/0.1525, allocations: 0 / 0.7704 GB, free: 4.25 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.391e-05/0.1525, allocations: 15.91 kB / 0.7704 GB, free: 4.234 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003213/0.1529, allocations: 75.75 kB / 0.7705 GB, free: 4.16 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 8.556e-05/0.1529, allocations: 39.8 kB / 0.7706 GB, free: 4.121 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 5.01e-05/0.153, allocations: 3.938 kB / 0.7706 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.012e-05/0.1531, allocations: 11.98 kB / 0.7706 GB, free: 4.105 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 7.738e-05/0.1531, allocations: 19.92 kB / 0.7706 GB, free: 4.086 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.142e-05/0.1532, allocations: 0 / 0.7706 GB, free: 4.086 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001968/0.1534, allocations: 59.8 kB / 0.7707 GB, free: 4.027 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.976e-05/0.1534, allocations: 11.94 kB / 0.7707 GB, free: 4.016 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.882e-05/0.1535, allocations: 7.984 kB / 0.7707 GB, free: 4.008 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001487/0.1536, allocations: 47.83 kB / 0.7707 GB, free: 3.961 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.1536, allocations: 0 / 0.7707 GB, free: 3.961 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.242e-06/0.1536, allocations: 0 / 0.7707 GB, free: 3.961 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.07e-06/0.1536, allocations: 0 / 0.7707 GB, free: 3.961 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.0003746/0.154, allocations: 335.4 kB / 0.771 GB, free: 3.586 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.1541, allocations: 12.03 kB / 0.771 GB, free: 3.574 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.606e-05/0.1541, allocations: 4.938 kB / 0.7711 GB, free: 3.57 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001076/0.1542, allocations: 160.4 kB / 0.7712 GB, free: 3.375 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.922e-05/0.1543, allocations: 30.27 kB / 0.7712 GB, free: 3.34 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.604e-06/0.1543, allocations: 384 / 0.7712 GB, free: 3.34 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001227/0.1544, allocations: 49.61 kB / 0.7713 GB, free: 3.285 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.1544, allocations: 3.938 kB / 0.7713 GB, free: 3.281 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.181e-05/0.1545, allocations: 4 kB / 0.7713 GB, free: 3.277 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.478e-05/0.1545, allocations: 0 / 0.7713 GB, free: 3.277 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.036e-05/0.1545, allocations: 11.98 kB / 0.7713 GB, free: 3.266 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000392/0.1549, allocations: 334 kB / 0.7716 GB, free: 2.871 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 3.641e-05/0.155, allocations: 30.59 kB / 0.7716 GB, free: 2.832 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.424e-05/0.155, allocations: 8.922 kB / 0.7717 GB, free: 2.82 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 8.22e-05/0.1551, allocations: 81.11 kB / 0.7717 GB, free: 2.723 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.273e-05/0.1551, allocations: 34.5 kB / 0.7718 GB, free: 2.68 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.1551, allocations: 4 kB / 0.7718 GB, free: 2.676 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001302/0.1552, allocations: 41.64 kB / 0.7718 GB, free: 2.629 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.639e-05/0.1553, allocations: 51.41 kB / 0.7719 GB, free: 2.566 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.248e-05/0.1554, allocations: 101.9 kB / 0.772 GB, free: 2.457 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.286e-05/0.1554, allocations: 25.7 kB / 0.772 GB, free: 2.426 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.181e-05/0.1554, allocations: 100 kB / 0.7721 GB, free: 2.324 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.737e-06/0.1555, allocations: 0 / 0.7721 GB, free: 2.324 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.86e-05/0.1555, allocations: 13.72 kB / 0.7721 GB, free: 2.305 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000106/0.1556, allocations: 322.9 kB / 0.7724 GB, free: 1.98 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.769e-05/0.1556, allocations: 7.984 kB / 0.7724 GB, free: 1.973 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.257e-05/0.1557, allocations: 21.59 kB / 0.7724 GB, free: 1.945 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.263e-05/0.1557, allocations: 21.72 kB / 0.7724 GB, free: 1.918 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.1557, allocations: 0 / 0.7724 GB, free: 1.918 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.843e-05/0.1558, allocations: 53.62 kB / 0.7725 GB, free: 1.859 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/0.1558, allocations: 9.812 kB / 0.7725 GB, free: 1.852 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-06/0.1558, allocations: 0 / 0.7725 GB, free: 1.852 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.1558, allocations: 4 kB / 0.7725 GB, free: 1.848 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.076e-05/0.1559, allocations: 4 kB / 0.7725 GB, free: 1.844 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.1559, allocations: 3.984 kB / 0.7725 GB, free: 1.84 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.774e-05/0.1559, allocations: 3.953 kB / 0.7725 GB, free: 1.836 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.297e-06/0.1559, allocations: 4 kB / 0.7725 GB, free: 1.832 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.422e-05/0.156, allocations: 110.4 kB / 0.7726 GB, free: 1.715 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.584e-05/0.156, allocations: 8.062 kB / 0.7726 GB, free: 1.707 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001047/0.1561, allocations: 120.9 kB / 0.7728 GB, free: 1.578 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.127e-05/0.1562, allocations: 180.3 kB / 0.7729 GB, free: 1.395 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-05/0.1563, allocations: 180.2 kB / 0.7731 GB, free: 1.211 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.833e-05/0.1563, allocations: 180.3 kB / 0.7733 GB, free: 1.027 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001934/0.1565, allocations: 413.2 kB / 0.7737 GB, free: 0.5664 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.028e-05/0.1566, allocations: 104.9 kB / 0.7738 GB, free: 468 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.265e-05/0.1566, allocations: 101 kB / 0.7739 GB, free: 360 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.717e-05/0.1567, allocations: 188.2 kB / 0.774 GB, free: 164 kB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.2988/0.4555, allocations: 176.3 kB / 0.7742 GB, free: 16.14 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.485e-05/0.4555, allocations: 177.5 kB / 0.7744 GB, free: 15.96 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.992e-05/0.4556, allocations: 178.8 kB / 0.7745 GB, free: 15.78 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.184e-05/0.4557, allocations: 310 kB / 0.7748 GB, free: 15.47 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.896e-05/0.4557, allocations: 185.6 kB / 0.775 GB, free: 15.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.083e-05/0.4558, allocations: 188.7 kB / 0.7752 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001401/0.4559, allocations: 105.5 kB / 0.7753 GB, free: 14.99 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.758e-05/0.456, allocations: 180.4 kB / 0.7755 GB, free: 14.81 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.251e-05/0.456, allocations: 110.7 kB / 0.7756 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.836e-05/0.456, allocations: 86.05 kB / 0.7757 GB, free: 14.63 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.456, allocations: 0 / 0.7757 GB, free: 14.63 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002868/0.4563, allocations: 16.52 kB / 0.7757 GB, free: 14.63 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.0002271/0.4566, allocations: 194 kB / 0.7759 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 7.944e-05/0.4566, allocations: 11.88 kB / 0.7759 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.4567, allocations: 0.625 kB / 0.7759 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 2.275e-06/0.4567, allocations: 1.047 kB / 0.7759 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002754/0.4569, allocations: 465.5 kB / 0.7763 GB, free: 14.02 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001965/0.4571, allocations: 182 kB / 0.7765 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.015e-05/0.4572, allocations: 0.6746 MB / 0.7771 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.995e-05/0.4573, allocations: 7.891 kB / 0.7772 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.65e-05/0.4573, allocations: 14.75 kB / 0.7772 GB, free: 13.15 MB / 0.5606 GB Notification: Performance of SimCode: time 2.21e-07/0.4573, allocations: 0 / 0.7772 GB, free: 13.15 MB / 0.5606 GB Notification: Performance of Templates: time 0.002981/0.4603, allocations: 0.6407 MB / 0.7778 GB, free: 13.12 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)