Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_9_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.01219/0.01219, allocations: 97.88 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.00196/0.001959, allocations: 192.6 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.391/1.391, allocations: 222.9 MB / 240.4 MB, free: 15.09 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.339/2.339, allocations: 390.2 MB / 0.6648 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 63.91 kB / 0.9508 GB, free: 7.66 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.996/0.9974, allocations: 140.4 MB / 1.088 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.005482/1.003, allocations: 4.014 MB / 1.092 GB, free: 2.613 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0002279/1.003, allocations: 158 kB / 1.092 GB, free: 2.504 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.997e-05/1.003, allocations: 0 / 1.092 GB, free: 2.504 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001261/1.003, allocations: 6.266 kB / 1.092 GB, free: 2.5 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.948e-05/1.004, allocations: 8.969 kB / 1.092 GB, free: 2.496 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003791/1.004, allocations: 83.25 kB / 1.092 GB, free: 2.453 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001148/1.004, allocations: 37.38 kB / 1.092 GB, free: 2.438 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.458e-05/1.004, allocations: 3 kB / 1.092 GB, free: 2.438 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.772e-05/1.004, allocations: 15.69 kB / 1.092 GB, free: 2.434 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.964e-05/1.004, allocations: 11.39 kB / 1.092 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.495e-05/1.004, allocations: 5.219 kB / 1.092 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002172/1.004, allocations: 61.42 kB / 1.092 GB, free: 2.398 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.544e-05/1.005, allocations: 12.27 kB / 1.092 GB, free: 2.391 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.771e-05/1.005, allocations: 14.27 kB / 1.092 GB, free: 2.383 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001646/1.005, allocations: 41.19 kB / 1.092 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/1.005, allocations: 0.75 kB / 1.092 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.225e-06/1.005, allocations: 0 / 1.092 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.39e-06/1.005, allocations: 0.6875 kB / 1.092 GB, free: 2.375 MB / 0.8575 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.0003984/1.005, allocations: 330.5 kB / 1.093 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/1.005, allocations: 8.969 kB / 1.093 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.425e-05/1.005, allocations: 11.22 kB / 1.093 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.274e-05/1.005, allocations: 165.7 kB / 1.093 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.695e-05/1.005, allocations: 28.28 kB / 1.093 GB, free: 1.785 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.152e-05/1.005, allocations: 5.812 kB / 1.093 GB, free: 1.781 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001286/1.006, allocations: 43.95 kB / 1.093 GB, free: 1.746 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.919e-06/1.006, allocations: 0 / 1.093 GB, free: 1.746 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.52e-05/1.006, allocations: 0.5625 kB / 1.093 GB, free: 1.746 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.067e-05/1.006, allocations: 1.562 kB / 1.093 GB, free: 1.746 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.803e-05/1.006, allocations: 21.11 kB / 1.093 GB, free: 1.738 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004085/1.006, allocations: 336 kB / 1.093 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 3.493e-05/1.006, allocations: 18.09 kB / 1.093 GB, free: 1.344 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.285e-05/1.006, allocations: 9.703 kB / 1.093 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 6.496e-05/1.006, allocations: 84.11 kB / 1.093 GB, free: 1.238 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.69e-05/1.006, allocations: 36.84 kB / 1.093 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/1.006, allocations: 0 / 1.093 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of matching and sorting (n=1): time 0.0001388/1.006, allocations: 41.78 kB / 1.093 GB, free: 1.156 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.804e-05/1.006, allocations: 51.41 kB / 1.093 GB, free: 1.094 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.351e-05/1.007, allocations: 106.7 kB / 1.093 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 8.546e-06/1.007, allocations: 26.48 kB / 1.094 GB, free: 0.957 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.948e-05/1.007, allocations: 86.73 kB / 1.094 GB, free: 0.8711 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.3e-06/1.007, allocations: 4.828 kB / 1.094 GB, free: 0.8672 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.875e-05/1.007, allocations: 18.92 kB / 1.094 GB, free: 0.8477 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.371e-05/1.007, allocations: 321.1 kB / 1.094 GB, free: 0.5273 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.633e-05/1.007, allocations: 3.047 kB / 1.094 GB, free: 0.5273 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.005e-05/1.007, allocations: 18.89 kB / 1.094 GB, free: 0.5078 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.215e-05/1.007, allocations: 21.64 kB / 1.094 GB, free: 500 kB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/1.007, allocations: 0 / 1.094 GB, free: 500 kB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.931e-05/1.007, allocations: 51.17 kB / 1.094 GB, free: 460 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.293e-05/1.007, allocations: 8.562 kB / 1.094 GB, free: 456 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/1.007, allocations: 1 kB / 1.094 GB, free: 456 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/1.007, allocations: 1.734 kB / 1.094 GB, free: 456 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.487e-05/1.007, allocations: 4.797 kB / 1.094 GB, free: 456 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/1.007, allocations: 4.875 kB / 1.094 GB, free: 452 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.903e-05/1.007, allocations: 1.828 kB / 1.094 GB, free: 452 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.028e-05/1.007, allocations: 6 kB / 1.094 GB, free: 448 kB / 0.8575 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 5.285e-05/1.007, allocations: 120.4 kB / 1.094 GB, free: 320 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.776e-05/1.007, allocations: 5.75 kB / 1.094 GB, free: 316 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.302e-05/1.007, allocations: 122.1 kB / 1.094 GB, free: 184 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.319e-05/1.007, allocations: 177.8 kB / 1.094 GB, free: 0 / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.852e-05/1.007, allocations: 182.2 kB / 1.095 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.113e-05/1.007, allocations: 186.6 kB / 1.095 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002249/1.008, allocations: 408.2 kB / 1.095 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.612e-05/1.008, allocations: 110.7 kB / 1.095 GB, free: 15.06 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.015e-05/1.008, allocations: 106.7 kB / 1.095 GB, free: 14.95 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.328e-05/1.008, allocations: 177.2 kB / 1.096 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.018e-05/1.008, allocations: 182 kB / 1.096 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.756e-05/1.008, allocations: 178 kB / 1.096 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.925e-05/1.008, allocations: 186 kB / 1.096 GB, free: 14.22 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001559/1.008, allocations: 305.9 kB / 1.096 GB, free: 13.91 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 8.653e-05/1.008, allocations: 184.6 kB / 1.097 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.243e-05/1.008, allocations: 178.5 kB / 1.097 GB, free: 13.52 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000169/1.008, allocations: 109.6 kB / 1.097 GB, free: 13.41 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.169e-05/1.009, allocations: 185.9 kB / 1.097 GB, free: 13.23 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.853e-05/1.009, allocations: 102.8 kB / 1.097 GB, free: 13.12 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 4.801e-05/1.009, allocations: 86.25 kB / 1.097 GB, free: 13.04 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/1.009, allocations: 0 / 1.097 GB, free: 13.04 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0002471/1.009, allocations: 13.14 kB / 1.097 GB, free: 13.04 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.0002632/1.009, allocations: 211.2 kB / 1.097 GB, free: 12.86 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 7.76e-05/1.009, allocations: 7.172 kB / 1.097 GB, free: 12.86 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/1.009, allocations: 0.8438 kB / 1.097 GB, free: 12.86 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 2.494e-06/1.009, allocations: 0.6562 kB / 1.097 GB, free: 12.86 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004367/1.01, allocations: 460.5 kB / 1.098 GB, free: 12.41 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002595/1.01, allocations: 187.5 kB / 1.098 GB, free: 12.23 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002396/1.01, allocations: 0.6745 MB / 1.099 GB, free: 11.54 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 4.117e-05/1.01, allocations: 9.438 kB / 1.099 GB, free: 11.53 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.715e-05/1.01, allocations: 9.312 kB / 1.099 GB, free: 11.52 MB / 0.8731 GB Notification: Performance of SimCode: time 2.81e-07/1.01, allocations: 0 / 1.099 GB, free: 11.52 MB / 0.8731 GB Notification: Performance of Templates: time 0.002862/1.013, allocations: 0.6435 MB / 1.099 GB, free: 11.42 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.makefile (rm -f Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & ./Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches