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/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.482/2.482, allocations: 390.3 MB / 405.3 MB, free: 13.47 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.001308/0.001308, allocations: 175.4 kB / 498.1 MB, free: 5.73 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.553/1.553, allocations: 223.2 MB / 0.7948 GB, free: 17.88 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.0009594/0.0009592, allocations: 104.1 kB / 0.9346 GB, free: 6.184 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003695/0.0003695, allocations: 14.19 kB / 1.084 GB, free: 221.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2745/0.2749, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9519/1.227, allocations: 389.1 MB / 1.603 GB, free: 11.62 MB / 0.9167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000292/1.227, allocations: 73.95 kB / 1.603 GB, free: 11.58 MB / 0.9167 GB Notification: Performance of FrontEnd - DAE generated: time 0.02965/1.257, allocations: 13.32 MB / 1.616 GB, free: 1.078 MB / 0.9167 GB Notification: Performance of FrontEnd: time 2.214e-06/1.257, allocations: 0 / 1.616 GB, free: 1.078 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 7.885e-06/1.257, allocations: 0 / 1.616 GB, free: 1.078 MB / 0.9167 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.0003305/1.257, allocations: 334.9 kB / 1.616 GB, free: 0.707 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/1.257, allocations: 12.02 kB / 1.616 GB, free: 0.6953 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.417e-05/1.257, allocations: 11.86 kB / 1.616 GB, free: 0.6836 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.572e-05/1.257, allocations: 163 kB / 1.616 GB, free: 496 kB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.811e-05/1.258, allocations: 29.2 kB / 1.616 GB, free: 464 kB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.136e-05/1.258, allocations: 8 kB / 1.616 GB, free: 456 kB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001462/1.258, allocations: 37.69 kB / 1.617 GB, free: 412 kB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/1.258, allocations: 0 / 1.617 GB, free: 412 kB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.516e-05/1.258, allocations: 0 / 1.617 GB, free: 412 kB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.959e-05/1.258, allocations: 0 / 1.617 GB, free: 412 kB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.378e-05/1.258, allocations: 19.31 kB / 1.617 GB, free: 396 kB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004628/1.258, allocations: 337.1 kB / 1.617 GB, free: 16 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 5.717e-05/1.258, allocations: 26.14 kB / 1.617 GB, free: 15.96 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001001/1.259, allocations: 81.17 kB / 1.617 GB, free: 15.87 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.164e-05/1.259, allocations: 38.55 kB / 1.617 GB, free: 15.82 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=1): time 1.322e-06/1.259, allocations: 0 / 1.617 GB, free: 15.82 MB / 0.9323 GB Notification: Performance of matching and sorting (n=1): time 0.0001824/1.259, allocations: 37.59 kB / 1.617 GB, free: 15.78 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.209e-05/1.259, allocations: 51.41 kB / 1.617 GB, free: 15.71 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001079/1.259, allocations: 100.5 kB / 1.617 GB, free: 15.61 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 2.208e-05/1.259, allocations: 29.7 kB / 1.617 GB, free: 15.58 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 6.93e-05/1.259, allocations: 87.36 kB / 1.617 GB, free: 15.49 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 1.201e-05/1.259, allocations: 3.906 kB / 1.617 GB, free: 15.49 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.028e-06/1.259, allocations: 3.938 kB / 1.617 GB, free: 15.48 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 0.0001599/1.259, allocations: 314.8 kB / 1.618 GB, free: 15.17 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.671e-05/1.259, allocations: 0 / 1.618 GB, free: 15.17 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.635e-05/1.259, allocations: 21.52 kB / 1.618 GB, free: 15.14 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.926e-05/1.259, allocations: 8 kB / 1.618 GB, free: 15.14 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/1.259, allocations: 0 / 1.618 GB, free: 15.14 MB / 0.9323 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001295/1.26, allocations: 49.38 kB / 1.618 GB, free: 15.09 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 1.995e-05/1.26, allocations: 8 kB / 1.618 GB, free: 15.08 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.481e-06/1.26, allocations: 96 / 1.618 GB, free: 15.08 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/1.26, allocations: 7.922 kB / 1.618 GB, free: 15.07 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.067e-05/1.26, allocations: 4 kB / 1.618 GB, free: 15.07 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.768e-06/1.26, allocations: 3.953 kB / 1.618 GB, free: 15.06 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.452e-05/1.26, allocations: 4 kB / 1.618 GB, free: 15.06 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.374e-05/1.26, allocations: 4.062 kB / 1.618 GB, free: 15.05 MB / 0.9323 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001149/1.26, allocations: 118.8 kB / 1.618 GB, free: 14.93 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.211e-05/1.26, allocations: 0 / 1.618 GB, free: 14.93 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001439/1.26, allocations: 116.9 kB / 1.618 GB, free: 14.81 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.979e-05/1.26, allocations: 179.8 kB / 1.618 GB, free: 14.63 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.696e-05/1.26, allocations: 188.2 kB / 1.618 GB, free: 14.44 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.875e-05/1.26, allocations: 188.2 kB / 1.618 GB, free: 14.25 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003481/1.261, allocations: 400.8 kB / 1.619 GB, free: 13.8 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.333e-05/1.261, allocations: 108.9 kB / 1.619 GB, free: 13.69 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.525e-05/1.261, allocations: 101 kB / 1.619 GB, free: 13.59 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.831e-05/1.261, allocations: 180.2 kB / 1.619 GB, free: 13.4 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.032e-05/1.261, allocations: 180.3 kB / 1.619 GB, free: 13.22 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.399e-05/1.261, allocations: 188.2 kB / 1.62 GB, free: 13.03 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.163e-05/1.261, allocations: 180 kB / 1.62 GB, free: 12.85 MB / 0.9323 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001809/1.262, allocations: 311.7 kB / 1.62 GB, free: 12.52 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000115/1.262, allocations: 189.8 kB / 1.62 GB, free: 12.31 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001089/1.262, allocations: 184.2 kB / 1.62 GB, free: 12.12 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002059/1.262, allocations: 105 kB / 1.62 GB, free: 12.02 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.592e-05/1.262, allocations: 180.2 kB / 1.621 GB, free: 11.83 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.083e-05/1.262, allocations: 104.9 kB / 1.621 GB, free: 11.72 MB / 0.9323 GB Notification: Performance of sorting global known variables: time 6.66e-05/1.262, allocations: 82.78 kB / 1.621 GB, free: 11.64 MB / 0.9323 GB Notification: Performance of sort global known variables: time 2e-07/1.262, allocations: 4 kB / 1.621 GB, free: 11.64 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.0004344/1.263, allocations: 23.94 kB / 1.621 GB, free: 11.62 MB / 0.9323 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 (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.0002811/1.263, allocations: 214.7 kB / 1.621 GB, free: 11.4 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 8.139e-05/1.263, allocations: 8 kB / 1.621 GB, free: 11.39 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 2.756e-06/1.263, allocations: 4 kB / 1.621 GB, free: 11.39 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 4.288e-06/1.263, allocations: 3.938 kB / 1.621 GB, free: 11.39 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004747/1.264, allocations: 0.5183 MB / 1.622 GB, free: 10.87 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003369/1.264, allocations: 192 kB / 1.622 GB, free: 10.65 MB / 0.9323 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003285/1.264, allocations: 0.677 MB / 1.622 GB, free: 9.945 MB / 0.9323 GB Notification: Performance of simCode: alias equations: time 6.92e-05/1.264, allocations: 11.92 kB / 1.622 GB, free: 9.934 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.666e-05/1.264, allocations: 7.438 kB / 1.622 GB, free: 9.926 MB / 0.9323 GB Notification: Performance of SimCode: time 3.2e-07/1.264, allocations: 0 / 1.622 GB, free: 9.926 MB / 0.9323 GB Notification: Performance of Templates: time 0.004459/1.269, allocations: 0.8202 MB / 1.623 GB, free: 9.117 MB / 0.9323 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","../files/Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches