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.001522/0.001522, allocations: 105.8 kB / 16.41 MB, free: 6.488 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.00184/0.00184, allocations: 185.6 kB / 17.34 MB, free: 5.766 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.373/1.373, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.64/2.64, allocations: 461.9 MB / 0.7354 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001392, allocations: 64.06 kB / 1.055 GB, free: 7.734 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7529/0.7543, allocations: 157.4 MB / 1.208 GB, free: 13.65 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamTemperatureEnthalpyInversion): time 0.1477/0.9021, allocations: 135.4 MB / 1.341 GB, free: 5.734 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0001773/0.9023, allocations: 63.8 kB / 1.341 GB, free: 5.672 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.714e-05/0.9023, allocations: 0 / 1.341 GB, free: 5.672 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001103/0.9024, allocations: 3.984 kB / 1.341 GB, free: 5.668 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 7.681e-05/0.9025, allocations: 15.92 kB / 1.341 GB, free: 5.652 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008411/0.9034, allocations: 231 kB / 1.341 GB, free: 5.426 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 8.728e-05/0.9035, allocations: 35.84 kB / 1.341 GB, free: 5.391 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 4.13e-05/0.9035, allocations: 4 kB / 1.341 GB, free: 5.387 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 3.933e-05/0.9036, allocations: 15.81 kB / 1.341 GB, free: 5.375 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 7.352e-05/0.9037, allocations: 15.98 kB / 1.341 GB, free: 5.359 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.336e-05/0.9037, allocations: 0 / 1.341 GB, free: 5.359 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004939/0.9042, allocations: 243.4 kB / 1.341 GB, free: 5.121 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 4.729e-05/0.9042, allocations: 7.984 kB / 1.341 GB, free: 5.113 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 2.632e-05/0.9043, allocations: 11.94 kB / 1.341 GB, free: 5.102 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003954/0.9047, allocations: 191.5 kB / 1.341 GB, free: 4.918 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.9047, allocations: 0 / 1.341 GB, free: 4.918 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.906e-06/0.9047, allocations: 4 kB / 1.341 GB, free: 4.914 MB / 1.061 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.9047, allocations: 0 / 1.341 GB, free: 4.914 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.0004325/0.9051, allocations: 357.3 kB / 1.342 GB, free: 4.52 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/0.9052, allocations: 8.031 kB / 1.342 GB, free: 4.512 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.254e-05/0.9052, allocations: 4.844 kB / 1.342 GB, free: 4.508 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001231/0.9054, allocations: 164.4 kB / 1.342 GB, free: 4.309 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.168e-05/0.9054, allocations: 30.25 kB / 1.342 GB, free: 4.273 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.261e-05/0.9055, allocations: 7.938 kB / 1.342 GB, free: 4.266 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001282/0.9056, allocations: 41.69 kB / 1.342 GB, free: 4.219 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.9056, allocations: 7.938 kB / 1.342 GB, free: 4.211 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.094e-05/0.9056, allocations: 0 / 1.342 GB, free: 4.211 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.837e-05/0.9056, allocations: 0 / 1.342 GB, free: 4.211 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.869e-05/0.9057, allocations: 15.92 kB / 1.342 GB, free: 4.195 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008055/0.9065, allocations: 0.6028 MB / 1.343 GB, free: 3.469 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 3.32e-05/0.9066, allocations: 14.58 kB / 1.343 GB, free: 3.445 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.504e-05/0.9066, allocations: 4.859 kB / 1.343 GB, free: 3.438 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002188/0.9068, allocations: 340.5 kB / 1.343 GB, free: 3.031 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.468e-05/0.9068, allocations: 30.56 kB / 1.343 GB, free: 2.992 MB / 1.061 GB Notification: Performance of pre-optimization done (n=1): time 2.936e-06/0.9068, allocations: 0 / 1.343 GB, free: 2.992 MB / 1.061 GB Notification: Performance of matching and sorting (n=1): time 0.0001534/0.907, allocations: 49.66 kB / 1.343 GB, free: 2.938 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.062e-05/0.9071, allocations: 55.44 kB / 1.343 GB, free: 2.871 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.025e-05/0.9071, allocations: 101.8 kB / 1.343 GB, free: 2.762 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.667e-05/0.9072, allocations: 29.7 kB / 1.343 GB, free: 2.727 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 5.469e-05/0.9072, allocations: 88.03 kB / 1.343 GB, free: 2.637 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.005e-05/0.9072, allocations: 7.844 kB / 1.343 GB, free: 2.629 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.066e-05/0.9073, allocations: 13.72 kB / 1.343 GB, free: 2.609 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001047/0.9074, allocations: 318.8 kB / 1.344 GB, free: 2.289 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.838e-05/0.9074, allocations: 8 kB / 1.344 GB, free: 2.281 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.499e-05/0.9074, allocations: 17.7 kB / 1.344 GB, free: 2.258 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.397e-05/0.9075, allocations: 21.66 kB / 1.344 GB, free: 2.23 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.9075, allocations: 0 / 1.344 GB, free: 2.23 MB / 1.061 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.237e-05/0.9076, allocations: 53.62 kB / 1.344 GB, free: 2.172 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.088e-05/0.9076, allocations: 6.031 kB / 1.344 GB, free: 2.168 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.9076, allocations: 4.062 kB / 1.344 GB, free: 2.164 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.249e-05/0.9076, allocations: 0 / 1.344 GB, free: 2.164 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.451e-05/0.9077, allocations: 8 kB / 1.344 GB, free: 2.156 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.139e-06/0.9077, allocations: 0 / 1.344 GB, free: 2.156 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.83e-05/0.9077, allocations: 0 / 1.344 GB, free: 2.156 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.414e-05/0.9077, allocations: 11.92 kB / 1.344 GB, free: 2.145 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.771e-05/0.9078, allocations: 105.8 kB / 1.344 GB, free: 2.031 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.738e-05/0.9078, allocations: 0 / 1.344 GB, free: 2.031 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001203/0.908, allocations: 124.9 kB / 1.344 GB, free: 1.902 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.658e-05/0.908, allocations: 184.2 kB / 1.344 GB, free: 1.715 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.314e-05/0.9081, allocations: 176.3 kB / 1.344 GB, free: 1.535 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.865e-05/0.9082, allocations: 180.2 kB / 1.344 GB, free: 1.352 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002259/0.9084, allocations: 413.2 kB / 1.345 GB, free: 0.8906 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.67e-05/0.9084, allocations: 108.9 kB / 1.345 GB, free: 0.7773 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.252e-05/0.9085, allocations: 101 kB / 1.345 GB, free: 0.6719 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.93e-05/0.9086, allocations: 184.3 kB / 1.345 GB, free: 496 kB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.756e-05/0.9086, allocations: 188.2 kB / 1.345 GB, free: 300 kB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.1e-05/0.9087, allocations: 176.3 kB / 1.346 GB, free: 116 kB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.412e-05/0.9088, allocations: 184.1 kB / 1.346 GB, free: 15.93 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001387/0.9089, allocations: 311.7 kB / 1.346 GB, free: 15.6 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 9.046e-05/0.909, allocations: 190.2 kB / 1.346 GB, free: 15.39 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.618e-05/0.9091, allocations: 176.3 kB / 1.346 GB, free: 15.21 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001409/0.9093, allocations: 116.9 kB / 1.347 GB, free: 15.09 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.332e-05/0.9093, allocations: 184.2 kB / 1.347 GB, free: 14.9 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.667e-05/0.9094, allocations: 101 kB / 1.347 GB, free: 14.79 MB / 1.076 GB Notification: Performance of sorting global known variables: time 4.676e-05/0.9094, allocations: 87.22 kB / 1.347 GB, free: 14.71 MB / 1.076 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9094, allocations: 7.938 kB / 1.347 GB, free: 14.7 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0003087/0.9097, allocations: 59.92 kB / 1.347 GB, free: 14.64 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.0003188/0.9101, allocations: 250.3 kB / 1.347 GB, free: 14.38 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 6.764e-05/0.9102, allocations: 8 kB / 1.347 GB, free: 14.38 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.9102, allocations: 0 / 1.347 GB, free: 14.38 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 1.593e-06/0.9102, allocations: 4 kB / 1.347 GB, free: 14.37 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003867/0.9106, allocations: 455.8 kB / 1.348 GB, free: 13.92 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000276/0.9108, allocations: 215.5 kB / 1.348 GB, free: 13.68 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002441/0.9111, allocations: 0.6768 MB / 1.348 GB, free: 12.97 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.301e-05/0.9111, allocations: 7.438 kB / 1.348 GB, free: 12.97 MB / 1.076 GB Notification: Performance of SimCode: time 2.31e-07/0.9111, allocations: 0 / 1.348 GB, free: 12.97 MB / 1.076 GB Notification: Performance of Templates: time 0.002844/0.914, allocations: 1.233 MB / 1.35 GB, free: 11.74 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches