Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.SteamTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_10_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.001155/0.001155, allocations: 103.9 kB / 16.27 MB, free: 5.98 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.001046/0.001046, allocations: 189.8 kB / 17.19 MB, free: 5.605 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.344/1.344, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.422/2.422, allocations: 437 MB / 0.711 GB, free: 4.559 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 68.72 kB / 0.8699 GB, free: 2.262 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2895/0.2908, allocations: 151.6 MB / 1.018 GB, free: 10.71 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamTemperatureEnthalpyInversion): time 0.6873/0.9781, allocations: 135.4 MB / 1.15 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.0001478/0.9783, allocations: 49.09 kB / 1.15 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.183e-05/0.9783, allocations: 1.125 kB / 1.15 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 9.513e-05/0.9785, allocations: 9.812 kB / 1.15 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 7.229e-05/0.9786, allocations: 14.02 kB / 1.15 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007548/0.9793, allocations: 227.3 kB / 1.15 GB, free: 15.24 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 7.711e-05/0.9794, allocations: 43.09 kB / 1.15 GB, free: 15.22 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 3.506e-05/0.9795, allocations: 1.5 kB / 1.15 GB, free: 15.22 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 3.4e-05/0.9795, allocations: 15.3 kB / 1.15 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 5.978e-05/0.9796, allocations: 12.98 kB / 1.15 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 1.275e-05/0.9796, allocations: 1 kB / 1.151 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000445/0.98, allocations: 250.8 kB / 1.151 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 4.26e-05/0.9801, allocations: 9.406 kB / 1.151 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 2.427e-05/0.9801, allocations: 5.312 kB / 1.151 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.0003394/0.9805, allocations: 190 kB / 1.151 GB, free: 15.06 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.237e-06/0.9805, allocations: 0 / 1.151 GB, free: 15.06 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.222e-06/0.9805, allocations: 0 / 1.151 GB, free: 15.06 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 4.538e-06/0.9805, allocations: 0 / 1.151 GB, free: 15.06 MB / 0.8731 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.0003739/0.9809, allocations: 357.6 kB / 1.151 GB, free: 14.69 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.9809, allocations: 10.8 kB / 1.151 GB, free: 14.69 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.049e-05/0.981, allocations: 5.016 kB / 1.151 GB, free: 14.69 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001151/0.9811, allocations: 165.3 kB / 1.151 GB, free: 14.49 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.525e-05/0.9812, allocations: 27.98 kB / 1.151 GB, free: 14.46 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.036e-05/0.9812, allocations: 5.719 kB / 1.151 GB, free: 14.45 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001342/0.9813, allocations: 40.39 kB / 1.152 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/0.9813, allocations: 3.938 kB / 1.152 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.065e-05/0.9813, allocations: 5.219 kB / 1.152 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.793e-05/0.9814, allocations: 1.312 kB / 1.152 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.393e-05/0.9814, allocations: 15.58 kB / 1.152 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000747/0.9822, allocations: 0.5973 MB / 1.152 GB, free: 13.75 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 3.405e-05/0.9822, allocations: 16.05 kB / 1.152 GB, free: 13.73 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.886e-05/0.9822, allocations: 15.86 kB / 1.152 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002035/0.9825, allocations: 338.1 kB / 1.152 GB, free: 13.33 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.562e-05/0.9825, allocations: 36.19 kB / 1.153 GB, free: 13.29 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=1): time 1.192e-06/0.9825, allocations: 0 / 1.153 GB, free: 13.29 MB / 0.8731 GB Notification: Performance of matching and sorting (n=1): time 0.0001318/0.9826, allocations: 33.58 kB / 1.153 GB, free: 13.26 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.133e-05/0.9827, allocations: 56.78 kB / 1.153 GB, free: 13.19 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.392e-05/0.9828, allocations: 107 kB / 1.153 GB, free: 13.09 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 1.407e-05/0.9828, allocations: 25.7 kB / 1.153 GB, free: 13.05 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 4.569e-05/0.9828, allocations: 97.59 kB / 1.153 GB, free: 12.96 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 7.304e-06/0.9828, allocations: 6.672 kB / 1.153 GB, free: 12.95 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.058e-05/0.9829, allocations: 15.05 kB / 1.153 GB, free: 12.94 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001102/0.983, allocations: 315.9 kB / 1.153 GB, free: 12.62 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.584e-05/0.983, allocations: 7.438 kB / 1.153 GB, free: 12.62 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.774e-05/0.9831, allocations: 19.02 kB / 1.153 GB, free: 12.6 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.542e-05/0.9831, allocations: 24.56 kB / 1.153 GB, free: 12.57 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.9831, allocations: 1.062 kB / 1.153 GB, free: 12.57 MB / 0.8731 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.698e-05/0.9832, allocations: 49.88 kB / 1.153 GB, free: 12.54 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.9832, allocations: 7.562 kB / 1.153 GB, free: 12.54 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.127e-06/0.9832, allocations: 5.312 kB / 1.153 GB, free: 12.53 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/0.9832, allocations: 1.031 kB / 1.153 GB, free: 12.53 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.113e-05/0.9833, allocations: 5.922 kB / 1.153 GB, free: 12.53 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.561e-06/0.9833, allocations: 1.375 kB / 1.153 GB, free: 12.53 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.04e-05/0.9833, allocations: 8.484 kB / 1.153 GB, free: 12.52 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.157e-06/0.9833, allocations: 3.031 kB / 1.153 GB, free: 12.52 MB / 0.8731 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 7.724e-05/0.9834, allocations: 113.1 kB / 1.153 GB, free: 12.41 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.736e-05/0.9835, allocations: 2.188 kB / 1.153 GB, free: 12.41 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001059/0.9836, allocations: 122.6 kB / 1.153 GB, free: 12.28 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-05/0.9836, allocations: 177.1 kB / 1.154 GB, free: 12.1 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.381e-05/0.9837, allocations: 186.3 kB / 1.154 GB, free: 11.91 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.174e-05/0.9838, allocations: 178.3 kB / 1.154 GB, free: 11.73 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002165/0.984, allocations: 407.9 kB / 1.154 GB, free: 11.28 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-05/0.984, allocations: 111.8 kB / 1.155 GB, free: 11.17 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.077e-05/0.9841, allocations: 102.2 kB / 1.155 GB, free: 11.06 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.174e-05/0.9841, allocations: 182.6 kB / 1.155 GB, free: 10.88 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.234e-05/0.9842, allocations: 181.8 kB / 1.155 GB, free: 10.7 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.127e-05/0.9843, allocations: 182.2 kB / 1.155 GB, free: 10.51 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.984e-05/0.9843, allocations: 182.9 kB / 1.155 GB, free: 10.33 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001375/0.9845, allocations: 308.3 kB / 1.156 GB, free: 10.01 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 6.289e-05/0.9846, allocations: 189 kB / 1.156 GB, free: 9.801 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.346e-05/0.9846, allocations: 182.2 kB / 1.156 GB, free: 9.617 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001508/0.9848, allocations: 110.8 kB / 1.156 GB, free: 9.508 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.022e-05/0.9849, allocations: 182.5 kB / 1.156 GB, free: 9.328 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.133e-05/0.9849, allocations: 104.9 kB / 1.156 GB, free: 9.219 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 4.528e-05/0.985, allocations: 86.95 kB / 1.156 GB, free: 9.141 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/0.985, allocations: 4 kB / 1.156 GB, free: 9.137 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003209/0.9853, allocations: 58.7 kB / 1.156 GB, free: 9.117 MB / 0.8731 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.0003163/0.9856, allocations: 250.9 kB / 1.157 GB, free: 8.934 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 8.061e-05/0.9857, allocations: 11.64 kB / 1.157 GB, free: 8.93 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.9857, allocations: 0 / 1.157 GB, free: 8.93 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 1.763e-06/0.9857, allocations: 1.344 kB / 1.157 GB, free: 8.93 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003975/0.9861, allocations: 466.5 kB / 1.157 GB, free: 8.477 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002591/0.9864, allocations: 202.3 kB / 1.157 GB, free: 8.27 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002467/0.9866, allocations: 0.6782 MB / 1.158 GB, free: 7.57 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.146e-05/0.9867, allocations: 14.44 kB / 1.158 GB, free: 7.559 MB / 0.8731 GB Notification: Performance of SimCode: time 3.71e-07/0.9867, allocations: 0 / 1.158 GB, free: 7.559 MB / 0.8731 GB Notification: Performance of Templates: time 0.002596/0.9893, allocations: 1.232 MB / 1.159 GB, free: 7.41 MB / 0.8731 GB make -j1 -f Buildings_10_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.makefile (rm -f Buildings_10_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_10_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe >> ../files/Buildings_10_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.sim & ./Buildings_10_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Examples_SteamTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches