Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.471/1.471, allocations: 249.5 MB / 257 MB, free: 6.902 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009585/0.0009588, allocations: 176.8 kB / 316.3 MB, free: 3.301 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.758/1.758, allocations: 205.3 MB / 0.5671 GB, free: 15.86 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009268/0.0009264, allocations: 100.6 kB / 0.6714 GB, free: 4.977 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.564e-05/1.567e-05, allocations: 0 / 0.7813 GB, free: 102.8 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2532/0.2533, allocations: 106.4 MB / 0.8852 GB, free: 12.31 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.109/1.363, allocations: 370.3 MB / 1.247 GB, free: 15.74 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002695/1.363, allocations: 71.84 kB / 1.247 GB, free: 15.71 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.02396/1.387, allocations: 11.62 MB / 1.258 GB, free: 6.766 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.493e-06/1.387, allocations: 0 / 1.258 GB, free: 6.766 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.102e-05/1.387, allocations: 0 / 1.258 GB, free: 6.766 MB / 0.8698 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.0003289/1.387, allocations: 330.4 kB / 1.259 GB, free: 6.398 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.345e-05/1.388, allocations: 8.031 kB / 1.259 GB, free: 6.391 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.903e-05/1.388, allocations: 4 kB / 1.259 GB, free: 6.387 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001388/1.388, allocations: 174.6 kB / 1.259 GB, free: 6.18 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.683e-05/1.388, allocations: 25.7 kB / 1.259 GB, free: 6.148 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.018e-05/1.388, allocations: 4 kB / 1.259 GB, free: 6.145 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.66e-05/1.388, allocations: 12 kB / 1.259 GB, free: 6.133 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.236e-05/1.388, allocations: 41.5 kB / 1.259 GB, free: 6.09 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/1.388, allocations: 0 / 1.259 GB, free: 6.09 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.173e-05/1.388, allocations: 3.938 kB / 1.259 GB, free: 6.086 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.949e-05/1.388, allocations: 4 kB / 1.259 GB, free: 6.082 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000424/1.388, allocations: 310 kB / 1.259 GB, free: 5.73 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 3.328e-05/1.389, allocations: 14.64 kB / 1.259 GB, free: 5.707 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.525e-05/1.389, allocations: 12.86 kB / 1.259 GB, free: 5.691 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 7.555e-05/1.389, allocations: 85.09 kB / 1.259 GB, free: 5.59 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.909e-05/1.389, allocations: 30.56 kB / 1.259 GB, free: 5.551 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=1): time 1.232e-06/1.389, allocations: 0 / 1.259 GB, free: 5.551 MB / 0.8698 GB Notification: Performance of matching and sorting (n=1): time 0.0001803/1.389, allocations: 37.64 kB / 1.259 GB, free: 5.508 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.893e-05/1.389, allocations: 51.41 kB / 1.259 GB, free: 5.445 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.089e-05/1.389, allocations: 107.5 kB / 1.259 GB, free: 5.336 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.304e-05/1.389, allocations: 25.7 kB / 1.259 GB, free: 5.305 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 5.234e-05/1.389, allocations: 88.02 kB / 1.26 GB, free: 5.219 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 5.641e-06/1.389, allocations: 3.906 kB / 1.26 GB, free: 5.215 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.006e-06/1.389, allocations: 0 / 1.26 GB, free: 5.215 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001281/1.389, allocations: 314.8 kB / 1.26 GB, free: 4.898 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.232e-05/1.389, allocations: 7.938 kB / 1.26 GB, free: 4.891 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.171e-05/1.389, allocations: 21.58 kB / 1.26 GB, free: 4.867 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.056e-05/1.389, allocations: 8 kB / 1.26 GB, free: 4.859 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/1.389, allocations: 0 / 1.26 GB, free: 4.859 MB / 0.8698 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.483e-05/1.389, allocations: 49.62 kB / 1.26 GB, free: 4.805 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.235e-05/1.389, allocations: 4 kB / 1.26 GB, free: 4.801 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/1.389, allocations: 0 / 1.26 GB, free: 4.801 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/1.389, allocations: 0 / 1.26 GB, free: 4.801 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.869e-05/1.39, allocations: 4 kB / 1.26 GB, free: 4.797 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.023e-05/1.39, allocations: 4 kB / 1.26 GB, free: 4.793 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.028e-05/1.39, allocations: 7.984 kB / 1.26 GB, free: 4.785 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.928e-06/1.39, allocations: 7.625 kB / 1.26 GB, free: 4.781 MB / 0.8698 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 7.027e-05/1.39, allocations: 110.6 kB / 1.26 GB, free: 4.668 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.893e-05/1.39, allocations: 0 / 1.26 GB, free: 4.668 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000116/1.39, allocations: 121.4 kB / 1.26 GB, free: 4.543 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.988e-05/1.39, allocations: 180.2 kB / 1.26 GB, free: 4.359 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.449e-05/1.39, allocations: 180.3 kB / 1.261 GB, free: 4.176 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.04e-05/1.39, allocations: 184 kB / 1.261 GB, free: 3.992 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001933/1.39, allocations: 389.7 kB / 1.261 GB, free: 3.566 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.754e-05/1.39, allocations: 101 kB / 1.261 GB, free: 3.461 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.461e-05/1.39, allocations: 112.9 kB / 1.261 GB, free: 3.344 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.789e-05/1.39, allocations: 176.3 kB / 1.261 GB, free: 3.164 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.811e-05/1.39, allocations: 180.3 kB / 1.262 GB, free: 2.98 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.065e-05/1.391, allocations: 188.7 kB / 1.262 GB, free: 2.793 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.788e-05/1.391, allocations: 184.3 kB / 1.262 GB, free: 2.605 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001227/1.391, allocations: 303.7 kB / 1.262 GB, free: 2.285 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 7.394e-05/1.391, allocations: 189.3 kB / 1.262 GB, free: 2.078 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.317e-05/1.391, allocations: 176.3 kB / 1.263 GB, free: 1.898 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001308/1.391, allocations: 112.9 kB / 1.263 GB, free: 1.781 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.829e-05/1.391, allocations: 176.3 kB / 1.263 GB, free: 1.602 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.066e-05/1.391, allocations: 105 kB / 1.263 GB, free: 1.492 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 3.968e-05/1.391, allocations: 82.78 kB / 1.263 GB, free: 1.414 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.5e-07/1.391, allocations: 4 kB / 1.263 GB, free: 1.41 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002187/1.391, allocations: 12 kB / 1.263 GB, free: 1.398 MB / 0.8698 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.0002357/1.392, allocations: 211.4 kB / 1.263 GB, free: 1.184 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 6.534e-05/1.392, allocations: 11.25 kB / 1.263 GB, free: 1.176 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/1.392, allocations: 0 / 1.263 GB, free: 1.176 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 1.012e-06/1.392, allocations: 0 / 1.263 GB, free: 1.176 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003878/1.392, allocations: 0.5185 MB / 1.264 GB, free: 0.6523 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000194/1.392, allocations: 142.9 kB / 1.264 GB, free: 0.4922 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.5644/1.957, allocations: 0.6739 MB / 1.265 GB, free: 327 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0001339/1.957, allocations: 4.781 kB / 1.265 GB, free: 327 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.995e-05/1.957, allocations: 12.75 kB / 1.265 GB, free: 327 MB / 0.8698 GB Notification: Performance of SimCode: time 3.567e-06/1.957, allocations: 0 / 1.265 GB, free: 327 MB / 0.8698 GB Notification: Performance of Templates: time 0.004953/1.962, allocations: 0.6545 MB / 1.265 GB, free: 326.9 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.makefile (rm -f Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & ./Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.csv","../files/Buildings_maint.7.0.x_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches