Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.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.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007717/0.0007718, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.0053/0.005301, allocations: 170 kB / 16.26 MB, free: 6.613 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.527/1.527, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.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.781/2.781, allocations: 437.8 MB / 0.7121 GB, free: 6.918 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003378/0.0003378, allocations: 12 kB / 0.8728 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7947/0.7951, allocations: 153.8 MB / 1.023 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.005022/0.8002, allocations: 3.687 MB / 1.027 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0002054/0.8004, allocations: 147.6 kB / 1.027 GB, free: 12 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.55e-05/0.8004, allocations: 0 / 1.027 GB, free: 12 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001098/0.8006, allocations: 11.94 kB / 1.027 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 8.389e-05/0.8007, allocations: 11.97 kB / 1.027 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003191/0.801, allocations: 79.69 kB / 1.027 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 9.68e-05/0.8011, allocations: 55.83 kB / 1.027 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.508e-05/0.8011, allocations: 4 kB / 1.027 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 4.391e-05/0.8012, allocations: 15.97 kB / 1.027 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.954e-05/0.8013, allocations: 8 kB / 1.027 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.39e-05/0.8013, allocations: 8 kB / 1.027 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002287/0.8015, allocations: 83.7 kB / 1.027 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 4.252e-05/0.8016, allocations: 4 kB / 1.027 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.471e-05/0.8016, allocations: 33.69 kB / 1.027 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001509/0.8018, allocations: 47.83 kB / 1.027 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.8018, allocations: 0 / 1.027 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.803e-06/0.8018, allocations: 4 kB / 1.027 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.958e-06/0.8018, allocations: 0 / 1.027 GB, free: 11.64 MB / 0.7794 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.0004048/0.8022, allocations: 329.5 kB / 1.027 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.8023, allocations: 12.03 kB / 1.027 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.765e-05/0.8023, allocations: 0.9375 kB / 1.027 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001282/0.8025, allocations: 164.4 kB / 1.028 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.044e-05/0.8025, allocations: 26.27 kB / 1.028 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.748e-06/0.8025, allocations: 384 / 1.028 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001286/0.8027, allocations: 49.62 kB / 1.028 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.635e-06/0.8027, allocations: 0 / 1.028 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.253e-05/0.8027, allocations: 7.875 kB / 1.028 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.969e-05/0.8027, allocations: 3.984 kB / 1.028 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.822e-05/0.8028, allocations: 16 kB / 1.028 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004273/0.8032, allocations: 333.9 kB / 1.028 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 3.636e-05/0.8033, allocations: 18.58 kB / 1.028 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.669e-05/0.8033, allocations: 12.84 kB / 1.028 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 8.738e-05/0.8034, allocations: 85.16 kB / 1.028 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.689e-05/0.8034, allocations: 42.5 kB / 1.028 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=1): time 2.345e-06/0.8034, allocations: 3.984 kB / 1.028 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1): time 0.0001372/0.8036, allocations: 33.69 kB / 1.028 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.926e-05/0.8036, allocations: 51.41 kB / 1.028 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.227e-05/0.8037, allocations: 101.9 kB / 1.028 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.751e-05/0.8037, allocations: 25.7 kB / 1.028 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.942e-05/0.8038, allocations: 91.97 kB / 1.028 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.232e-06/0.8038, allocations: 4 kB / 1.028 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.257e-05/0.8038, allocations: 17.84 kB / 1.028 GB, free: 9.988 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001001/0.8039, allocations: 314.8 kB / 1.029 GB, free: 9.672 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.408e-05/0.804, allocations: 4 kB / 1.029 GB, free: 9.668 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.461e-05/0.804, allocations: 25.64 kB / 1.029 GB, free: 9.637 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.023e-05/0.804, allocations: 13.72 kB / 1.029 GB, free: 9.617 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.804, allocations: 0 / 1.029 GB, free: 9.617 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.47e-05/0.8041, allocations: 57.62 kB / 1.029 GB, free: 9.555 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.8041, allocations: 4 kB / 1.029 GB, free: 9.551 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.417e-06/0.8041, allocations: 0 / 1.029 GB, free: 9.551 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.043e-05/0.8041, allocations: 0 / 1.029 GB, free: 9.551 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.254e-05/0.8042, allocations: 4 kB / 1.029 GB, free: 9.547 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.8042, allocations: 4 kB / 1.029 GB, free: 9.543 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.967e-05/0.8042, allocations: 7.844 kB / 1.029 GB, free: 9.535 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.035e-06/0.8042, allocations: 0 / 1.029 GB, free: 9.535 MB / 0.7794 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 8.653e-05/0.8043, allocations: 121.8 kB / 1.029 GB, free: 9.406 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.345e-05/0.8044, allocations: 4 kB / 1.029 GB, free: 9.402 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001103/0.8045, allocations: 116.9 kB / 1.029 GB, free: 9.273 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.938e-05/0.8045, allocations: 176.3 kB / 1.029 GB, free: 9.094 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.611e-05/0.8046, allocations: 192.2 kB / 1.029 GB, free: 8.898 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001204/0.8048, allocations: 176.3 kB / 1.03 GB, free: 8.719 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002917/0.8051, allocations: 409.2 kB / 1.03 GB, free: 8.262 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.453e-05/0.8051, allocations: 104.9 kB / 1.03 GB, free: 8.152 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.493e-05/0.8052, allocations: 105 kB / 1.03 GB, free: 8.043 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001177/0.8053, allocations: 184.2 kB / 1.03 GB, free: 7.855 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.689e-05/0.8054, allocations: 184.3 kB / 1.031 GB, free: 7.668 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001291/0.8055, allocations: 184.2 kB / 1.031 GB, free: 7.48 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.642e-05/0.8056, allocations: 180.2 kB / 1.031 GB, free: 7.297 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002185/0.8058, allocations: 311.6 kB / 1.031 GB, free: 6.969 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.802e-05/0.8059, allocations: 186.1 kB / 1.031 GB, free: 6.762 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.2e-05/0.806, allocations: 176.3 kB / 1.032 GB, free: 6.582 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001643/0.8062, allocations: 116.9 kB / 1.032 GB, free: 6.461 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.139e-05/0.8062, allocations: 180.2 kB / 1.032 GB, free: 6.277 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.506e-05/0.8063, allocations: 104.9 kB / 1.032 GB, free: 6.168 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.517e-05/0.8063, allocations: 83.28 kB / 1.032 GB, free: 6.086 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8063, allocations: 3.938 kB / 1.032 GB, free: 6.082 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002836/0.8066, allocations: 20 kB / 1.032 GB, free: 6.062 MB / 0.7794 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.0002559/0.8069, allocations: 202.4 kB / 1.032 GB, free: 5.855 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 6.838e-05/0.807, allocations: 12.3 kB / 1.032 GB, free: 5.844 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.807, allocations: 0 / 1.032 GB, free: 5.844 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.342e-06/0.807, allocations: 0 / 1.032 GB, free: 5.844 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004797/0.8075, allocations: 0.5326 MB / 1.033 GB, free: 5.309 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002738/0.8077, allocations: 187.8 kB / 1.033 GB, free: 5.094 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002545/0.808, allocations: 0.6731 MB / 1.034 GB, free: 4.395 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.248e-05/0.8081, allocations: 11.84 kB / 1.034 GB, free: 4.383 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.786e-05/0.8081, allocations: 11.44 kB / 1.034 GB, free: 4.371 MB / 0.7794 GB Notification: Performance of SimCode: time 2.21e-07/0.8081, allocations: 0 / 1.034 GB, free: 4.371 MB / 0.7794 GB Notification: Performance of Templates: time 0.002953/0.8111, allocations: 0.6041 MB / 1.034 GB, free: 3.77 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.makefile (rm -f Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & ./Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches