Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.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.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.QSou_flow|heaPum.QLoa_flow|uMod.y|heaPum.sta_a1.T|heaPum.sta_b1.T|heaPum.COP|heaPum.PLR",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop") translateModel(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.QSou_flow|heaPum.QLoa_flow|uMod.y|heaPum.sta_a1.T|heaPum.sta_b1.T|heaPum.COP|heaPum.PLR",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.146/2.146, allocations: 387.4 MB / 394.9 MB, free: 13.41 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.001112/0.001112, allocations: 176.8 kB / 487.4 MB, free: 5.047 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.405/1.405, allocations: 221.5 MB / 0.7824 GB, free: 0.9531 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008359/0.0008359, allocations: 103.1 kB / 0.9219 GB, free: 2.176 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.599e-05/1.607e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2255/0.2256, allocations: 142.4 MB / 1.206 GB, free: 43.96 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.06/1.285, allocations: 473.1 MB / 1.668 GB, free: 14.5 MB / 1.089 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002908/1.286, allocations: 99 kB / 1.668 GB, free: 14.45 MB / 1.089 GB Notification: Performance of FrontEnd - DAE generated: time 4.011/5.297, allocations: 1.011 GB / 2.679 GB, free: 183.9 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.054e-06/5.297, allocations: 1.031 kB / 2.679 GB, free: 183.9 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0003627/5.297, allocations: 72.28 kB / 2.679 GB, free: 183.9 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 383 * Number of variables: 383 Notification: Performance of Generate backend data structure: time 0.008615/5.306, allocations: 2.784 MB / 2.681 GB, free: 182.9 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.486e-05/5.306, allocations: 9.75 kB / 2.681 GB, free: 182.9 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004545/5.31, allocations: 0.7482 MB / 2.682 GB, free: 182.7 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007745/5.318, allocations: 3.055 MB / 2.685 GB, free: 182.3 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000778/5.319, allocations: 273.1 kB / 2.685 GB, free: 182.2 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004572/5.319, allocations: 113.8 kB / 2.686 GB, free: 182.2 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002678/5.322, allocations: 1.441 MB / 2.687 GB, free: 182.2 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003096/5.325, allocations: 1.653 MB / 2.689 GB, free: 182 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.348e-05/5.325, allocations: 1.5 kB / 2.689 GB, free: 182 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000159/5.325, allocations: 8.391 kB / 2.689 GB, free: 182 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001107/5.325, allocations: 59.39 kB / 2.689 GB, free: 181.9 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01512/5.34, allocations: 9.34 MB / 2.698 GB, free: 177.7 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001368/5.342, allocations: 0.9192 MB / 2.699 GB, free: 177.7 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008908/5.343, allocations: 0.5956 MB / 2.699 GB, free: 177.7 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006967/5.35, allocations: 4 MB / 2.703 GB, free: 176.1 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001181/5.351, allocations: 0.7419 MB / 2.704 GB, free: 176 MB / 1.151 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00132/5.352, allocations: 149.4 kB / 2.704 GB, free: 175.9 MB / 1.151 GB Notification: Performance of pre-optimization done (n=93): time 8.326e-06/5.352, allocations: 6.844 kB / 2.704 GB, free: 175.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=93): time 0.003218/5.356, allocations: 1.266 MB / 2.705 GB, free: 175.8 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.651e-05/5.356, allocations: 173.9 kB / 2.705 GB, free: 175.6 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003384/5.359, allocations: 1.818 MB / 2.707 GB, free: 175.4 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0002225/5.359, allocations: 32.52 kB / 2.707 GB, free: 175.3 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.001242/5.361, allocations: 1.183 MB / 2.708 GB, free: 174.9 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003076/5.361, allocations: 299.8 kB / 2.709 GB, free: 174.7 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001382/5.361, allocations: 11.38 kB / 2.709 GB, free: 174.7 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001018/5.361, allocations: 353.8 kB / 2.709 GB, free: 174.4 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008898/5.362, allocations: 0.5908 MB / 2.71 GB, free: 174.4 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001111/5.363, allocations: 1.086 MB / 2.711 GB, free: 173.9 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002125/5.365, allocations: 0.7866 MB / 2.711 GB, free: 173.8 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-05/5.365, allocations: 7.516 kB / 2.711 GB, free: 173.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=168) (initialization): time 0.004104/5.369, allocations: 1.923 MB / 2.713 GB, free: 173.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.001174/5.371, allocations: 5.259 MB / 2.718 GB, free: 168.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.996e-05/5.371, allocations: 15.38 kB / 2.718 GB, free: 168.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.537e-05/5.371, allocations: 22.89 kB / 2.718 GB, free: 168.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001484/5.372, allocations: 368.5 kB / 2.719 GB, free: 168.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.983e-05/5.372, allocations: 29.61 kB / 2.719 GB, free: 168.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003278/5.375, allocations: 342.5 kB / 2.719 GB, free: 168.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002254/5.376, allocations: 97.2 kB / 2.719 GB, free: 168.1 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.054e-05/5.376, allocations: 4.656 kB / 2.719 GB, free: 168.1 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003678/5.379, allocations: 1.666 MB / 2.721 GB, free: 168.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.233e-05/5.379, allocations: 16.06 kB / 2.721 GB, free: 168.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.246e-05/5.38, allocations: 22.97 kB / 2.721 GB, free: 168.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001397/5.381, allocations: 363.3 kB / 2.721 GB, free: 168.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.787e-05/5.381, allocations: 32.72 kB / 2.721 GB, free: 168.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002916/5.384, allocations: 326.9 kB / 2.722 GB, free: 168.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002059/5.384, allocations: 88.16 kB / 2.722 GB, free: 168.1 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,heaPum.uMod,$PRE.uMod.booPul.y,uMod.booPul.y,$PRE.pulse.booPul.y,pulse.booPul.y,$PRE.TSouEnt.booPul.y,TSouEnt.booPul.y,$PRE.TLoaSet.booPul.y,TLoaSet.booPul.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (159): * Single equations (assignments): 154 * Array equations: 1 * Algorithm blocks: 4 * 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.00046/5.385, allocations: 169.1 kB / 2.722 GB, free: 167.9 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007796/5.385, allocations: 230.6 kB / 2.722 GB, free: 167.8 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003186/5.389, allocations: 1.474 MB / 2.724 GB, free: 167.7 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.639e-05/5.389, allocations: 11.22 kB / 2.724 GB, free: 167.7 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/5.389, allocations: 0 / 2.724 GB, free: 167.7 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001793/5.39, allocations: 1.172 MB / 2.725 GB, free: 167.5 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006883/5.397, allocations: 3.424 MB / 2.728 GB, free: 167.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-06/5.397, allocations: 0 / 2.728 GB, free: 167.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001158/5.398, allocations: 248.2 kB / 2.728 GB, free: 167.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.726e-05/5.399, allocations: 3.344 kB / 2.728 GB, free: 167.1 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.972e-05/5.399, allocations: 20.8 kB / 2.728 GB, free: 167.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.657e-06/5.399, allocations: 13.64 kB / 2.728 GB, free: 167.1 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/5.399, allocations: 3.75 kB / 2.728 GB, free: 167.1 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003394/5.402, allocations: 2.246 MB / 2.73 GB, free: 166.7 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001339/5.403, allocations: 0.4987 MB / 2.731 GB, free: 166.4 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007239/5.404, allocations: 3.234 kB / 2.731 GB, free: 166.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002075/5.406, allocations: 158.4 kB / 2.731 GB, free: 166.4 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001527/5.406, allocations: 78.06 kB / 2.731 GB, free: 166.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001302/5.407, allocations: 47.28 kB / 2.731 GB, free: 166.4 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.003108/5.41, allocations: 1.362 MB / 2.733 GB, free: 166.3 MB / 1.151 GB Notification: Performance of sort global known variables: time 3.8e-07/5.41, allocations: 0 / 2.733 GB, free: 166.3 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.007636/5.417, allocations: 1.4 MB / 2.734 GB, free: 166.1 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (pum.vol.dynBal.U,pum.filter.s[1],pum.filter.s[2],vol.dynBal.U) * Number of discrete variables: 13 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,heaPum.uMod,uMod.booPul.y,pulse.booPul.y,TSouEnt.booPul.y,TLoaSet.booPul.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 4 * 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.003265/5.421, allocations: 1.412 MB / 2.735 GB, free: 165.7 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.004597/5.425, allocations: 2.858 MB / 2.738 GB, free: 165.2 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 6.011e-06/5.425, allocations: 0 / 2.738 GB, free: 165.2 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0008457/5.426, allocations: 0.6049 MB / 2.739 GB, free: 165.2 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005444/5.432, allocations: 0.9538 MB / 2.74 GB, free: 165.2 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008183/5.44, allocations: 3.149 MB / 2.743 GB, free: 164.3 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00198/5.442, allocations: 1.703 MB / 2.744 GB, free: 163.6 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.005176/5.447, allocations: 0.8121 MB / 2.745 GB, free: 163.6 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006477/5.448, allocations: 147.1 kB / 2.745 GB, free: 163.6 MB / 1.151 GB Notification: Performance of SimCode: time 1.373e-06/5.448, allocations: 0 / 2.745 GB, free: 163.6 MB / 1.151 GB Notification: Performance of Templates: time 0.07844/5.526, allocations: 50.32 MB / 2.794 GB, free: 161.1 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.makefile (rm -f Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.sim & ./Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_CoolingClosedLoop.csv","../files/Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches