Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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(Buildings.Media.Examples.SteamTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.SteamTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009795/0.0009795, allocations: 99.7 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.0009457/0.0009458, allocations: 177.3 kB / 15.94 MB, free: 228 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.346/1.346, allocations: 223.2 MB / 239.9 MB, free: 5.242 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.548/2.548, allocations: 436.5 MB / 0.7104 GB, free: 7.906 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003398/0.0003398, allocations: 8 kB / 0.8707 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6097/0.6101, allocations: 153.7 MB / 1.021 GB, free: 1.188 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamTemperatureEnthalpyInversion): time 0.1226/0.7327, allocations: 114.3 MB / 1.132 GB, free: 14.61 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0005532/0.7333, allocations: 479 kB / 1.133 GB, free: 14.14 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.727e-05/0.7333, allocations: 7.938 kB / 1.133 GB, free: 14.13 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001029/0.7334, allocations: 4 kB / 1.133 GB, free: 14.12 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 3.452e-05/0.7335, allocations: 3.984 kB / 1.133 GB, free: 14.12 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005804/0.7341, allocations: 194.2 kB / 1.133 GB, free: 13.93 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 5.261e-05/0.7341, allocations: 27.95 kB / 1.133 GB, free: 13.91 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 3.441e-05/0.7342, allocations: 0 / 1.133 GB, free: 13.91 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 3.302e-05/0.7342, allocations: 11.98 kB / 1.133 GB, free: 13.89 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 5.206e-05/0.7343, allocations: 7.984 kB / 1.133 GB, free: 13.89 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.152e-05/0.7343, allocations: 7.875 kB / 1.133 GB, free: 13.88 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003644/0.7347, allocations: 167.8 kB / 1.133 GB, free: 13.71 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.196e-05/0.7347, allocations: 11.98 kB / 1.133 GB, free: 13.7 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.061e-05/0.7347, allocations: 29.7 kB / 1.133 GB, free: 13.67 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001934/0.7349, allocations: 93.81 kB / 1.133 GB, free: 13.58 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 2.696e-06/0.7349, allocations: 4 kB / 1.133 GB, free: 13.57 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.673e-06/0.7349, allocations: 0 / 1.133 GB, free: 13.57 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 3.717e-06/0.735, allocations: 0 / 1.133 GB, free: 13.57 MB / 0.8887 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.0003383/0.7353, allocations: 357.3 kB / 1.134 GB, free: 13.18 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/0.7353, allocations: 15.98 kB / 1.134 GB, free: 13.16 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.917e-05/0.7354, allocations: 3.938 kB / 1.134 GB, free: 13.16 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.55e-05/0.7355, allocations: 159.1 kB / 1.134 GB, free: 12.96 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.832e-05/0.7355, allocations: 37.64 kB / 1.134 GB, free: 12.92 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.848e-06/0.7356, allocations: 0 / 1.134 GB, free: 12.92 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001161/0.7357, allocations: 45.69 kB / 1.134 GB, free: 12.87 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.291e-06/0.7357, allocations: 0 / 1.134 GB, free: 12.87 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.107e-05/0.7357, allocations: 0 / 1.134 GB, free: 12.87 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.608e-05/0.7357, allocations: 4 kB / 1.134 GB, free: 12.87 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.915e-05/0.7358, allocations: 11.98 kB / 1.134 GB, free: 12.86 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006246/0.7364, allocations: 0.5911 MB / 1.135 GB, free: 12.14 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 3.308e-05/0.7365, allocations: 22.58 kB / 1.135 GB, free: 12.11 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001694/0.7366, allocations: 332.5 kB / 1.135 GB, free: 11.71 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.903e-05/0.7367, allocations: 34.56 kB / 1.135 GB, free: 11.67 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=1): time 1.563e-06/0.7367, allocations: 0 / 1.135 GB, free: 11.67 MB / 0.8887 GB Notification: Performance of matching and sorting (n=1): time 0.0001218/0.7368, allocations: 37.62 kB / 1.135 GB, free: 11.62 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.808e-05/0.7368, allocations: 51.41 kB / 1.135 GB, free: 11.56 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.808e-05/0.7369, allocations: 109.9 kB / 1.135 GB, free: 11.45 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.269e-05/0.7369, allocations: 25.7 kB / 1.135 GB, free: 11.41 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 3.921e-05/0.737, allocations: 84.12 kB / 1.135 GB, free: 11.33 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 9.528e-06/0.737, allocations: 15.84 kB / 1.135 GB, free: 11.31 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.314e-06/0.737, allocations: 0 / 1.135 GB, free: 11.31 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 8.162e-05/0.7371, allocations: 314.8 kB / 1.136 GB, free: 11 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.071e-05/0.7371, allocations: 0 / 1.136 GB, free: 11 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.781e-05/0.7371, allocations: 17.89 kB / 1.136 GB, free: 10.97 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.982e-05/0.7371, allocations: 15.94 kB / 1.136 GB, free: 10.96 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.7371, allocations: 0 / 1.136 GB, free: 10.96 MB / 0.8887 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.999e-05/0.7372, allocations: 53.72 kB / 1.136 GB, free: 10.9 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.194e-05/0.7372, allocations: 5.875 kB / 1.136 GB, free: 10.89 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.7372, allocations: 0 / 1.136 GB, free: 10.89 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.7373, allocations: 11.92 kB / 1.136 GB, free: 10.88 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.293e-05/0.7373, allocations: 8 kB / 1.136 GB, free: 10.88 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.7373, allocations: 0 / 1.136 GB, free: 10.88 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.721e-05/0.7373, allocations: 0 / 1.136 GB, free: 10.88 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.237e-06/0.7374, allocations: 4.062 kB / 1.136 GB, free: 10.87 MB / 0.8887 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.244e-05/0.7374, allocations: 113.8 kB / 1.136 GB, free: 10.75 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.252e-05/0.7375, allocations: 0 / 1.136 GB, free: 10.75 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.734e-05/0.7376, allocations: 128.8 kB / 1.136 GB, free: 10.62 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-05/0.7376, allocations: 176.3 kB / 1.136 GB, free: 10.44 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.186e-05/0.7377, allocations: 188.2 kB / 1.136 GB, free: 10.25 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.567e-05/0.7377, allocations: 180.2 kB / 1.136 GB, free: 10.06 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001905/0.7379, allocations: 413.1 kB / 1.137 GB, free: 9.602 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-05/0.7379, allocations: 101 kB / 1.137 GB, free: 9.496 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.131e-05/0.738, allocations: 101 kB / 1.137 GB, free: 9.391 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.303e-05/0.738, allocations: 180.2 kB / 1.137 GB, free: 9.207 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.808e-05/0.7381, allocations: 184.3 kB / 1.137 GB, free: 9.02 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.973e-05/0.7381, allocations: 188.2 kB / 1.138 GB, free: 8.828 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.214e-05/0.7382, allocations: 180.2 kB / 1.138 GB, free: 8.645 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001104/0.7383, allocations: 303.8 kB / 1.138 GB, free: 8.324 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 6.31e-05/0.7384, allocations: 194 kB / 1.138 GB, free: 8.109 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.278e-05/0.7385, allocations: 180.2 kB / 1.138 GB, free: 7.926 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001352/0.7386, allocations: 105 kB / 1.138 GB, free: 7.816 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.638e-05/0.7387, allocations: 176.3 kB / 1.139 GB, free: 7.637 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.17e-05/0.7387, allocations: 108.9 kB / 1.139 GB, free: 7.523 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 3.827e-05/0.7388, allocations: 87.28 kB / 1.139 GB, free: 7.438 MB / 0.8887 GB Notification: Performance of sort global known variables: time 2.31e-07/0.7388, allocations: 4 kB / 1.139 GB, free: 7.434 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0002795/0.739, allocations: 59.92 kB / 1.139 GB, free: 7.375 MB / 0.8887 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.000255/0.7393, allocations: 242.6 kB / 1.139 GB, free: 7.129 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 6.172e-05/0.7394, allocations: 11.98 kB / 1.139 GB, free: 7.117 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.7394, allocations: 3.938 kB / 1.139 GB, free: 7.113 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 3.807e-06/0.7394, allocations: 7.938 kB / 1.139 GB, free: 7.105 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002737/0.7397, allocations: 0.5185 MB / 1.14 GB, free: 6.582 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002195/0.7399, allocations: 188 kB / 1.14 GB, free: 6.371 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001954/0.7401, allocations: 0.677 MB / 1.14 GB, free: 5.668 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 3.72e-05/0.7402, allocations: 7.938 kB / 1.14 GB, free: 5.66 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.715e-05/0.7402, allocations: 11.38 kB / 1.14 GB, free: 5.648 MB / 0.8887 GB Notification: Performance of SimCode: time 2.41e-07/0.7402, allocations: 0 / 1.14 GB, free: 5.648 MB / 0.8887 GB Notification: Performance of Templates: time 0.003277/0.7435, allocations: 1.205 MB / 1.142 GB, free: 4.445 MB / 0.8887 GB make -j1 -f Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.makefile (rm -f Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.sim & ./Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_SteamTemperatureEnthalpyInversion.csv","../files/Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches