Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_latest_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_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001165/0.001165, allocations: 97.97 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00134/0.00134, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.514/2.514, allocations: 436.5 MB / 0.7104 GB, free: 7.863 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003328/0.0003328, allocations: 12 kB / 0.8708 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6137/0.614, allocations: 153.7 MB / 1.021 GB, free: 1.086 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.04738/0.6615, allocations: 52.39 MB / 1.072 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01562/0.6771, allocations: 11.67 MB / 1.083 GB, free: 0.8672 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001949/0.6791, allocations: 51.69 kB / 1.083 GB, free: 0.8164 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.002418/0.6815, allocations: 0.8397 MB / 1.084 GB, free: 15.97 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.005973/0.6875, allocations: 2.176 MB / 1.086 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.004272/0.6918, allocations: 1.618 MB / 1.088 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.004424/0.6963, allocations: 2.557 MB / 1.09 GB, free: 9.641 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001548/0.6978, allocations: 1.078 MB / 1.091 GB, free: 8.543 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002183/0.7, allocations: 1.214 MB / 1.093 GB, free: 7.324 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001114/0.7011, allocations: 0.8714 MB / 1.094 GB, free: 6.449 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.000161/0.7013, allocations: 64 kB / 1.094 GB, free: 6.387 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00225/0.7036, allocations: 0.8621 MB / 1.094 GB, free: 5.523 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0003573/0.7039, allocations: 354.7 kB / 1.095 GB, free: 5.176 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0003904/0.7043, allocations: 384.8 kB / 1.095 GB, free: 4.793 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.002264/0.7066, allocations: 2.161 MB / 1.097 GB, free: 2.629 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.7066, allocations: 0 / 1.097 GB, free: 2.629 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.284e-06/0.7066, allocations: 4 kB / 1.097 GB, free: 2.625 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 3.709e-05/0.7067, allocations: 0 / 1.097 GB, free: 2.625 MB / 0.8419 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.003737/0.7104, allocations: 2.01 MB / 1.099 GB, free: 0.5586 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.7105, allocations: 15.98 kB / 1.099 GB, free: 0.543 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001311/0.7118, allocations: 341.5 kB / 1.1 GB, free: 212 kB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002396/0.7142, allocations: 1.419 MB / 1.101 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001517/0.7144, allocations: 161.5 kB / 1.101 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001507/0.7145, allocations: 108 kB / 1.101 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002593/0.7171, allocations: 1.414 MB / 1.103 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.56e-05/0.7172, allocations: 7.938 kB / 1.103 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001181/0.7173, allocations: 55.98 kB / 1.103 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.173e-05/0.7173, allocations: 39.91 kB / 1.103 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003027/0.7204, allocations: 1.323 MB / 1.104 GB, free: 11.53 MB / 0.8575 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.008078/0.7285, allocations: 6.405 MB / 1.11 GB, free: 4.68 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002106/0.7306, allocations: 1.154 MB / 1.111 GB, free: 3.445 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009392/0.7315, allocations: 1.149 MB / 1.112 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.577e-05/0.7316, allocations: 43.88 kB / 1.113 GB, free: 1.988 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=77): time 4.678e-06/0.7316, allocations: 0 / 1.113 GB, free: 1.988 MB / 0.8575 GB Notification: Performance of matching and sorting (n=77): time 0.004107/0.7357, allocations: 1.581 MB / 1.114 GB, free: 412 kB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.501e-05/0.7358, allocations: 111.5 kB / 1.114 GB, free: 276 kB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001685/0.7375, allocations: 1.319 MB / 1.115 GB, free: 14.94 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 9.301e-05/0.7376, allocations: 41.7 kB / 1.115 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005764/0.7382, allocations: 0.7163 MB / 1.116 GB, free: 14.17 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002468/0.7384, allocations: 264.2 kB / 1.116 GB, free: 13.91 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.048e-05/0.7385, allocations: 16 kB / 1.116 GB, free: 13.89 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001393/0.7386, allocations: 334 kB / 1.117 GB, free: 13.56 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00126/0.7399, allocations: 497.7 kB / 1.117 GB, free: 13.07 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001452/0.7414, allocations: 0.7151 MB / 1.118 GB, free: 12.27 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001262/0.7426, allocations: 0.5221 MB / 1.118 GB, free: 11.75 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.7427, allocations: 4 kB / 1.118 GB, free: 11.74 MB / 0.8731 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003018/0.7457, allocations: 1.347 MB / 1.12 GB, free: 10.39 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009722/0.7467, allocations: 1.874 MB / 1.122 GB, free: 8.332 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.103e-05/0.7467, allocations: 8 kB / 1.122 GB, free: 8.324 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.249e-05/0.7467, allocations: 8 kB / 1.122 GB, free: 8.316 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001226/0.7479, allocations: 291.6 kB / 1.122 GB, free: 8.031 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.286e-05/0.748, allocations: 19.92 kB / 1.122 GB, free: 8.012 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001325/0.7493, allocations: 214.9 kB / 1.122 GB, free: 7.801 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.618e-05/0.7494, allocations: 43.98 kB / 1.122 GB, free: 7.758 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.002e-05/0.7494, allocations: 7.953 kB / 1.122 GB, free: 7.75 MB / 0.8731 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002797/0.7522, allocations: 1.175 MB / 1.123 GB, free: 6.574 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.7522, allocations: 7.938 kB / 1.123 GB, free: 6.566 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.488e-05/0.7523, allocations: 12 kB / 1.123 GB, free: 6.555 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00121/0.7535, allocations: 292.2 kB / 1.124 GB, free: 6.27 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.773e-05/0.7535, allocations: 11.98 kB / 1.124 GB, free: 6.258 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001235/0.7547, allocations: 211 kB / 1.124 GB, free: 6.051 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.728e-05/0.7548, allocations: 39.98 kB / 1.124 GB, free: 6.012 MB / 0.8731 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 (reaToInt.y,intGreThr.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 109 * 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.000819/0.7557, allocations: 464.8 kB / 1.124 GB, free: 5.547 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002551/0.7559, allocations: 150.2 kB / 1.124 GB, free: 5.398 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003396/0.7593, allocations: 1.47 MB / 1.126 GB, free: 3.895 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.694e-05/0.7594, allocations: 8 kB / 1.126 GB, free: 3.887 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.7594, allocations: 0 / 1.126 GB, free: 3.887 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002483/0.7619, allocations: 1.101 MB / 1.127 GB, free: 2.754 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005931/0.7678, allocations: 2.915 MB / 1.13 GB, free: 15.71 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.095e-05/0.7678, allocations: 4 kB / 1.13 GB, free: 15.71 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009635/0.7688, allocations: 220.2 kB / 1.13 GB, free: 15.5 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.71e-05/0.7688, allocations: 12 kB / 1.13 GB, free: 15.48 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.958e-05/0.7689, allocations: 24 kB / 1.13 GB, free: 15.46 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-05/0.7689, allocations: 15.92 kB / 1.13 GB, free: 15.45 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.7689, allocations: 4 kB / 1.13 GB, free: 15.44 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004527/0.7735, allocations: 2.299 MB / 1.132 GB, free: 12.89 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007059/0.7742, allocations: 382.8 kB / 1.133 GB, free: 12.5 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002849/0.7745, allocations: 20.06 kB / 1.133 GB, free: 12.48 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001316/0.7758, allocations: 163.7 kB / 1.133 GB, free: 12.32 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001898/0.776, allocations: 84.34 kB / 1.133 GB, free: 12.23 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.958e-05/0.7761, allocations: 47.97 kB / 1.133 GB, free: 12.19 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.001424/0.7776, allocations: 0.9364 MB / 1.134 GB, free: 11.25 MB / 0.8887 GB Notification: Performance of sort global known variables: time 2.2e-07/0.7776, allocations: 0 / 1.134 GB, free: 11.25 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.002296/0.7799, allocations: 0.799 MB / 1.135 GB, free: 10.45 MB / 0.8887 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 2 (heaPum.vol1.dynBal.U,heaPum.vol2.dynBal.U) * Number of discrete variables: 2 (reaToInt.y,intGreThr.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 71 * 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.0009297/0.7808, allocations: 454.6 kB / 1.135 GB, free: 10.01 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.004453/0.7853, allocations: 1.795 MB / 1.137 GB, free: 8.219 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 6.201e-06/0.7853, allocations: 0 / 1.137 GB, free: 8.219 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.001569/0.7869, allocations: 0.6366 MB / 1.137 GB, free: 7.578 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00312/0.79, allocations: 0.6661 MB / 1.138 GB, free: 6.922 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004833/0.7948, allocations: 3.234 MB / 1.141 GB, free: 3.602 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009845/0.7958, allocations: 1.308 MB / 1.143 GB, free: 2.266 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.001746/0.7976, allocations: 386.1 kB / 1.143 GB, free: 1.887 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003635/0.798, allocations: 119.3 kB / 1.143 GB, free: 1.77 MB / 0.8887 GB Notification: Performance of SimCode: time 5.21e-07/0.798, allocations: 4 kB / 1.143 GB, free: 1.766 MB / 0.8887 GB Notification: Performance of Templates: time 0.04457/0.8426, allocations: 27.22 MB / 1.17 GB, free: 6.895 MB / 0.92 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.sim & ./Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_Examples_EquationFitReversible.csv","../files/Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches