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.006753/0.006753, allocations: 95.61 kB / 15.73 MB, free: 6.047 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.001122/0.001122, allocations: 197.7 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.324/1.324, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002039/0.002039, allocations: 282.1 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9507/0.9507, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001639/0.001639, allocations: 87.86 kB / 0.6814 GB, free: 15.5 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1516/0.1532, allocations: 86.97 MB / 0.7664 GB, free: 8.449 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion): time 0.4391/0.5923, allocations: 135.4 MB / 0.8986 GB, free: 11.48 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0001742/0.5925, allocations: 59.72 kB / 0.8987 GB, free: 11.42 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.242e-05/0.5926, allocations: 0 / 0.8987 GB, free: 11.42 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0001061/0.5927, allocations: 3.938 kB / 0.8987 GB, free: 11.42 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 7.27e-05/0.5928, allocations: 13.84 kB / 0.8987 GB, free: 11.41 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007838/0.5936, allocations: 238.9 kB / 0.8989 GB, free: 11.17 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 7.717e-05/0.5937, allocations: 31.92 kB / 0.8989 GB, free: 11.14 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 2.91e-05/0.5937, allocations: 0 / 0.8989 GB, free: 11.14 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 3.542e-05/0.5938, allocations: 21.88 kB / 0.899 GB, free: 11.12 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 6.718e-05/0.5938, allocations: 19.92 kB / 0.899 GB, free: 11.1 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.056e-05/0.5939, allocations: 0 / 0.899 GB, free: 11.1 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004546/0.5943, allocations: 247.4 kB / 0.8992 GB, free: 10.86 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 3.89e-05/0.5944, allocations: 0 / 0.8992 GB, free: 10.86 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 2.848e-05/0.5944, allocations: 15.92 kB / 0.8992 GB, free: 10.84 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0003318/0.5947, allocations: 185.5 kB / 0.8994 GB, free: 10.67 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.5948, allocations: 0 / 0.8994 GB, free: 10.67 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.533e-06/0.5948, allocations: 0 / 0.8994 GB, free: 10.67 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 4.478e-06/0.5948, allocations: 4 kB / 0.8994 GB, free: 10.67 MB / 0.6544 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.000377/0.5952, allocations: 367.1 kB / 0.8998 GB, free: 10.26 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.161e-05/0.5952, allocations: 11.97 kB / 0.8998 GB, free: 10.25 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.313e-05/0.5952, allocations: 0.9375 kB / 0.8998 GB, free: 10.25 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001088/0.5953, allocations: 164.4 kB / 0.8999 GB, free: 10.05 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.095e-05/0.5954, allocations: 30.45 kB / 0.9 GB, free: 10.02 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.071e-05/0.5954, allocations: 3.938 kB / 0.9 GB, free: 10.01 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001205/0.5955, allocations: 53.67 kB / 0.9 GB, free: 9.953 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.031e-06/0.5956, allocations: 0 / 0.9 GB, free: 9.953 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.528e-06/0.5956, allocations: 0 / 0.9 GB, free: 9.953 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.75e-05/0.5956, allocations: 3.984 kB / 0.9 GB, free: 9.949 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.937e-05/0.5956, allocations: 10.62 kB / 0.9 GB, free: 9.941 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007149/0.5964, allocations: 0.6144 MB / 0.9006 GB, free: 9.203 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 3.197e-05/0.5964, allocations: 18.56 kB / 0.9006 GB, free: 9.176 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.411e-05/0.5964, allocations: 4.859 kB / 0.9007 GB, free: 9.168 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001966/0.5966, allocations: 336.5 kB / 0.901 GB, free: 8.766 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.006e-05/0.5967, allocations: 34.56 kB / 0.901 GB, free: 8.723 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.5967, allocations: 0 / 0.901 GB, free: 8.723 MB / 0.6544 GB Notification: Performance of matching and sorting (n=1): time 0.0001306/0.5968, allocations: 45.69 kB / 0.901 GB, free: 8.672 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.553e-05/0.5968, allocations: 51.41 kB / 0.9011 GB, free: 8.609 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.181e-05/0.5969, allocations: 101.8 kB / 0.9012 GB, free: 8.5 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.51e-05/0.5969, allocations: 29.7 kB / 0.9012 GB, free: 8.465 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 4.66e-05/0.597, allocations: 84.09 kB / 0.9013 GB, free: 8.379 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.968e-06/0.597, allocations: 0 / 0.9013 GB, free: 8.379 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.204e-05/0.597, allocations: 21.7 kB / 0.9013 GB, free: 8.352 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001005/0.5971, allocations: 314.8 kB / 0.9016 GB, free: 8.035 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.526e-05/0.5972, allocations: 8.031 kB / 0.9016 GB, free: 8.027 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.278e-05/0.5972, allocations: 17.72 kB / 0.9016 GB, free: 8.004 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.37e-05/0.5972, allocations: 21.64 kB / 0.9017 GB, free: 7.977 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.5972, allocations: 4 kB / 0.9017 GB, free: 7.973 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.236e-05/0.5973, allocations: 45.69 kB / 0.9017 GB, free: 7.922 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.832e-05/0.5973, allocations: 4 kB / 0.9017 GB, free: 7.918 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.587e-06/0.5973, allocations: 4.062 kB / 0.9017 GB, free: 7.914 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.5974, allocations: 4 kB / 0.9017 GB, free: 7.91 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.282e-05/0.5974, allocations: 11.88 kB / 0.9017 GB, free: 7.898 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.097e-06/0.5974, allocations: 0 / 0.9017 GB, free: 7.898 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.034e-05/0.5974, allocations: 4.516 kB / 0.9017 GB, free: 7.895 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.969e-06/0.5975, allocations: 4 kB / 0.9017 GB, free: 7.891 MB / 0.6544 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.502e-05/0.5975, allocations: 114.4 kB / 0.9019 GB, free: 7.77 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.685e-05/0.5976, allocations: 7.938 kB / 0.9019 GB, free: 7.762 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001055/0.5977, allocations: 117 kB / 0.902 GB, free: 7.637 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.262e-05/0.5977, allocations: 184.2 kB / 0.9022 GB, free: 7.449 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-05/0.5978, allocations: 185.6 kB / 0.9023 GB, free: 7.262 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.924e-05/0.5979, allocations: 184.2 kB / 0.9025 GB, free: 7.074 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002063/0.5981, allocations: 405.2 kB / 0.9029 GB, free: 6.621 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.651e-05/0.5981, allocations: 109 kB / 0.903 GB, free: 6.508 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.738e-05/0.5982, allocations: 104.9 kB / 0.9031 GB, free: 6.398 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.599e-05/0.5982, allocations: 180.3 kB / 0.9033 GB, free: 6.215 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.178e-05/0.5983, allocations: 180.2 kB / 0.9034 GB, free: 6.031 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.795e-05/0.5983, allocations: 176.3 kB / 0.9036 GB, free: 5.852 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.471e-05/0.5984, allocations: 180.2 kB / 0.9038 GB, free: 5.668 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001217/0.5985, allocations: 313.6 kB / 0.9041 GB, free: 5.34 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 7.069e-05/0.5986, allocations: 190 kB / 0.9043 GB, free: 5.129 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.371e-05/0.5987, allocations: 180.2 kB / 0.9044 GB, free: 4.945 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001348/0.5988, allocations: 105 kB / 0.9045 GB, free: 4.836 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.611e-05/0.5989, allocations: 188.2 kB / 0.9047 GB, free: 4.645 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.465e-05/0.5989, allocations: 101 kB / 0.9048 GB, free: 4.539 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 4.273e-05/0.599, allocations: 87.27 kB / 0.9049 GB, free: 4.453 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.1e-07/0.599, allocations: 0 / 0.9049 GB, free: 4.453 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002944/0.5993, allocations: 63.67 kB / 0.905 GB, free: 4.391 MB / 0.6544 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.000293/0.5996, allocations: 250.8 kB / 0.9052 GB, free: 4.133 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 7.218e-05/0.5997, allocations: 15.92 kB / 0.9052 GB, free: 4.117 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.5997, allocations: 0 / 0.9052 GB, free: 4.117 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 1.242e-06/0.5997, allocations: 3.938 kB / 0.9052 GB, free: 4.113 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003847/0.6001, allocations: 462.2 kB / 0.9056 GB, free: 3.66 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002419/0.6003, allocations: 196.5 kB / 0.9058 GB, free: 3.441 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002159/0.6006, allocations: 0.6729 MB / 0.9065 GB, free: 2.742 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 3.728e-05/0.6006, allocations: 8.266 kB / 0.9065 GB, free: 2.734 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.564e-05/0.6006, allocations: 11.44 kB / 0.9065 GB, free: 2.723 MB / 0.6544 GB Notification: Performance of SimCode: time 2.3e-07/0.6006, allocations: 0 / 0.9065 GB, free: 2.723 MB / 0.6544 GB Notification: Performance of Templates: time 0.003462/0.6041, allocations: 1.295 MB / 0.9078 GB, free: 1.449 MB / 0.6544 GB make -j1 -f BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.makefile (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)