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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(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.006288/0.006288, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001291/0.001291, allocations: 192.2 kB / 16.67 MB, free: 5.523 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.361/1.361, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.618/2.618, allocations: 461.9 MB / 0.7348 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 64.11 kB / 1.054 GB, free: 7.727 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9561/0.9573, allocations: 157.4 MB / 1.208 GB, free: 13.63 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamTemperatureEnthalpyInversion): time 0.1462/1.104, allocations: 135.4 MB / 1.34 GB, free: 5.73 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0001757/1.104, allocations: 67.78 kB / 1.34 GB, free: 5.664 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.564e-05/1.104, allocations: 0 / 1.34 GB, free: 5.664 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001025/1.104, allocations: 0 / 1.34 GB, free: 5.664 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 7.654e-05/1.104, allocations: 15.92 kB / 1.34 GB, free: 5.648 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007924/1.105, allocations: 239 kB / 1.34 GB, free: 5.414 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 7.838e-05/1.105, allocations: 35.84 kB / 1.34 GB, free: 5.379 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 3.668e-05/1.105, allocations: 0 / 1.34 GB, free: 5.379 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 3.335e-05/1.105, allocations: 19.92 kB / 1.34 GB, free: 5.359 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 6.743e-05/1.105, allocations: 15.92 kB / 1.34 GB, free: 5.344 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.611e-05/1.105, allocations: 4 kB / 1.34 GB, free: 5.34 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004204/1.106, allocations: 243.4 kB / 1.341 GB, free: 5.102 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 3.973e-05/1.106, allocations: 3.984 kB / 1.341 GB, free: 5.098 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 2.396e-05/1.106, allocations: 16 kB / 1.341 GB, free: 5.082 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003017/1.106, allocations: 187.5 kB / 1.341 GB, free: 4.902 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/1.106, allocations: 0 / 1.341 GB, free: 4.902 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.392e-06/1.106, allocations: 0 / 1.341 GB, free: 4.902 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.19e-06/1.106, allocations: 0 / 1.341 GB, free: 4.902 MB / 1.061 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.0004282/1.106, allocations: 357.3 kB / 1.341 GB, free: 4.508 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/1.106, allocations: 12.03 kB / 1.341 GB, free: 4.496 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.291e-05/1.106, allocations: 4.844 kB / 1.341 GB, free: 4.492 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001248/1.107, allocations: 168.3 kB / 1.341 GB, free: 4.289 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.686e-05/1.107, allocations: 34.27 kB / 1.341 GB, free: 4.25 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.396e-05/1.107, allocations: 3.938 kB / 1.341 GB, free: 4.246 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000143/1.107, allocations: 45.67 kB / 1.341 GB, free: 4.195 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.867e-06/1.107, allocations: 0 / 1.341 GB, free: 4.195 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.194e-05/1.107, allocations: 0 / 1.341 GB, free: 4.195 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.131e-05/1.107, allocations: 4 kB / 1.341 GB, free: 4.191 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.821e-05/1.107, allocations: 15.92 kB / 1.341 GB, free: 4.176 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000819/1.108, allocations: 0.5989 MB / 1.342 GB, free: 3.453 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 3.953e-05/1.108, allocations: 18.58 kB / 1.342 GB, free: 3.426 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.403e-05/1.108, allocations: 4.859 kB / 1.342 GB, free: 3.418 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000201/1.108, allocations: 340.5 kB / 1.342 GB, free: 3.012 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.157e-05/1.108, allocations: 30.56 kB / 1.342 GB, free: 2.973 MB / 1.061 GB Notification: Performance of pre-optimization done (n=1): time 1.182e-06/1.108, allocations: 0 / 1.342 GB, free: 2.973 MB / 1.061 GB Notification: Performance of matching and sorting (n=1): time 0.0001406/1.108, allocations: 45.62 kB / 1.342 GB, free: 2.922 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.13e-05/1.108, allocations: 55.41 kB / 1.342 GB, free: 2.855 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.272e-05/1.108, allocations: 97.86 kB / 1.342 GB, free: 2.75 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.756e-05/1.108, allocations: 25.7 kB / 1.342 GB, free: 2.719 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 3.973e-05/1.108, allocations: 88.03 kB / 1.343 GB, free: 2.629 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 7.103e-06/1.108, allocations: 11.84 kB / 1.343 GB, free: 2.617 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.86e-05/1.108, allocations: 17.72 kB / 1.343 GB, free: 2.594 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 9.159e-05/1.109, allocations: 314.8 kB / 1.343 GB, free: 2.277 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.203e-05/1.109, allocations: 4.125 kB / 1.343 GB, free: 2.273 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.538e-05/1.109, allocations: 17.7 kB / 1.343 GB, free: 2.25 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.134e-05/1.109, allocations: 25.66 kB / 1.343 GB, free: 2.219 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/1.109, allocations: 0 / 1.343 GB, free: 2.219 MB / 1.061 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.055e-05/1.109, allocations: 49.62 kB / 1.343 GB, free: 2.164 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/1.109, allocations: 10.03 kB / 1.343 GB, free: 2.156 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.927e-06/1.109, allocations: 4.062 kB / 1.343 GB, free: 2.152 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/1.109, allocations: 3.938 kB / 1.343 GB, free: 2.148 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.051e-05/1.109, allocations: 4 kB / 1.343 GB, free: 2.145 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/1.109, allocations: 4 kB / 1.343 GB, free: 2.141 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.723e-05/1.109, allocations: 0 / 1.343 GB, free: 2.141 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.171e-05/1.109, allocations: 15.86 kB / 1.343 GB, free: 2.125 MB / 1.061 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.827e-05/1.109, allocations: 109.8 kB / 1.343 GB, free: 2.008 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.631e-05/1.109, allocations: 4 kB / 1.343 GB, free: 2.004 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.887e-05/1.109, allocations: 124.8 kB / 1.343 GB, free: 1.875 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.436e-05/1.109, allocations: 180.2 kB / 1.343 GB, free: 1.691 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.748e-05/1.109, allocations: 176.3 kB / 1.344 GB, free: 1.512 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.469e-05/1.109, allocations: 188.2 kB / 1.344 GB, free: 1.32 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001975/1.109, allocations: 401.2 kB / 1.344 GB, free: 0.8711 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-05/1.11, allocations: 112.9 kB / 1.344 GB, free: 0.7539 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.09e-05/1.11, allocations: 101 kB / 1.344 GB, free: 0.6484 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.283e-05/1.11, allocations: 184.3 kB / 1.345 GB, free: 472 kB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.534e-05/1.11, allocations: 184.2 kB / 1.345 GB, free: 280 kB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.264e-05/1.11, allocations: 180.3 kB / 1.345 GB, free: 92 kB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.254e-05/1.11, allocations: 180.2 kB / 1.345 GB, free: 15.91 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001215/1.11, allocations: 315.7 kB / 1.345 GB, free: 15.57 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 6.492e-05/1.11, allocations: 182.3 kB / 1.346 GB, free: 15.37 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.35e-05/1.11, allocations: 180.3 kB / 1.346 GB, free: 15.19 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001337/1.11, allocations: 112.9 kB / 1.346 GB, free: 15.07 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.849e-05/1.11, allocations: 184.5 kB / 1.346 GB, free: 14.88 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.211e-05/1.11, allocations: 105 kB / 1.346 GB, free: 14.77 MB / 1.076 GB Notification: Performance of sorting global known variables: time 3.874e-05/1.11, allocations: 83.22 kB / 1.346 GB, free: 14.69 MB / 1.076 GB Notification: Performance of sort global known variables: time 1.573e-06/1.11, allocations: 0 / 1.346 GB, free: 14.69 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0003009/1.111, allocations: 63.86 kB / 1.346 GB, free: 14.63 MB / 1.076 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.0002959/1.111, allocations: 250.4 kB / 1.346 GB, free: 14.37 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 7.633e-05/1.111, allocations: 12 kB / 1.346 GB, free: 14.36 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/1.111, allocations: 0 / 1.346 GB, free: 14.36 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 1.192e-06/1.111, allocations: 0 / 1.346 GB, free: 14.36 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000368/1.111, allocations: 460 kB / 1.347 GB, free: 13.91 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002457/1.112, allocations: 193.8 kB / 1.347 GB, free: 13.69 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002084/1.112, allocations: 0.6768 MB / 1.348 GB, free: 12.98 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 3.607e-05/1.112, allocations: 4 kB / 1.348 GB, free: 12.98 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.485e-05/1.112, allocations: 11.44 kB / 1.348 GB, free: 12.97 MB / 1.076 GB Notification: Performance of SimCode: time 2.1e-07/1.112, allocations: 0 / 1.348 GB, free: 12.97 MB / 1.076 GB Notification: Performance of Templates: time 0.003415/1.115, allocations: 1.289 MB / 1.349 GB, free: 11.69 MB / 1.076 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches