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/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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001352/0.001352, allocations: 118.9 kB / 16.37 MB, free: 6.016 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.001346/0.001346, allocations: 193 kB / 17.31 MB, free: 5.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.194/2.194, allocations: 390.3 MB / 0.6655 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 62.28 kB / 0.814 GB, free: 32.77 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2895/0.2908, allocations: 140.4 MB / 0.9511 GB, free: 8.062 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.06212/0.353, allocations: 62.63 MB / 1.012 GB, free: 9.211 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.02142/0.3745, allocations: 13.65 MB / 1.026 GB, free: 11.52 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00367/0.3782, allocations: 67.62 kB / 1.026 GB, free: 11.46 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.002893/0.3811, allocations: 0.9355 MB / 1.027 GB, free: 10.52 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.007218/0.3884, allocations: 2.394 MB / 1.029 GB, free: 8.113 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.005084/0.3935, allocations: 1.636 MB / 1.031 GB, free: 6.488 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.006851/0.4004, allocations: 4.3 MB / 1.035 GB, free: 2.18 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002394/0.4028, allocations: 1.394 MB / 1.036 GB, free: 0.75 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004276/0.4071, allocations: 1.646 MB / 1.038 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002081/0.4092, allocations: 1.292 MB / 1.039 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0003063/0.4095, allocations: 176 kB / 1.039 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003201/0.4127, allocations: 1.431 MB / 1.041 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0005229/0.4133, allocations: 0.5023 MB / 1.041 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.001252/0.4145, allocations: 1.003 MB / 1.042 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.004719/0.4192, allocations: 3.174 MB / 1.045 GB, free: 7.508 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.4193, allocations: 0 / 1.045 GB, free: 7.508 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.947e-06/0.4193, allocations: 0 / 1.045 GB, free: 7.508 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.948e-05/0.4193, allocations: 7.938 kB / 1.045 GB, free: 7.5 MB / 0.8262 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.004363/0.4237, allocations: 2.329 MB / 1.047 GB, free: 5.113 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.4238, allocations: 12.03 kB / 1.047 GB, free: 5.102 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001305/0.4251, allocations: 314.4 kB / 1.048 GB, free: 4.793 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002499/0.4276, allocations: 1.482 MB / 1.049 GB, free: 3.258 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001735/0.4278, allocations: 153.5 kB / 1.049 GB, free: 3.094 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001679/0.428, allocations: 112 kB / 1.049 GB, free: 2.984 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002763/0.4307, allocations: 1.441 MB / 1.051 GB, free: 1.453 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.914e-05/0.4308, allocations: 7.938 kB / 1.051 GB, free: 1.445 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001127/0.4309, allocations: 44 kB / 1.051 GB, free: 1.402 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.959e-05/0.4309, allocations: 32 kB / 1.051 GB, free: 1.371 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003022/0.434, allocations: 1.343 MB / 1.052 GB, free: 24 kB / 0.8262 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.008826/0.4428, allocations: 6.62 MB / 1.059 GB, free: 8.957 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002153/0.445, allocations: 1.179 MB / 1.06 GB, free: 7.703 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001213/0.4462, allocations: 0.5532 MB / 1.06 GB, free: 7.148 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009865/0.4472, allocations: 1.156 MB / 1.061 GB, free: 5.73 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.143e-05/0.4473, allocations: 43.22 kB / 1.062 GB, free: 5.68 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=77): time 3.156e-06/0.4473, allocations: 0 / 1.062 GB, free: 5.68 MB / 0.8419 GB Notification: Performance of matching and sorting (n=77): time 0.004101/0.4514, allocations: 1.593 MB / 1.063 GB, free: 4.082 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.537e-05/0.4515, allocations: 115.4 kB / 1.063 GB, free: 3.941 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002166/0.4537, allocations: 1.397 MB / 1.065 GB, free: 2.535 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0001842/0.4539, allocations: 45.7 kB / 1.065 GB, free: 2.484 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006027/0.4545, allocations: 0.7163 MB / 1.065 GB, free: 1.758 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.000294/0.4548, allocations: 260.2 kB / 1.066 GB, free: 1.5 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003024/0.4551, allocations: 174.5 kB / 1.066 GB, free: 1.32 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001713/0.4553, allocations: 345.9 kB / 1.066 GB, free: 0.9766 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00118/0.4564, allocations: 0.4888 MB / 1.066 GB, free: 496 kB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001376/0.4578, allocations: 0.7234 MB / 1.067 GB, free: 15.67 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002379/0.4602, allocations: 1.129 MB / 1.068 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.4602, allocations: 0 / 1.068 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003103/0.4633, allocations: 1.35 MB / 1.07 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.4634, allocations: 4.562 kB / 1.07 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.4634, allocations: 8 kB / 1.07 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.201e-05/0.4634, allocations: 12 kB / 1.07 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001187/0.4646, allocations: 275.5 kB / 1.07 GB, free: 12.83 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.713e-05/0.4646, allocations: 15.92 kB / 1.07 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001143/0.4658, allocations: 158.9 kB / 1.07 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.012e-05/0.4659, allocations: 35.98 kB / 1.07 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001655/0.4676, allocations: 0.7966 MB / 1.071 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001354/0.4689, allocations: 0.7268 MB / 1.072 GB, free: 11 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002356/0.4713, allocations: 1.117 MB / 1.073 GB, free: 9.824 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.206e-06/0.4713, allocations: 0 / 1.073 GB, free: 9.824 MB / 0.8575 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.002997/0.4743, allocations: 1.347 MB / 1.074 GB, free: 8.465 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.4743, allocations: 8 kB / 1.074 GB, free: 8.457 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.4743, allocations: 4 kB / 1.074 GB, free: 8.453 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.063e-05/0.4744, allocations: 11.94 kB / 1.074 GB, free: 8.441 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001145/0.4755, allocations: 275.9 kB / 1.074 GB, free: 8.172 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.758e-05/0.4755, allocations: 19.86 kB / 1.074 GB, free: 8.152 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001148/0.4767, allocations: 143.2 kB / 1.074 GB, free: 8.012 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.046e-05/0.4768, allocations: 36 kB / 1.074 GB, free: 7.977 MB / 0.8575 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 (intGreThr.y,reaToInt.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003002/0.4771, allocations: 232.1 kB / 1.075 GB, free: 7.742 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000274/0.4774, allocations: 150.1 kB / 1.075 GB, free: 7.594 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003177/0.4806, allocations: 1.47 MB / 1.076 GB, free: 6.094 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.569e-05/0.4806, allocations: 15.92 kB / 1.076 GB, free: 6.078 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.4806, allocations: 0 / 1.076 GB, free: 6.078 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002412/0.483, allocations: 1.113 MB / 1.077 GB, free: 4.934 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005512/0.4885, allocations: 3.098 MB / 1.08 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.115e-06/0.4886, allocations: 4 kB / 1.08 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000958/0.4895, allocations: 192.3 kB / 1.081 GB, free: 1.52 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.045e-05/0.4896, allocations: 8 kB / 1.081 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.09e-05/0.4896, allocations: 27.92 kB / 1.081 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.438e-06/0.4897, allocations: 11.94 kB / 1.081 GB, free: 1.473 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.242e-06/0.4897, allocations: 4 kB / 1.081 GB, free: 1.469 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4476/0.9373, allocations: 2.063 MB / 1.083 GB, free: 130.2 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009011/0.9382, allocations: 384.5 kB / 1.083 GB, free: 130.1 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002495/0.9385, allocations: 22.12 kB / 1.083 GB, free: 130.1 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001129/0.9396, allocations: 103.3 kB / 1.083 GB, free: 130.1 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002186/0.9398, allocations: 83.73 kB / 1.083 GB, free: 130.1 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000113/0.9399, allocations: 39.97 kB / 1.083 GB, free: 130.1 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.001838/0.9418, allocations: 1.081 MB / 1.084 GB, free: 130 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.21e-07/0.9418, allocations: 2.281 kB / 1.084 GB, free: 130 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.001982/0.9438, allocations: 0.7983 MB / 1.085 GB, free: 129.9 MB / 0.8575 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008892/0.9447, allocations: 474 kB / 1.086 GB, free: 129.8 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.004233/0.9489, allocations: 1.812 MB / 1.087 GB, free: 129.3 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 8.917e-06/0.949, allocations: 2.562 kB / 1.087 GB, free: 129.3 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.001555/0.9505, allocations: 0.6438 MB / 1.088 GB, free: 129.1 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003708/0.9542, allocations: 0.82 MB / 1.089 GB, free: 128.9 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004298/0.9585, allocations: 2.752 MB / 1.091 GB, free: 127.5 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008939/0.9595, allocations: 1.283 MB / 1.093 GB, free: 126.7 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.001625/0.9611, allocations: 406 kB / 1.093 GB, free: 126.7 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004219/0.9615, allocations: 131.4 kB / 1.093 GB, free: 126.7 MB / 0.8575 GB Notification: Performance of SimCode: time 9.62e-07/0.9615, allocations: 0 / 1.093 GB, free: 126.7 MB / 0.8575 GB Notification: Performance of Templates: time 0.05854/1.02, allocations: 33.45 MB / 1.126 GB, free: 115.3 MB / 0.8575 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 -s cvode -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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches