Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_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_10_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_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001614/0.001614, allocations: 114.6 kB / 16.42 MB, free: 6.465 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.001854/0.001854, allocations: 189.5 kB / 17.35 MB, free: 5.711 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.379/1.379, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.493/2.493, allocations: 437 MB / 0.7112 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 59.91 kB / 1.019 GB, free: 9.461 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8143/0.8157, allocations: 151.6 MB / 1.167 GB, free: 3.883 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop): time 0.08689/0.9027, allocations: 90.37 MB / 1.256 GB, free: 9.203 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.03474/0.9374, allocations: 24.37 MB / 1.279 GB, free: 0.7656 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004223/0.9417, allocations: 115.4 kB / 1.279 GB, free: 0.6523 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.007158/0.9489, allocations: 2.48 MB / 1.282 GB, free: 14.16 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.01142/0.9603, allocations: 3.998 MB / 1.286 GB, free: 10.14 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0088/0.9691, allocations: 3.184 MB / 1.289 GB, free: 6.992 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.01597/0.9851, allocations: 9.952 MB / 1.299 GB, free: 13.03 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004667/0.9898, allocations: 2.387 MB / 1.301 GB, free: 10.58 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006979/0.9968, allocations: 2.805 MB / 1.304 GB, free: 7.773 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004055/1.001, allocations: 2.136 MB / 1.306 GB, free: 5.629 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.001224/1.002, allocations: 312 kB / 1.306 GB, free: 5.324 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00657/1.009, allocations: 2.62 MB / 1.309 GB, free: 2.699 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.001507/1.01, allocations: 0.954 MB / 1.31 GB, free: 1.742 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.003745/1.014, allocations: 1.82 MB / 1.311 GB, free: 15.91 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.01037/1.024, allocations: 5.878 MB / 1.317 GB, free: 10.02 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/1.024, allocations: 3.938 kB / 1.317 GB, free: 10.01 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.413e-06/1.024, allocations: 3.938 kB / 1.317 GB, free: 10.01 MB / 1.045 GB Notification: Performance of Transformations before backend: time 0.0001637/1.025, allocations: 4 kB / 1.317 GB, free: 10 MB / 1.045 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 387 * Number of variables: 387 Notification: Performance of Generate backend data structure: time 0.008743/1.033, allocations: 4.138 MB / 1.321 GB, free: 5.758 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/1.033, allocations: 12.88 kB / 1.321 GB, free: 5.746 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003719/1.037, allocations: 0.7745 MB / 1.322 GB, free: 4.969 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005913/1.043, allocations: 3.466 MB / 1.325 GB, free: 1.441 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002159/1.043, allocations: 210.7 kB / 1.325 GB, free: 1.223 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000299/1.044, allocations: 187.9 kB / 1.326 GB, free: 1.039 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003847/1.047, allocations: 2.027 MB / 1.328 GB, free: 14.92 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.537e-05/1.047, allocations: 3.984 kB / 1.328 GB, free: 14.91 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001727/1.048, allocations: 72 kB / 1.328 GB, free: 14.84 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.95e-05/1.048, allocations: 62.78 kB / 1.328 GB, free: 14.78 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004298/1.052, allocations: 1.826 MB / 1.33 GB, free: 12.95 MB / 1.061 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.01403/1.066, allocations: 9.818 MB / 1.339 GB, free: 2.605 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002844/1.069, allocations: 1.24 MB / 1.34 GB, free: 1.34 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001654/1.071, allocations: 0.7214 MB / 1.341 GB, free: 0.6211 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006013/1.077, allocations: 3.918 MB / 1.345 GB, free: 12.37 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001836/1.078, allocations: 0.8247 MB / 1.346 GB, free: 11.54 MB / 1.076 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006826/1.079, allocations: 127.1 kB / 1.346 GB, free: 11.41 MB / 1.076 GB Notification: Performance of pre-optimization done (n=98): time 5.881e-06/1.079, allocations: 0 / 1.346 GB, free: 11.41 MB / 1.076 GB Notification: Performance of matching and sorting (n=98): time 0.005236/1.084, allocations: 2.076 MB / 1.348 GB, free: 9.328 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.433e-05/1.085, allocations: 94.11 kB / 1.348 GB, free: 9.219 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004775/1.089, allocations: 2.951 MB / 1.351 GB, free: 6.262 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 0.0001745/1.089, allocations: 57.7 kB / 1.351 GB, free: 6.199 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.001257/1.091, allocations: 1.306 MB / 1.352 GB, free: 4.883 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003437/1.091, allocations: 357 kB / 1.352 GB, free: 4.531 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007677/1.092, allocations: 439.3 kB / 1.353 GB, free: 4.094 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 9.12e-05/1.092, allocations: 301.1 kB / 1.353 GB, free: 3.797 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002214/1.094, allocations: 0.9612 MB / 1.354 GB, free: 2.832 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002573/1.097, allocations: 1.462 MB / 1.356 GB, free: 1.16 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004091/1.101, allocations: 2.195 MB / 1.358 GB, free: 14.77 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.369e-05/1.101, allocations: 4 kB / 1.358 GB, free: 14.77 MB / 1.092 GB Notification: Performance of matching and sorting (n=243) (initialization): time 0.006012/1.107, allocations: 2.855 MB / 1.36 GB, free: 11.88 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001038/1.107, allocations: 145 kB / 1.361 GB, free: 11.71 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.193e-05/1.107, allocations: 12.84 kB / 1.361 GB, free: 11.7 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.507e-05/1.107, allocations: 20 kB / 1.361 GB, free: 11.68 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001726/1.109, allocations: 415.3 kB / 1.361 GB, free: 11.27 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.394e-05/1.109, allocations: 31.92 kB / 1.361 GB, free: 11.24 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00277/1.112, allocations: 251.7 kB / 1.361 GB, free: 11 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002154/1.112, allocations: 95.95 kB / 1.361 GB, free: 10.9 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003097/1.115, allocations: 1.507 MB / 1.363 GB, free: 9.391 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002519/1.118, allocations: 1.466 MB / 1.364 GB, free: 7.723 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004046/1.122, allocations: 2.194 MB / 1.366 GB, free: 5.328 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.749e-06/1.122, allocations: 4 kB / 1.366 GB, free: 5.324 MB / 1.092 GB Notification: Performance of matching and sorting (n=243) (initialization_lambda0): time 0.006226/1.128, allocations: 2.847 MB / 1.369 GB, free: 2.441 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001094/1.128, allocations: 143.7 kB / 1.369 GB, free: 2.277 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.028e-05/1.128, allocations: 15.94 kB / 1.369 GB, free: 2.262 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.103e-05/1.128, allocations: 20 kB / 1.369 GB, free: 2.242 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001675/1.13, allocations: 411.4 kB / 1.37 GB, free: 1.84 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.465e-05/1.13, allocations: 23.94 kB / 1.37 GB, free: 1.816 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00287/1.133, allocations: 267.6 kB / 1.37 GB, free: 1.555 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002372/1.133, allocations: 99.95 kB / 1.37 GB, free: 1.457 MB / 1.092 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,TLoaSet.booPul.y,$PRE.TLoaSet.booPul.y,TSouEnt.booPul.y,$PRE.TSouEnt.booPul.y,pulse.booPul.y,$PRE.pulse.booPul.y,uMod.booPul.y,$PRE.uMod.booPul.y,reaToInt.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (202): * Single equations (assignments): 196 * Array equations: 1 * Algorithm blocks: 4 * Record equations: 1 * 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.0005377/1.133, allocations: 304.3 kB / 1.37 GB, free: 1.152 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008215/1.134, allocations: 294 kB / 1.371 GB, free: 0.8633 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004592/1.139, allocations: 1.858 MB / 1.373 GB, free: 15 MB / 1.107 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003105/1.142, allocations: 1.41 MB / 1.374 GB, free: 13.56 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/1.142, allocations: 0 / 1.374 GB, free: 13.56 MB / 1.107 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001227/1.143, allocations: 0.5497 MB / 1.374 GB, free: 12.99 MB / 1.107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005896/1.144, allocations: 23.98 kB / 1.375 GB, free: 12.97 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001871/1.146, allocations: 119.9 kB / 1.375 GB, free: 12.85 MB / 1.107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001924/1.146, allocations: 76.83 kB / 1.375 GB, free: 12.78 MB / 1.107 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004229/1.15, allocations: 1.61 MB / 1.376 GB, free: 11.16 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005619/1.156, allocations: 2.687 MB / 1.379 GB, free: 8.453 MB / 1.107 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00156/1.157, allocations: 0.7144 MB / 1.38 GB, free: 7.738 MB / 1.107 GB Notification: Performance of sorting global known variables: time 0.003511/1.161, allocations: 2.006 MB / 1.382 GB, free: 5.738 MB / 1.107 GB Notification: Performance of Backend: time 4.61e-07/1.161, allocations: 0 / 1.382 GB, free: 5.738 MB / 1.107 GB Notification: Performance of simCode: created initialization part: time 0.009633/1.171, allocations: 4.154 MB / 1.386 GB, free: 1.488 MB / 1.107 GB Notification: Performance of SimCode: time 0.01141/1.182, allocations: 6.04 MB / 1.392 GB, free: 11.4 MB / 1.123 GB Notification: Performance of Templates: time 0.1083/1.29, allocations: 69.4 MB / 1.459 GB, free: 6.617 MB / 1.186 GB make -j1 -f Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.makefile (rm -f Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe ; mkfifo Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe >> ../files/Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.sim & ./Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_HeatPumps_Examples_EquationFitReversible_CoolingClosedLoop.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches