Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.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.SteamTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion") translateModel(BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008008/0.0008007, allocations: 97.97 kB / 15.05 MB, free: 1.105 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.0008575/0.0008576, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.183/1.183, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001687/0.001687, allocations: 278.7 kB / 291.3 MB, free: 1.992 MB / 238.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:5:3-5:34:writable] Warning: Got element f_alp that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_lay but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Got element f_lay that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_loss but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Got element f_loss that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_pv but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Got element f_pv that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:2:1-34:14:writable] Warning: f_pv was referenced in the package.order file, but was not found in package.mo, f_pv/package.mo or f_pv.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7403/0.7403, allocations: 144.6 MB / 487 MB, free: 7.191 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003696/0.0003697, allocations: 12.17 kB / 0.5683 GB, free: 38.2 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1185, allocations: 83.09 MB / 0.6494 GB, free: 3.633 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion): time 0.1089/0.2275, allocations: 114.3 MB / 0.761 GB, free: 1.082 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.00052/0.228, allocations: 499 kB / 0.7615 GB, free: 0.5938 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.67e-05/0.2281, allocations: 0 / 0.7615 GB, free: 0.5938 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 8.851e-05/0.2282, allocations: 0 / 0.7615 GB, free: 0.5938 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 3.227e-05/0.2282, allocations: 11.91 kB / 0.7615 GB, free: 0.582 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005762/0.2288, allocations: 203.4 kB / 0.7617 GB, free: 392 kB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 4.795e-05/0.2289, allocations: 19.95 kB / 0.7617 GB, free: 372 kB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.273e-05/0.2289, allocations: 0 / 0.7617 GB, free: 372 kB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 2.759e-05/0.2289, allocations: 12 kB / 0.7617 GB, free: 360 kB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 4.653e-05/0.229, allocations: 11.92 kB / 0.7618 GB, free: 348 kB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.145e-05/0.229, allocations: 4 kB / 0.7618 GB, free: 344 kB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003586/0.2294, allocations: 175.8 kB / 0.7619 GB, free: 168 kB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 2.917e-05/0.2294, allocations: 11.98 kB / 0.7619 GB, free: 156 kB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.197e-05/0.2294, allocations: 29.7 kB / 0.762 GB, free: 120 kB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001994/0.2296, allocations: 104.1 kB / 0.7621 GB, free: 16 kB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 2.004e-06/0.2297, allocations: 3.938 kB / 0.7621 GB, free: 12 kB / 0.545 GB Notification: Performance of FrontEnd: time 1.122e-06/0.2297, allocations: 0 / 0.7621 GB, free: 12 kB / 0.545 GB Notification: Performance of Transformations before backend: time 5.901e-06/0.2297, allocations: 3.938 kB / 0.7621 GB, free: 8 kB / 0.545 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.0003243/0.23, allocations: 347.4 kB / 0.7624 GB, free: 15.62 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 2.792e-05/0.23, allocations: 12.03 kB / 0.7624 GB, free: 15.61 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.123e-05/0.2301, allocations: 7.906 kB / 0.7624 GB, free: 15.6 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.948e-05/0.2302, allocations: 163 kB / 0.7626 GB, free: 15.4 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.396e-05/0.2302, allocations: 29.69 kB / 0.7626 GB, free: 15.37 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.007e-06/0.2302, allocations: 4 kB / 0.7626 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001189/0.2304, allocations: 41.69 kB / 0.7626 GB, free: 15.32 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.212e-06/0.2304, allocations: 0 / 0.7626 GB, free: 15.32 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.009e-05/0.2304, allocations: 0 / 0.7626 GB, free: 15.32 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.539e-05/0.2304, allocations: 4 kB / 0.7627 GB, free: 15.31 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.778e-05/0.2305, allocations: 19.92 kB / 0.7627 GB, free: 15.29 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005672/0.231, allocations: 0.5911 MB / 0.7632 GB, free: 14.58 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 3.036e-05/0.2311, allocations: 14.58 kB / 0.7633 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001582/0.2312, allocations: 332.5 kB / 0.7636 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.139e-05/0.2313, allocations: 38.56 kB / 0.7636 GB, free: 14.11 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.2313, allocations: 0 / 0.7636 GB, free: 14.11 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.000114/0.2314, allocations: 37.62 kB / 0.7637 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.543e-05/0.2314, allocations: 51.41 kB / 0.7637 GB, free: 14 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.733e-05/0.2315, allocations: 109.8 kB / 0.7638 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.265e-05/0.2315, allocations: 25.7 kB / 0.7638 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.432e-05/0.2316, allocations: 87.98 kB / 0.7639 GB, free: 13.77 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.26e-06/0.2316, allocations: 3.906 kB / 0.7639 GB, free: 13.76 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.601e-06/0.2316, allocations: 12.12 kB / 0.7639 GB, free: 13.75 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 8.539e-05/0.2317, allocations: 318.7 kB / 0.7642 GB, free: 13.43 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.698e-06/0.2317, allocations: 0 / 0.7642 GB, free: 13.43 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.862e-05/0.2317, allocations: 17.7 kB / 0.7643 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.815e-05/0.2317, allocations: 8 kB / 0.7643 GB, free: 13.4 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.2317, allocations: 0 / 0.7643 GB, free: 13.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.588e-05/0.2318, allocations: 57.66 kB / 0.7643 GB, free: 13.34 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.038e-05/0.2318, allocations: 4 kB / 0.7643 GB, free: 13.33 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.487e-06/0.2318, allocations: 0 / 0.7643 GB, free: 13.33 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.766e-06/0.2318, allocations: 0 / 0.7643 GB, free: 13.33 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.738e-05/0.2319, allocations: 4 kB / 0.7643 GB, free: 13.33 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.517e-06/0.2319, allocations: 4 kB / 0.7643 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.753e-05/0.2319, allocations: 0 / 0.7643 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.105e-06/0.2319, allocations: 0 / 0.7643 GB, free: 13.32 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.272e-05/0.232, allocations: 121.7 kB / 0.7644 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.075e-05/0.232, allocations: 0 / 0.7644 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.504e-05/0.2321, allocations: 121 kB / 0.7646 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.551e-05/0.2322, allocations: 180.2 kB / 0.7647 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.633e-05/0.2322, allocations: 184.2 kB / 0.7649 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-05/0.2323, allocations: 184.2 kB / 0.7651 GB, free: 12.51 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001789/0.2325, allocations: 421.1 kB / 0.7655 GB, free: 12.04 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-05/0.2325, allocations: 101 kB / 0.7656 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.303e-05/0.2325, allocations: 101 kB / 0.7657 GB, free: 11.83 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.844e-05/0.2326, allocations: 180.2 kB / 0.7658 GB, free: 11.64 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.674e-05/0.2326, allocations: 184.2 kB / 0.766 GB, free: 11.46 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.634e-05/0.2327, allocations: 184.2 kB / 0.7662 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.423e-05/0.2327, allocations: 180.3 kB / 0.7664 GB, free: 11.09 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001058/0.2328, allocations: 307.6 kB / 0.7667 GB, free: 10.76 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 8.396e-05/0.2329, allocations: 190.1 kB / 0.7668 GB, free: 10.55 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.123e-05/0.233, allocations: 180.2 kB / 0.767 GB, free: 10.37 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001343/0.2331, allocations: 113 kB / 0.7671 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.563e-05/0.2332, allocations: 180.2 kB / 0.7673 GB, free: 10.07 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.573e-05/0.2332, allocations: 101 kB / 0.7674 GB, free: 9.961 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.397e-05/0.2333, allocations: 91.27 kB / 0.7675 GB, free: 9.871 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.1e-07/0.2333, allocations: 0 / 0.7675 GB, free: 9.871 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002576/0.2336, allocations: 51.94 kB / 0.7675 GB, free: 9.82 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002386/0.2338, allocations: 254.3 kB / 0.7678 GB, free: 9.559 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 5.469e-05/0.2339, allocations: 11.94 kB / 0.7678 GB, free: 9.547 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.2339, allocations: 0 / 0.7678 GB, free: 9.547 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.342e-06/0.2339, allocations: 0 / 0.7678 GB, free: 9.547 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002534/0.2341, allocations: 0.5303 MB / 0.7683 GB, free: 9.012 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000192/0.2343, allocations: 183.9 kB / 0.7685 GB, free: 8.805 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001821/0.2345, allocations: 0.677 MB / 0.7691 GB, free: 8.102 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.396e-05/0.2346, allocations: 8 kB / 0.7691 GB, free: 8.094 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.556e-05/0.2346, allocations: 11.44 kB / 0.7692 GB, free: 8.082 MB / 0.5606 GB Notification: Performance of SimCode: time 2.2e-07/0.2346, allocations: 0 / 0.7692 GB, free: 8.082 MB / 0.5606 GB Notification: Performance of Templates: time 0.002916/0.2375, allocations: 1.228 MB / 0.7704 GB, free: 6.859 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.makefile Environment - environmentSimulation: (rm -f BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.sim & ./BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.pipe 2>&1) Environment - environmentSimulation: