Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.QSou_flow|heaPum.QLoa_flow|heaPum.sta_a1.T|heaPum.sta_b1.T|heaPum.COP",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible") translateModel(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.QSou_flow|heaPum.QLoa_flow|heaPum.sta_a1.T|heaPum.sta_b1.T|heaPum.COP",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.112/2.112, allocations: 387.4 MB / 394.9 MB, free: 13.37 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.001079/0.001079, allocations: 180.8 kB / 487.4 MB, free: 5.035 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.359/1.359, allocations: 221.5 MB / 0.7824 GB, free: 0.9922 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.0008958/0.0008959, allocations: 99.78 kB / 0.9219 GB, free: 2.223 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.571e-05/1.574e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2481/0.2481, allocations: 142.4 MB / 1.206 GB, free: 43.98 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.058/1.306, allocations: 447.6 MB / 1.643 GB, free: 7.777 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002764/1.307, allocations: 92.88 kB / 1.643 GB, free: 7.73 MB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 1.678/2.985, allocations: 0.525 GB / 2.168 GB, free: 34.48 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.613e-06/2.985, allocations: 3.938 kB / 2.168 GB, free: 34.48 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0002482/2.985, allocations: 47.98 kB / 2.168 GB, free: 34.43 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: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.005676/2.991, allocations: 1.895 MB / 2.17 GB, free: 32.48 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/2.991, allocations: 12.03 kB / 2.17 GB, free: 32.47 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001778/2.993, allocations: 329.5 kB / 2.17 GB, free: 32.15 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004055/2.997, allocations: 1.656 MB / 2.172 GB, free: 30.44 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002126/2.997, allocations: 117.4 kB / 2.172 GB, free: 30.31 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003002/2.997, allocations: 64 kB / 2.172 GB, free: 30.25 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002023/2.999, allocations: 0.9843 MB / 2.173 GB, free: 29.26 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00212/3.001, allocations: 1.134 MB / 2.174 GB, free: 28.04 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.65e-05/3.001, allocations: 7.938 kB / 2.174 GB, free: 28.04 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001509/3.002, allocations: 4 kB / 2.174 GB, free: 28.03 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.522e-05/3.002, allocations: 49.92 kB / 2.174 GB, free: 27.98 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.008641/3.01, allocations: 6.708 MB / 2.181 GB, free: 20.77 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008193/3.011, allocations: 0.5987 MB / 2.181 GB, free: 20.16 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004781/3.012, allocations: 382.3 kB / 2.182 GB, free: 19.79 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004971/3.012, allocations: 0.8238 MB / 2.183 GB, free: 18.78 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.988e-05/3.012, allocations: 47.11 kB / 2.183 GB, free: 18.73 MB / 1.151 GB Notification: Performance of pre-optimization done (n=63): time 3.557e-06/3.012, allocations: 4 kB / 2.183 GB, free: 18.72 MB / 1.151 GB Notification: Performance of matching and sorting (n=63): time 0.001707/3.014, allocations: 0.802 MB / 2.183 GB, free: 17.91 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.801e-05/3.014, allocations: 111.4 kB / 2.184 GB, free: 17.78 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001829/3.016, allocations: 1.145 MB / 2.185 GB, free: 16.62 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001203/3.016, allocations: 29.7 kB / 2.185 GB, free: 16.59 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005167/3.016, allocations: 0.7579 MB / 2.185 GB, free: 15.82 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001796/3.017, allocations: 216.9 kB / 2.186 GB, free: 15.61 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.935e-05/3.017, allocations: 0 / 2.186 GB, free: 15.61 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.054e-05/3.017, allocations: 341.9 kB / 2.186 GB, free: 15.27 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004388/3.017, allocations: 346.5 kB / 2.186 GB, free: 14.93 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005617/3.018, allocations: 0.5793 MB / 2.187 GB, free: 14.25 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008193/3.019, allocations: 429 kB / 2.187 GB, free: 13.83 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/3.019, allocations: 4 kB / 2.187 GB, free: 13.82 MB / 1.151 GB Notification: Performance of matching and sorting (n=101) (initialization): time 0.001787/3.02, allocations: 1.033 MB / 2.188 GB, free: 12.79 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003595/3.021, allocations: 1.868 MB / 2.19 GB, free: 10.81 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.899e-06/3.021, allocations: 8 kB / 2.19 GB, free: 10.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.382e-05/3.021, allocations: 8 kB / 2.19 GB, free: 10.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001072/3.022, allocations: 267.6 kB / 2.19 GB, free: 10.54 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.354e-05/3.022, allocations: 19.88 kB / 2.19 GB, free: 10.52 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001439/3.023, allocations: 203.1 kB / 2.191 GB, free: 10.32 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001033/3.024, allocations: 35.98 kB / 2.191 GB, free: 10.28 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.113e-05/3.024, allocations: 6.344 kB / 2.191 GB, free: 10.28 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001352/3.025, allocations: 0.8497 MB / 2.191 GB, free: 9.43 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/3.025, allocations: 4 kB / 2.191 GB, free: 9.426 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.889e-06/3.025, allocations: 8 kB / 2.191 GB, free: 9.418 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001003/3.026, allocations: 268.1 kB / 2.192 GB, free: 9.156 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.328e-06/3.026, allocations: 11.98 kB / 2.192 GB, free: 9.145 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001254/3.027, allocations: 179.1 kB / 2.192 GB, free: 8.969 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.415e-05/3.027, allocations: 35.98 kB / 2.192 GB, free: 8.934 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 2 (heaPum.uMod,intGreThr.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (101): * Single equations (assignments): 101 * 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.0002565/3.028, allocations: 128.7 kB / 2.192 GB, free: 8.801 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000212/3.028, allocations: 142.3 kB / 2.192 GB, free: 8.66 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001645/3.029, allocations: 0.9503 MB / 2.193 GB, free: 7.695 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.468e-06/3.029, allocations: 7.984 kB / 2.193 GB, free: 7.688 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/3.029, allocations: 4 kB / 2.193 GB, free: 7.684 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001002/3.03, allocations: 0.8141 MB / 2.194 GB, free: 6.836 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003398/3.034, allocations: 2.464 MB / 2.196 GB, free: 4.293 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/3.034, allocations: 320 / 2.196 GB, free: 4.293 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008721/3.035, allocations: 203.7 kB / 2.197 GB, free: 4.094 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.706e-06/3.035, allocations: 4 kB / 2.197 GB, free: 4.09 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.398e-05/3.035, allocations: 11.98 kB / 2.197 GB, free: 4.078 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.993e-06/3.035, allocations: 7.953 kB / 2.197 GB, free: 4.07 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.783e-06/3.035, allocations: 8 kB / 2.197 GB, free: 4.062 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001931/3.037, allocations: 1.702 MB / 2.198 GB, free: 2.234 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006005/3.037, allocations: 383.1 kB / 2.199 GB, free: 1.84 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002532/3.038, allocations: 7.984 kB / 2.199 GB, free: 1.832 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001031/3.039, allocations: 107.9 kB / 2.199 GB, free: 1.727 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001612/3.039, allocations: 84.34 kB / 2.199 GB, free: 1.645 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.257e-05/3.039, allocations: 35.97 kB / 2.199 GB, free: 1.609 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001033/3.04, allocations: 0.8641 MB / 2.2 GB, free: 0.7461 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.5e-07/3.04, allocations: 0 / 2.2 GB, free: 0.7461 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.7567/3.797, allocations: 0.8365 MB / 2.2 GB, free: 253.8 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 2 (heaPum.vol1.dynBal.U,heaPum.vol2.dynBal.U) * Number of discrete variables: 2 (heaPum.uMod,intGreThr.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.00235/3.799, allocations: 0.7722 MB / 2.201 GB, free: 253.6 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.003026/3.802, allocations: 1.378 MB / 2.203 GB, free: 253.6 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 8.747e-06/3.802, allocations: 0.8125 kB / 2.203 GB, free: 253.6 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0009098/3.803, allocations: 461.9 kB / 2.203 GB, free: 253.6 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003475/3.807, allocations: 0.5722 MB / 2.204 GB, free: 253.6 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004236/3.811, allocations: 2.009 MB / 2.206 GB, free: 253 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001022/3.812, allocations: 1.31 MB / 2.207 GB, free: 252.3 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002623/3.815, allocations: 0.504 MB / 2.207 GB, free: 252.3 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003285/3.815, allocations: 83.77 kB / 2.207 GB, free: 252.3 MB / 1.151 GB Notification: Performance of SimCode: time 1.112e-06/3.815, allocations: 0.8438 kB / 2.207 GB, free: 252.3 MB / 1.151 GB Notification: Performance of Templates: time 0.05689/3.872, allocations: 28.38 MB / 2.235 GB, free: 251.8 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.makefile (rm -f Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.sim & ./Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatPumps_Examples_EquationFitReversible.csv","../files/Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches