Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.256/2.256, allocations: 390.3 MB / 402.8 MB, free: 6.684 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001194/0.001194, allocations: 180.7 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.637/1.637, allocations: 221.3 MB / 0.7915 GB, free: 5.402 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000992/0.0009921, allocations: 90.67 kB / 0.9317 GB, free: 5.723 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.783e-05/3.807e-05, allocations: 0 / 1.079 GB, free: 140.6 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3728/0.3729, allocations: 143 MB / 1.219 GB, free: 13.54 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.344/1.717, allocations: 389.9 MB / 1.599 GB, free: 12.41 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002115/1.717, allocations: 71.64 kB / 1.6 GB, free: 12.38 MB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 0.02884/1.746, allocations: 13.27 MB / 1.613 GB, free: 15.24 MB / 1.073 GB Notification: Performance of FrontEnd: time 3.146e-06/1.746, allocations: 0 / 1.613 GB, free: 15.24 MB / 1.073 GB Notification: Performance of Transformations before backend: time 1.355e-05/1.746, allocations: 0 / 1.613 GB, free: 15.24 MB / 1.073 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.0004775/1.746, allocations: 326.5 kB / 1.613 GB, free: 14.88 MB / 1.073 GB Notification: Performance of prepare preOptimizeDAE: time 7.488e-05/1.746, allocations: 12.03 kB / 1.613 GB, free: 14.87 MB / 1.073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.929e-05/1.746, allocations: 3.953 kB / 1.613 GB, free: 14.86 MB / 1.073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001886/1.747, allocations: 159.1 kB / 1.613 GB, free: 14.67 MB / 1.073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.486e-05/1.747, allocations: 29.7 kB / 1.613 GB, free: 14.63 MB / 1.073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.418e-05/1.747, allocations: 4 kB / 1.613 GB, free: 14.63 MB / 1.073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001946/1.747, allocations: 41.62 kB / 1.613 GB, free: 14.58 MB / 1.073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/1.747, allocations: 0 / 1.613 GB, free: 14.58 MB / 1.073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.783e-05/1.747, allocations: 0 / 1.613 GB, free: 14.58 MB / 1.073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.139e-05/1.747, allocations: 4 kB / 1.613 GB, free: 14.58 MB / 1.073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.399e-05/1.747, allocations: 23.94 kB / 1.613 GB, free: 14.55 MB / 1.073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006591/1.748, allocations: 338.6 kB / 1.613 GB, free: 14.16 MB / 1.073 GB Notification: Performance of preOpt comSubExp (simulation): time 6.005e-05/1.748, allocations: 14.58 kB / 1.613 GB, free: 14.13 MB / 1.073 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.071e-05/1.748, allocations: 12.86 kB / 1.613 GB, free: 14.12 MB / 1.073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000113/1.748, allocations: 81.11 kB / 1.614 GB, free: 14.02 MB / 1.073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.471e-05/1.748, allocations: 34.56 kB / 1.614 GB, free: 13.98 MB / 1.073 GB Notification: Performance of pre-optimization done (n=1): time 3.346e-06/1.748, allocations: 3.984 kB / 1.614 GB, free: 13.97 MB / 1.073 GB Notification: Performance of matching and sorting (n=1): time 0.0002261/1.748, allocations: 49.55 kB / 1.614 GB, free: 13.92 MB / 1.073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.817e-05/1.748, allocations: 51.41 kB / 1.614 GB, free: 13.86 MB / 1.073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000115/1.748, allocations: 89 kB / 1.614 GB, free: 13.76 MB / 1.073 GB Notification: Performance of collectPreVariables (initialization): time 2.624e-05/1.749, allocations: 25.7 kB / 1.614 GB, free: 13.73 MB / 1.073 GB Notification: Performance of collectInitialEqns (initialization): time 8.943e-05/1.749, allocations: 96.03 kB / 1.614 GB, free: 13.63 MB / 1.073 GB Notification: Performance of collectInitialBindings (initialization): time 8.166e-06/1.749, allocations: 7.875 kB / 1.614 GB, free: 13.62 MB / 1.073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.185e-06/1.749, allocations: 4.031 kB / 1.614 GB, free: 13.62 MB / 1.073 GB Notification: Performance of setup shared object (initialization): time 0.0001907/1.749, allocations: 310.8 kB / 1.614 GB, free: 13.31 MB / 1.073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.71e-05/1.749, allocations: 4 kB / 1.614 GB, free: 13.3 MB / 1.073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.544e-05/1.749, allocations: 21.66 kB / 1.614 GB, free: 13.28 MB / 1.073 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.701e-05/1.749, allocations: 7.984 kB / 1.614 GB, free: 13.27 MB / 1.073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/1.749, allocations: 0 / 1.614 GB, free: 13.27 MB / 1.073 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.047e-05/1.749, allocations: 45.7 kB / 1.614 GB, free: 13.22 MB / 1.073 GB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/1.749, allocations: 8 kB / 1.614 GB, free: 13.21 MB / 1.073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/1.749, allocations: 0 / 1.614 GB, free: 13.21 MB / 1.073 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.413e-05/1.749, allocations: 3.984 kB / 1.614 GB, free: 13.21 MB / 1.073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.906e-05/1.749, allocations: 11.89 kB / 1.614 GB, free: 13.2 MB / 1.073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.532e-05/1.749, allocations: 3.984 kB / 1.614 GB, free: 13.19 MB / 1.073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.088e-05/1.749, allocations: 4 kB / 1.614 GB, free: 13.19 MB / 1.073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.176e-05/1.749, allocations: 0 / 1.614 GB, free: 13.19 MB / 1.073 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.092e-05/1.749, allocations: 101 kB / 1.614 GB, free: 13.08 MB / 1.073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.638e-05/1.749, allocations: 11.97 kB / 1.614 GB, free: 13.07 MB / 1.073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001716/1.75, allocations: 121 kB / 1.614 GB, free: 12.94 MB / 1.073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.688e-05/1.75, allocations: 180.2 kB / 1.615 GB, free: 12.76 MB / 1.073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.787e-05/1.75, allocations: 180.2 kB / 1.615 GB, free: 12.57 MB / 1.073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001027/1.75, allocations: 180.2 kB / 1.615 GB, free: 12.39 MB / 1.073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003055/1.75, allocations: 409.2 kB / 1.615 GB, free: 11.93 MB / 1.073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.942e-05/1.75, allocations: 101 kB / 1.615 GB, free: 11.83 MB / 1.073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.731e-05/1.75, allocations: 112.9 kB / 1.616 GB, free: 11.71 MB / 1.073 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.406e-05/1.75, allocations: 176.3 kB / 1.616 GB, free: 11.53 MB / 1.073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.909e-05/1.75, allocations: 180.3 kB / 1.616 GB, free: 11.35 MB / 1.073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.994e-05/1.751, allocations: 184.3 kB / 1.616 GB, free: 11.16 MB / 1.073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.875e-05/1.751, allocations: 188.2 kB / 1.616 GB, free: 10.97 MB / 1.073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001814/1.751, allocations: 303.8 kB / 1.617 GB, free: 10.65 MB / 1.073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001044/1.751, allocations: 186 kB / 1.617 GB, free: 10.44 MB / 1.073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001094/1.751, allocations: 180.2 kB / 1.617 GB, free: 10.26 MB / 1.073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001428/1.751, allocations: 109 kB / 1.617 GB, free: 10.14 MB / 1.073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.958e-05/1.751, allocations: 184.2 kB / 1.617 GB, free: 9.957 MB / 1.073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.073e-05/1.751, allocations: 101 kB / 1.617 GB, free: 9.852 MB / 1.073 GB Notification: Performance of sorting global known variables: time 6.7e-05/1.751, allocations: 91.27 kB / 1.617 GB, free: 9.762 MB / 1.073 GB Notification: Performance of sort global known variables: time 1.453e-06/1.752, allocations: 0 / 1.617 GB, free: 9.762 MB / 1.073 GB Notification: Performance of remove unused functions: time 0.0002862/1.752, allocations: 27.83 kB / 1.617 GB, free: 9.734 MB / 1.073 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002968/1.752, allocations: 207.4 kB / 1.618 GB, free: 9.52 MB / 1.073 GB Notification: Performance of simCode: created initialization part: time 8.633e-05/1.752, allocations: 8 kB / 1.618 GB, free: 9.512 MB / 1.073 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/1.752, allocations: 0 / 1.618 GB, free: 9.512 MB / 1.073 GB Notification: Performance of simCode: created simulation system equations: time 2.895e-06/1.752, allocations: 8.125 kB / 1.618 GB, free: 9.504 MB / 1.073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004431/1.753, allocations: 0.523 MB / 1.618 GB, free: 8.977 MB / 1.073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002498/1.753, allocations: 132.2 kB / 1.618 GB, free: 8.824 MB / 1.073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003719/1.753, allocations: 0.677 MB / 1.619 GB, free: 8.121 MB / 1.073 GB Notification: Performance of simCode: alias equations: time 6.035e-05/1.753, allocations: 8 kB / 1.619 GB, free: 8.113 MB / 1.073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.27e-05/1.753, allocations: 7.438 kB / 1.619 GB, free: 8.105 MB / 1.073 GB Notification: Performance of SimCode: time 2.31e-07/1.753, allocations: 0 / 1.619 GB, free: 8.105 MB / 1.073 GB Notification: Performance of Templates: time 0.003748/1.757, allocations: 0.8721 MB / 1.62 GB, free: 7.234 MB / 1.073 GB make -j1 -f Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.makefile (rm -f Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & ./Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.csv","../files/Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches