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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.8103/0.8103, allocations: 143.4 MB / 159.2 MB, free: 4.887 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001347/0.001347, allocations: 192.5 kB / 191.9 MB, free: 5.727 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.531/1.531, allocations: 222.9 MB / 447.3 MB, free: 5.863 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 107.8 kB / 0.517 GB, free: 3.719 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002048/0.002048, allocations: 287.8 kB / 0.5973 GB, free: 49.41 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001664/0.001665, allocations: 87.86 kB / 0.6885 GB, free: 3.895 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4282/0.4299, allocations: 81.29 MB / 0.7679 GB, free: 27.72 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.004801/0.4348, allocations: 4.039 MB / 0.7719 GB, free: 23.66 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001611/0.435, allocations: 167.5 kB / 0.772 GB, free: 23.5 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.903e-05/0.435, allocations: 0 / 0.772 GB, free: 23.5 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001123/0.4351, allocations: 3.938 kB / 0.772 GB, free: 23.49 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 8.229e-05/0.4352, allocations: 15.98 kB / 0.772 GB, free: 23.48 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003352/0.4356, allocations: 71.77 kB / 0.7721 GB, free: 23.41 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 8.746e-05/0.4357, allocations: 63.8 kB / 0.7722 GB, free: 23.34 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.62e-05/0.4357, allocations: 4 kB / 0.7722 GB, free: 23.34 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.802e-05/0.4358, allocations: 8 kB / 0.7722 GB, free: 23.33 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.134e-05/0.4358, allocations: 23.91 kB / 0.7722 GB, free: 23.31 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 1.262e-05/0.4358, allocations: 0 / 0.7722 GB, free: 23.31 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002225/0.4361, allocations: 71.8 kB / 0.7723 GB, free: 23.24 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 4.99e-05/0.4361, allocations: 11.97 kB / 0.7723 GB, free: 23.23 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 2.706e-05/0.4362, allocations: 8 kB / 0.7723 GB, free: 23.22 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001241/0.4363, allocations: 54.48 kB / 0.7723 GB, free: 23.17 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.4363, allocations: 4 kB / 0.7723 GB, free: 23.16 MB / 458.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.4363, allocations: 0 / 0.7723 GB, free: 23.16 MB / 458.7 MB Notification: Performance of Transformations before backend: time 3.747e-06/0.4363, allocations: 0 / 0.7723 GB, free: 23.16 MB / 458.7 MB 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.00038/0.4367, allocations: 331.5 kB / 0.7727 GB, free: 22.79 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.4368, allocations: 8.031 kB / 0.7727 GB, free: 22.79 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.991e-05/0.4368, allocations: 8.844 kB / 0.7727 GB, free: 22.78 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.291e-05/0.4369, allocations: 160.4 kB / 0.7728 GB, free: 22.58 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.352e-05/0.437, allocations: 34.25 kB / 0.7729 GB, free: 22.54 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.138e-06/0.437, allocations: 384 / 0.7729 GB, free: 22.54 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001329/0.4371, allocations: 53.61 kB / 0.7729 GB, free: 22.48 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.4371, allocations: 3.938 kB / 0.7729 GB, free: 22.48 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.086e-05/0.4372, allocations: 0 / 0.7729 GB, free: 22.48 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.984e-05/0.4372, allocations: 8 kB / 0.7729 GB, free: 22.47 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.387e-05/0.4372, allocations: 15.92 kB / 0.7729 GB, free: 22.46 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003917/0.4376, allocations: 334 kB / 0.7733 GB, free: 22.06 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.285e-05/0.4377, allocations: 22.58 kB / 0.7733 GB, free: 22.03 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.507e-05/0.4377, allocations: 8.922 kB / 0.7733 GB, free: 22.02 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.251e-05/0.4378, allocations: 85.09 kB / 0.7734 GB, free: 21.92 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.628e-05/0.4378, allocations: 30.56 kB / 0.7734 GB, free: 21.88 MB / 458.7 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.4378, allocations: 3.938 kB / 0.7734 GB, free: 21.88 MB / 458.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001395/0.4379, allocations: 37.64 kB / 0.7734 GB, free: 21.83 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.953e-05/0.438, allocations: 51.41 kB / 0.7735 GB, free: 21.77 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.486e-05/0.438, allocations: 110 kB / 0.7736 GB, free: 21.65 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 9.508e-06/0.438, allocations: 25.7 kB / 0.7736 GB, free: 21.62 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.199e-05/0.4381, allocations: 88.05 kB / 0.7737 GB, free: 21.53 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.37e-06/0.4381, allocations: 3.906 kB / 0.7737 GB, free: 21.53 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.861e-05/0.4381, allocations: 17.7 kB / 0.7737 GB, free: 21.5 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 5.003e-05/0.4382, allocations: 318.8 kB / 0.774 GB, free: 21.18 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.469e-05/0.4382, allocations: 4 kB / 0.774 GB, free: 21.18 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.881e-05/0.4382, allocations: 17.72 kB / 0.774 GB, free: 21.16 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.127e-05/0.4383, allocations: 29.64 kB / 0.7741 GB, free: 21.12 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.4383, allocations: 0 / 0.7741 GB, free: 21.12 MB / 458.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.544e-05/0.4383, allocations: 49.62 kB / 0.7741 GB, free: 21.07 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.4384, allocations: 4 kB / 0.7741 GB, free: 21.06 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.4384, allocations: 0 / 0.7741 GB, free: 21.06 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.4384, allocations: 4 kB / 0.7741 GB, free: 21.06 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.153e-05/0.4384, allocations: 8.062 kB / 0.7741 GB, free: 21.05 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.251e-06/0.4385, allocations: 0 / 0.7741 GB, free: 21.05 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.994e-05/0.4385, allocations: 3.938 kB / 0.7741 GB, free: 21.05 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.089e-05/0.4385, allocations: 4 kB / 0.7741 GB, free: 21.04 MB / 458.7 MB 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 5.091e-05/0.4385, allocations: 110.6 kB / 0.7742 GB, free: 20.93 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.773e-05/0.4386, allocations: 4 kB / 0.7742 GB, free: 20.92 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.966e-05/0.4387, allocations: 120.9 kB / 0.7744 GB, free: 20.79 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.648e-05/0.4387, allocations: 184.3 kB / 0.7745 GB, free: 20.61 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.434e-05/0.4387, allocations: 176.3 kB / 0.7747 GB, free: 20.43 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.623e-05/0.4388, allocations: 188.2 kB / 0.7749 GB, free: 20.23 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001349/0.4389, allocations: 413.1 kB / 0.7753 GB, free: 19.77 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.626e-05/0.4389, allocations: 104.9 kB / 0.7754 GB, free: 19.66 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.4e-05/0.439, allocations: 101 kB / 0.7755 GB, free: 19.56 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.826e-05/0.439, allocations: 184.3 kB / 0.7757 GB, free: 19.37 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.849e-05/0.439, allocations: 180.2 kB / 0.7758 GB, free: 19.19 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.25e-05/0.439, allocations: 180.3 kB / 0.776 GB, free: 19 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.453e-05/0.4391, allocations: 188.1 kB / 0.7762 GB, free: 18.81 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002287/0.4393, allocations: 0.8454 MB / 0.777 GB, free: 17.9 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.183e-05/0.4394, allocations: 178.1 kB / 0.7772 GB, free: 17.7 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.943e-05/0.4394, allocations: 184.1 kB / 0.7773 GB, free: 17.52 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001292/0.4395, allocations: 120.9 kB / 0.7775 GB, free: 17.39 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.336e-05/0.4396, allocations: 184.2 kB / 0.7776 GB, free: 17.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.736e-05/0.4396, allocations: 109 kB / 0.7777 GB, free: 17.09 MB / 458.7 MB Notification: Performance of sorting global known variables: time 2.883e-05/0.4396, allocations: 83.27 kB / 0.7778 GB, free: 17.01 MB / 458.7 MB Notification: Performance of sort global known variables: time 1e-07/0.4396, allocations: 0 / 0.7778 GB, free: 17.01 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0003787/0.44, allocations: 20 kB / 0.7778 GB, free: 16.99 MB / 458.7 MB 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.0002253/0.4403, allocations: 194.8 kB / 0.778 GB, free: 16.79 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 6.038e-05/0.4403, allocations: 15.94 kB / 0.778 GB, free: 16.77 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.4403, allocations: 0 / 0.778 GB, free: 16.77 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 1.644e-06/0.4403, allocations: 0 / 0.778 GB, free: 16.77 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000322/0.4407, allocations: 0.5243 MB / 0.7786 GB, free: 16.25 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002356/0.4409, allocations: 183.8 kB / 0.7787 GB, free: 16.04 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001126/0.441, allocations: 0.6731 MB / 0.7794 GB, free: 15.34 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 4.441e-05/0.4411, allocations: 11.92 kB / 0.7794 GB, free: 15.33 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.568e-05/0.4411, allocations: 11.44 kB / 0.7794 GB, free: 15.32 MB / 458.7 MB Notification: Performance of SimCode: time 1.844e-06/0.4411, allocations: 0 / 0.7794 GB, free: 15.32 MB / 458.7 MB Notification: Performance of Templates: time 0.002464/0.4436, allocations: 0.6422 MB / 0.78 GB, free: 14.68 MB / 458.7 MB 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)