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.0009985/0.0009984, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.00583/0.00583, allocations: 170.4 kB / 16.27 MB, free: 6.32 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.403/1.403, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.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.418/2.418, allocations: 390.9 MB / 0.6663 GB, free: 2.344 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003497/0.0003497, allocations: 8 kB / 0.8159 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6643/0.6647, allocations: 142.4 MB / 0.955 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.00405/0.6688, allocations: 3.696 MB / 0.9586 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0001684/0.669, allocations: 153.2 kB / 0.9588 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.633e-05/0.669, allocations: 1.656 kB / 0.9588 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.768e-05/0.6691, allocations: 11.94 kB / 0.9588 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.24e-05/0.6692, allocations: 9.875 kB / 0.9588 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003053/0.6695, allocations: 75.92 kB / 0.9589 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.986e-05/0.6696, allocations: 57.61 kB / 0.9589 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.387e-05/0.6697, allocations: 5.547 kB / 0.9589 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.033e-05/0.6697, allocations: 17.08 kB / 0.9589 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.802e-05/0.6698, allocations: 18.02 kB / 0.959 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.172e-05/0.6698, allocations: 1.406 kB / 0.959 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002148/0.6701, allocations: 69.72 kB / 0.959 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.573e-05/0.6701, allocations: 11.55 kB / 0.959 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.29e-05/0.6701, allocations: 34.14 kB / 0.9591 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001352/0.6703, allocations: 48.14 kB / 0.9591 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.6703, allocations: 0 / 0.9591 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.774e-06/0.6703, allocations: 1.219 kB / 0.9591 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.717e-06/0.6703, allocations: 0 / 0.9591 GB, free: 4.246 MB / 0.7169 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.0002993/0.6706, allocations: 341.3 kB / 0.9594 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.6707, allocations: 10.28 kB / 0.9595 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.567e-05/0.6707, allocations: 2.438 kB / 0.9595 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.299e-05/0.6708, allocations: 164.4 kB / 0.9596 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.839e-05/0.6709, allocations: 27.77 kB / 0.9596 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.188e-05/0.6709, allocations: 1.75 kB / 0.9596 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001226/0.671, allocations: 47.59 kB / 0.9597 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.671, allocations: 3.938 kB / 0.9597 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.263e-05/0.671, allocations: 0 / 0.9597 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.026e-05/0.6711, allocations: 5.969 kB / 0.9597 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.658e-05/0.6711, allocations: 17.06 kB / 0.9597 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003807/0.6715, allocations: 336.4 kB / 0.96 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.517e-05/0.6716, allocations: 18.17 kB / 0.9601 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.333e-05/0.6716, allocations: 4.859 kB / 0.9601 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 7.493e-05/0.6717, allocations: 90.5 kB / 0.9601 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.885e-05/0.6717, allocations: 40.28 kB / 0.9602 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 1.172e-06/0.6717, allocations: 0 / 0.9602 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0001435/0.6718, allocations: 34.98 kB / 0.9602 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.892e-05/0.6719, allocations: 53.16 kB / 0.9603 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.22e-05/0.6719, allocations: 103.2 kB / 0.9604 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.071e-05/0.672, allocations: 25.7 kB / 0.9604 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.204e-05/0.672, allocations: 85.86 kB / 0.9605 GB, free: 2.703 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.99e-06/0.672, allocations: 8.062 kB / 0.9605 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.146e-05/0.672, allocations: 15.72 kB / 0.9605 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.623e-05/0.6721, allocations: 318.8 kB / 0.9608 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.294e-05/0.6721, allocations: 4.469 kB / 0.9608 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.003e-05/0.6721, allocations: 20.81 kB / 0.9608 GB, free: 2.332 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.828e-05/0.6722, allocations: 15.06 kB / 0.9608 GB, free: 2.316 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.6722, allocations: 5.344 kB / 0.9608 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.119e-05/0.6722, allocations: 50.38 kB / 0.9609 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.6723, allocations: 6.156 kB / 0.9609 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.251e-06/0.6723, allocations: 1.375 kB / 0.9609 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.295e-05/0.6723, allocations: 1.375 kB / 0.9609 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.381e-05/0.6723, allocations: 8.109 kB / 0.9609 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.6724, allocations: 1.375 kB / 0.9609 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.948e-05/0.6724, allocations: 7.875 kB / 0.9609 GB, free: 2.258 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.618e-06/0.6724, allocations: 2.75 kB / 0.9609 GB, free: 2.258 MB / 0.7169 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.428e-05/0.6725, allocations: 119.2 kB / 0.961 GB, free: 2.133 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.687e-05/0.6725, allocations: 5.281 kB / 0.961 GB, free: 2.129 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.569e-05/0.6726, allocations: 119.6 kB / 0.9611 GB, free: 2 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.291e-05/0.6726, allocations: 177.6 kB / 0.9613 GB, free: 1.82 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.442e-05/0.6726, allocations: 181.6 kB / 0.9615 GB, free: 1.637 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.831e-05/0.6727, allocations: 185.6 kB / 0.9617 GB, free: 1.449 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001343/0.6728, allocations: 407.9 kB / 0.9621 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.867e-05/0.6728, allocations: 110.3 kB / 0.9622 GB, free: 0.8828 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.615e-05/0.6729, allocations: 109 kB / 0.9623 GB, free: 0.7695 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.542e-05/0.6729, allocations: 181.6 kB / 0.9624 GB, free: 0.5859 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.589e-05/0.6729, allocations: 177.6 kB / 0.9626 GB, free: 416 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.496e-05/0.673, allocations: 180.3 kB / 0.9628 GB, free: 228 kB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.279e-05/0.673, allocations: 181.6 kB / 0.963 GB, free: 40 kB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001536/0.6731, allocations: 311.8 kB / 0.9633 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 7.933e-05/0.6732, allocations: 180.8 kB / 0.9634 GB, free: 15.52 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.875e-05/0.6733, allocations: 185.6 kB / 0.9636 GB, free: 15.33 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001579/0.6735, allocations: 111.7 kB / 0.9637 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.112e-05/0.6736, allocations: 177.6 kB / 0.9639 GB, free: 15.04 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.922e-05/0.6736, allocations: 106.3 kB / 0.964 GB, free: 14.93 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.924e-05/0.6737, allocations: 83.39 kB / 0.9641 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6737, allocations: 1.375 kB / 0.9641 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002537/0.6739, allocations: 15 kB / 0.9641 GB, free: 14.84 MB / 0.7325 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.0002564/0.6742, allocations: 206.1 kB / 0.9643 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 6.984e-05/0.6743, allocations: 6.875 kB / 0.9643 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.6743, allocations: 0 / 0.9643 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 2.474e-06/0.6743, allocations: 1.375 kB / 0.9643 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004429/0.6747, allocations: 0.5329 MB / 0.9648 GB, free: 14.12 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002727/0.675, allocations: 185.7 kB / 0.965 GB, free: 13.93 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002357/0.6753, allocations: 0.681 MB / 0.9656 GB, free: 13.23 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 4.743e-05/0.6753, allocations: 8.125 kB / 0.9656 GB, free: 13.23 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.806e-05/0.6753, allocations: 8.812 kB / 0.9657 GB, free: 13.22 MB / 0.7325 GB Notification: Performance of SimCode: time 3.21e-07/0.6754, allocations: 0 / 0.9657 GB, free: 13.22 MB / 0.7325 GB Notification: Performance of Templates: time 0.003012/0.6784, allocations: 0.6157 MB / 0.9663 GB, free: 12.89 MB / 0.7325 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