Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.SteamTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_9_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.007226/0.007226, allocations: 97.12 kB / 15.73 MB, free: 6.004 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.00163/0.00163, allocations: 195 kB / 16.67 MB, free: 5.934 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.411/1.411, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.328/2.328, allocations: 390.2 MB / 0.6648 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001449/0.001449, allocations: 59.91 kB / 0.9508 GB, free: 7.68 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9704/0.9719, allocations: 140.4 MB / 1.088 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamTemperatureEnthalpyInversion): time 0.1892/1.161, allocations: 135.4 MB / 1.22 GB, free: 0.7891 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0002127/1.161, allocations: 58.88 kB / 1.22 GB, free: 0.7422 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.784e-05/1.161, allocations: 0.9688 kB / 1.22 GB, free: 0.7422 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001271/1.162, allocations: 3.938 kB / 1.22 GB, free: 0.7383 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 7.991e-05/1.162, allocations: 15.45 kB / 1.22 GB, free: 0.7266 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.001076/1.163, allocations: 254.5 kB / 1.22 GB, free: 0.5508 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001034/1.163, allocations: 37.38 kB / 1.22 GB, free: 0.5312 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 4.273e-05/1.163, allocations: 0.9375 kB / 1.22 GB, free: 0.5312 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 4.151e-05/1.163, allocations: 9.531 kB / 1.221 GB, free: 0.5312 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 8.351e-05/1.163, allocations: 18.16 kB / 1.221 GB, free: 0.5195 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.205e-05/1.163, allocations: 1.469 kB / 1.221 GB, free: 0.5195 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005583/1.164, allocations: 252.9 kB / 1.221 GB, free: 376 kB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 6.665e-05/1.164, allocations: 6.234 kB / 1.221 GB, free: 372 kB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 3.277e-05/1.164, allocations: 13.19 kB / 1.221 GB, free: 364 kB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0004029/1.164, allocations: 188 kB / 1.221 GB, free: 276 kB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/1.164, allocations: 0 / 1.221 GB, free: 276 kB / 0.9512 GB Notification: Performance of FrontEnd: time 4.038e-06/1.164, allocations: 3.984 kB / 1.221 GB, free: 272 kB / 0.9512 GB Notification: Performance of Transformations before backend: time 6.261e-06/1.164, allocations: 0 / 1.221 GB, free: 272 kB / 0.9512 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.0005036/1.165, allocations: 359.4 kB / 1.221 GB, free: 15.89 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/1.165, allocations: 10.28 kB / 1.221 GB, free: 15.89 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.095e-05/1.165, allocations: 10.14 kB / 1.221 GB, free: 15.88 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001432/1.165, allocations: 165.5 kB / 1.221 GB, free: 15.68 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.795e-05/1.165, allocations: 27.17 kB / 1.222 GB, free: 15.65 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.069e-05/1.165, allocations: 5.188 kB / 1.222 GB, free: 15.64 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001548/1.165, allocations: 43.88 kB / 1.222 GB, free: 15.61 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.194e-06/1.165, allocations: 0 / 1.222 GB, free: 15.61 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.196e-05/1.165, allocations: 0 / 1.222 GB, free: 15.61 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.047e-05/1.165, allocations: 1.312 kB / 1.222 GB, free: 15.61 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.911e-05/1.165, allocations: 17.33 kB / 1.222 GB, free: 15.6 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008882/1.166, allocations: 0.6077 MB / 1.222 GB, free: 14.91 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 3.965e-05/1.166, allocations: 16.45 kB / 1.222 GB, free: 14.88 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.502e-05/1.166, allocations: 5.922 kB / 1.222 GB, free: 14.88 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002355/1.167, allocations: 334.9 kB / 1.223 GB, free: 14.49 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.168e-05/1.167, allocations: 35.38 kB / 1.223 GB, free: 14.45 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=1): time 1.202e-06/1.167, allocations: 0 / 1.223 GB, free: 14.45 MB / 0.9669 GB Notification: Performance of matching and sorting (n=1): time 0.0001738/1.167, allocations: 47.86 kB / 1.223 GB, free: 14.4 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.14e-05/1.167, allocations: 52.53 kB / 1.223 GB, free: 14.34 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.549e-05/1.167, allocations: 99.27 kB / 1.223 GB, free: 14.23 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.616e-05/1.167, allocations: 27.14 kB / 1.223 GB, free: 14.2 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.067e-05/1.167, allocations: 88.08 kB / 1.223 GB, free: 14.11 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 7.735e-06/1.167, allocations: 4.766 kB / 1.223 GB, free: 14.11 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.283e-05/1.167, allocations: 22.62 kB / 1.223 GB, free: 14.09 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000146/1.167, allocations: 314.8 kB / 1.223 GB, free: 13.77 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.813e-05/1.167, allocations: 7.672 kB / 1.223 GB, free: 13.77 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.518e-05/1.167, allocations: 17.62 kB / 1.223 GB, free: 13.75 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.007e-05/1.167, allocations: 22.97 kB / 1.223 GB, free: 13.72 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/1.167, allocations: 5.031 kB / 1.223 GB, free: 13.72 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.077e-05/1.167, allocations: 50 kB / 1.223 GB, free: 13.68 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/1.167, allocations: 5.375 kB / 1.223 GB, free: 13.68 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/1.167, allocations: 5.031 kB / 1.223 GB, free: 13.67 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.084e-05/1.167, allocations: 1.188 kB / 1.223 GB, free: 13.67 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.004e-05/1.168, allocations: 4.5 kB / 1.223 GB, free: 13.67 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/1.168, allocations: 1.312 kB / 1.223 GB, free: 13.67 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.141e-05/1.168, allocations: 9.297 kB / 1.223 GB, free: 13.66 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.267e-05/1.168, allocations: 5.625 kB / 1.223 GB, free: 13.66 MB / 0.9669 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 0.0001084/1.168, allocations: 115.2 kB / 1.223 GB, free: 13.54 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.924e-05/1.168, allocations: 5.609 kB / 1.223 GB, free: 13.54 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000115/1.168, allocations: 111.7 kB / 1.224 GB, free: 13.41 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.601e-05/1.168, allocations: 185.7 kB / 1.224 GB, free: 13.23 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.398e-05/1.168, allocations: 177.6 kB / 1.224 GB, free: 13.05 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.01e-05/1.168, allocations: 184.2 kB / 1.224 GB, free: 12.86 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002472/1.168, allocations: 408.4 kB / 1.224 GB, free: 12.41 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.645e-05/1.168, allocations: 102.2 kB / 1.225 GB, free: 12.3 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.161e-05/1.168, allocations: 110 kB / 1.225 GB, free: 12.19 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.33e-05/1.169, allocations: 181.2 kB / 1.225 GB, free: 12 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.782e-05/1.169, allocations: 185.1 kB / 1.225 GB, free: 11.82 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.23e-05/1.169, allocations: 181.4 kB / 1.225 GB, free: 11.63 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.549e-05/1.169, allocations: 181.6 kB / 1.225 GB, free: 11.45 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001656/1.169, allocations: 308.1 kB / 1.226 GB, free: 11.13 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 7.006e-05/1.169, allocations: 183.4 kB / 1.226 GB, free: 10.93 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.584e-05/1.169, allocations: 181.3 kB / 1.226 GB, free: 10.74 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001567/1.169, allocations: 115.1 kB / 1.226 GB, free: 10.62 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.176e-05/1.169, allocations: 181.4 kB / 1.226 GB, free: 10.44 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.486e-05/1.169, allocations: 102.1 kB / 1.226 GB, free: 10.34 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.905e-05/1.169, allocations: 88.53 kB / 1.226 GB, free: 10.25 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.31e-07/1.169, allocations: 0 / 1.226 GB, free: 10.25 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003604/1.17, allocations: 63.02 kB / 1.226 GB, free: 10.23 MB / 0.9669 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.0003579/1.17, allocations: 258.9 kB / 1.227 GB, free: 10.02 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 7.008e-05/1.17, allocations: 10.78 kB / 1.227 GB, free: 10.02 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/1.17, allocations: 0 / 1.227 GB, free: 10.02 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 1.152e-06/1.17, allocations: 5.312 kB / 1.227 GB, free: 10.02 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004087/1.171, allocations: 455.2 kB / 1.227 GB, free: 9.57 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002745/1.171, allocations: 183.3 kB / 1.227 GB, free: 9.383 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002577/1.171, allocations: 0.6761 MB / 1.228 GB, free: 8.684 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.767e-05/1.171, allocations: 8.438 kB / 1.228 GB, free: 8.68 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.782e-05/1.171, allocations: 9.656 kB / 1.228 GB, free: 8.672 MB / 0.9669 GB Notification: Performance of SimCode: time 2.11e-07/1.171, allocations: 0 / 1.228 GB, free: 8.672 MB / 0.9669 GB Notification: Performance of Templates: time 0.004043/1.175, allocations: 1.294 MB / 1.229 GB, free: 7.973 MB / 0.9669 GB make -j1 -f Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.makefile (rm -f Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe >> ../files/Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.sim & ./Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_SteamTemperatureEnthalpyInversion.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches