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.358/2.358, allocations: 390.5 MB / 398 MB, free: 10.96 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.001078/0.001078, allocations: 187.7 kB / 491.2 MB, free: 1.617 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.874/1.874, allocations: 221.5 MB / 0.7868 GB, free: 13.29 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.001152/0.001152, allocations: 91.84 kB / 0.9269 GB, free: 13.79 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.483e-05/1.486e-05, allocations: 1.875 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3578/0.3578, allocations: 143 MB / 1.212 GB, free: 39.57 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.38/1.738, allocations: 389.2 MB / 1.592 GB, free: 9.426 MB / 1.01 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000334/1.738, allocations: 75.47 kB / 1.592 GB, free: 9.387 MB / 1.01 GB Notification: Performance of FrontEnd - DAE generated: time 0.03315/1.771, allocations: 13.22 MB / 1.605 GB, free: 15.09 MB / 1.026 GB Notification: Performance of FrontEnd: time 1.503e-06/1.771, allocations: 0 / 1.605 GB, free: 15.09 MB / 1.026 GB Notification: Performance of Transformations before backend: time 9.988e-06/1.771, allocations: 4 kB / 1.605 GB, free: 15.08 MB / 1.026 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.0003877/1.772, allocations: 322.5 kB / 1.606 GB, free: 14.72 MB / 1.026 GB Notification: Performance of prepare preOptimizeDAE: time 5.188e-05/1.772, allocations: 8.031 kB / 1.606 GB, free: 14.71 MB / 1.026 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.587e-05/1.772, allocations: 11.89 kB / 1.606 GB, free: 14.71 MB / 1.026 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001521/1.772, allocations: 163.1 kB / 1.606 GB, free: 14.51 MB / 1.026 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001099/1.772, allocations: 29.7 kB / 1.606 GB, free: 14.47 MB / 1.026 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.221e-05/1.772, allocations: 4 kB / 1.606 GB, free: 14.47 MB / 1.026 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.923e-05/1.772, allocations: 15.92 kB / 1.606 GB, free: 14.45 MB / 1.026 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.944e-05/1.772, allocations: 37 kB / 1.606 GB, free: 14.41 MB / 1.026 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/1.772, allocations: 0 / 1.606 GB, free: 14.41 MB / 1.026 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.384e-05/1.772, allocations: 4 kB / 1.606 GB, free: 14.41 MB / 1.026 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.485e-05/1.772, allocations: 0 / 1.606 GB, free: 14.41 MB / 1.026 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005319/1.773, allocations: 317.7 kB / 1.606 GB, free: 14.05 MB / 1.026 GB Notification: Performance of preOpt comSubExp (simulation): time 4.582e-05/1.773, allocations: 22.58 kB / 1.606 GB, free: 14.02 MB / 1.026 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.914e-05/1.773, allocations: 4.859 kB / 1.606 GB, free: 14.01 MB / 1.026 GB Notification: Performance of preOpt evalFunc (simulation): time 9.622e-05/1.773, allocations: 81.17 kB / 1.606 GB, free: 13.91 MB / 1.026 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.548e-05/1.773, allocations: 38.5 kB / 1.606 GB, free: 13.87 MB / 1.026 GB Notification: Performance of pre-optimization done (n=1): time 2.204e-06/1.773, allocations: 0 / 1.606 GB, free: 13.87 MB / 1.026 GB Notification: Performance of matching and sorting (n=1): time 0.0002454/1.773, allocations: 37.62 kB / 1.606 GB, free: 13.83 MB / 1.026 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.372e-05/1.774, allocations: 59.39 kB / 1.606 GB, free: 13.76 MB / 1.026 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.206e-05/1.774, allocations: 92.98 kB / 1.607 GB, free: 13.66 MB / 1.026 GB Notification: Performance of collectPreVariables (initialization): time 2.285e-05/1.774, allocations: 25.7 kB / 1.607 GB, free: 13.63 MB / 1.026 GB Notification: Performance of collectInitialEqns (initialization): time 6.401e-05/1.774, allocations: 99.34 kB / 1.607 GB, free: 13.53 MB / 1.026 GB Notification: Performance of collectInitialBindings (initialization): time 5e-06/1.774, allocations: 0 / 1.607 GB, free: 13.53 MB / 1.026 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.655e-06/1.774, allocations: 0 / 1.607 GB, free: 13.53 MB / 1.026 GB Notification: Performance of setup shared object (initialization): time 0.0001401/1.774, allocations: 310.8 kB / 1.607 GB, free: 13.22 MB / 1.026 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.586e-05/1.774, allocations: 7.625 kB / 1.607 GB, free: 13.21 MB / 1.026 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.83e-05/1.774, allocations: 17.72 kB / 1.607 GB, free: 13.19 MB / 1.026 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.491e-05/1.774, allocations: 7.984 kB / 1.607 GB, free: 13.18 MB / 1.026 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/1.774, allocations: 0 / 1.607 GB, free: 13.18 MB / 1.026 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001239/1.774, allocations: 53.44 kB / 1.607 GB, free: 13.13 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/1.774, allocations: 7.938 kB / 1.607 GB, free: 13.12 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/1.774, allocations: 0 / 1.607 GB, free: 13.12 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/1.774, allocations: 0 / 1.607 GB, free: 13.12 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.264e-05/1.774, allocations: 8 kB / 1.607 GB, free: 13.11 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/1.774, allocations: 4.062 kB / 1.607 GB, free: 13.11 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.371e-05/1.774, allocations: 7.859 kB / 1.607 GB, free: 13.1 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.155e-05/1.774, allocations: 0 / 1.607 GB, free: 13.1 MB / 1.026 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 8.285e-05/1.774, allocations: 105.8 kB / 1.607 GB, free: 12.99 MB / 1.026 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.543e-05/1.774, allocations: 3.984 kB / 1.607 GB, free: 12.99 MB / 1.026 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000141/1.775, allocations: 121.5 kB / 1.607 GB, free: 12.86 MB / 1.026 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.439e-05/1.775, allocations: 176.3 kB / 1.607 GB, free: 12.68 MB / 1.026 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.879e-05/1.775, allocations: 187.3 kB / 1.608 GB, free: 12.49 MB / 1.026 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.047e-05/1.775, allocations: 184.2 kB / 1.608 GB, free: 12.3 MB / 1.026 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002812/1.775, allocations: 381.7 kB / 1.608 GB, free: 11.89 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-05/1.775, allocations: 112.4 kB / 1.608 GB, free: 11.77 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.314e-05/1.775, allocations: 101 kB / 1.608 GB, free: 11.67 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.903e-05/1.775, allocations: 180.3 kB / 1.609 GB, free: 11.48 MB / 1.026 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.83e-05/1.775, allocations: 180.2 kB / 1.609 GB, free: 11.3 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.279e-05/1.776, allocations: 176.3 kB / 1.609 GB, free: 11.12 MB / 1.026 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.222e-05/1.776, allocations: 184.2 kB / 1.609 GB, free: 10.93 MB / 1.026 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001859/1.776, allocations: 315.6 kB / 1.609 GB, free: 10.61 MB / 1.026 GB Notification: Performance of postOpt removeConstants (simulation): time 9.329e-05/1.776, allocations: 182.1 kB / 1.61 GB, free: 10.4 MB / 1.026 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001199/1.776, allocations: 180.2 kB / 1.61 GB, free: 10.22 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001343/1.776, allocations: 105 kB / 1.61 GB, free: 10.11 MB / 1.026 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.104e-05/1.776, allocations: 180.3 kB / 1.61 GB, free: 9.926 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.624e-05/1.776, allocations: 108.9 kB / 1.61 GB, free: 9.812 MB / 1.026 GB Notification: Performance of sorting global known variables: time 4.723e-05/1.776, allocations: 86.66 kB / 1.61 GB, free: 9.73 MB / 1.026 GB Notification: Performance of sort global known variables: time 1.3e-07/1.776, allocations: 3.938 kB / 1.61 GB, free: 9.727 MB / 1.026 GB Notification: Performance of remove unused functions: time 0.0003053/1.777, allocations: 19.94 kB / 1.61 GB, free: 9.707 MB / 1.026 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.0002994/1.777, allocations: 208.8 kB / 1.61 GB, free: 9.496 MB / 1.026 GB Notification: Performance of simCode: created initialization part: time 8.156e-05/1.777, allocations: 7.984 kB / 1.61 GB, free: 9.488 MB / 1.026 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/1.777, allocations: 0 / 1.61 GB, free: 9.488 MB / 1.026 GB Notification: Performance of simCode: created simulation system equations: time 1.443e-06/1.777, allocations: 0 / 1.61 GB, free: 9.488 MB / 1.026 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004327/1.778, allocations: 0.53 MB / 1.611 GB, free: 8.957 MB / 1.026 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002528/1.778, allocations: 123.4 kB / 1.611 GB, free: 8.812 MB / 1.026 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003277/1.778, allocations: 0.6768 MB / 1.612 GB, free: 8.109 MB / 1.026 GB Notification: Performance of simCode: alias equations: time 6.78e-05/1.778, allocations: 15.92 kB / 1.612 GB, free: 8.094 MB / 1.026 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.619e-05/1.778, allocations: 7.438 kB / 1.612 GB, free: 8.086 MB / 1.026 GB Notification: Performance of SimCode: time 2.21e-07/1.778, allocations: 3.938 kB / 1.612 GB, free: 8.082 MB / 1.026 GB Notification: Performance of Templates: time 0.003294/1.782, allocations: 0.6954 MB / 1.612 GB, free: 7.398 MB / 1.026 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