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.001678/0.001679, allocations: 111.2 kB / 16.42 MB, free: 6.461 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.00187/0.00187, allocations: 187.9 kB / 17.35 MB, free: 5.715 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.31/1.31, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.512/2.512, allocations: 461.7 MB / 0.7352 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 67.89 kB / 1.055 GB, free: 7.707 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7619/0.7633, allocations: 157.4 MB / 1.208 GB, free: 13.76 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.06295/0.8263, allocations: 62.64 MB / 1.269 GB, free: 14.91 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01774/0.8441, allocations: 13.66 MB / 1.283 GB, free: 1.207 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002021/0.8461, allocations: 59.69 kB / 1.283 GB, free: 1.148 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.002549/0.8487, allocations: 0.9433 MB / 1.284 GB, free: 204 kB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.006003/0.8547, allocations: 2.394 MB / 1.286 GB, free: 13.8 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.003926/0.8587, allocations: 1.625 MB / 1.288 GB, free: 12.18 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.00536/0.8641, allocations: 4.298 MB / 1.292 GB, free: 7.875 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002233/0.8663, allocations: 1.419 MB / 1.293 GB, free: 6.414 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003386/0.8697, allocations: 1.646 MB / 1.295 GB, free: 4.773 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002225/0.8719, allocations: 1.288 MB / 1.296 GB, free: 3.48 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.000559/0.8725, allocations: 176 kB / 1.296 GB, free: 3.309 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003295/0.8758, allocations: 1.435 MB / 1.298 GB, free: 1.871 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0007926/0.8766, allocations: 0.4984 MB / 1.298 GB, free: 1.371 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.001964/0.8786, allocations: 0.9992 MB / 1.299 GB, free: 376 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.005026/0.8836, allocations: 3.174 MB / 1.302 GB, free: 13.18 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.8836, allocations: 0 / 1.302 GB, free: 13.18 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.573e-06/0.8837, allocations: 4 kB / 1.302 GB, free: 13.18 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.647e-05/0.8837, allocations: 0 / 1.302 GB, free: 13.18 MB / 1.029 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.00492/0.8887, allocations: 2.333 MB / 1.304 GB, free: 10.79 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.8887, allocations: 11.97 kB / 1.304 GB, free: 10.78 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001407/0.8901, allocations: 322.4 kB / 1.305 GB, free: 10.46 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002744/0.8929, allocations: 1.479 MB / 1.306 GB, free: 8.93 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001928/0.8931, allocations: 165.5 kB / 1.306 GB, free: 8.754 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001802/0.8933, allocations: 111.9 kB / 1.307 GB, free: 8.645 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002943/0.8963, allocations: 1.439 MB / 1.308 GB, free: 7.117 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.881e-05/0.8963, allocations: 0 / 1.308 GB, free: 7.117 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001184/0.8964, allocations: 44 kB / 1.308 GB, free: 7.074 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.951e-05/0.8965, allocations: 32 kB / 1.308 GB, free: 7.043 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003157/0.8996, allocations: 1.343 MB / 1.309 GB, free: 5.699 MB / 1.029 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.007971/0.9076, allocations: 6.628 MB / 1.316 GB, free: 14.62 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002128/0.9098, allocations: 1.166 MB / 1.317 GB, free: 13.38 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001282/0.9111, allocations: 0.5622 MB / 1.317 GB, free: 12.81 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008026/0.9119, allocations: 1.149 MB / 1.319 GB, free: 11.4 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.178e-05/0.9119, allocations: 43.22 kB / 1.319 GB, free: 11.35 MB / 1.045 GB Notification: Performance of pre-optimization done (n=77): time 2.855e-06/0.9119, allocations: 4 kB / 1.319 GB, free: 11.35 MB / 1.045 GB Notification: Performance of matching and sorting (n=77): time 0.004151/0.9161, allocations: 1.586 MB / 1.32 GB, free: 9.758 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.98e-05/0.9162, allocations: 115.5 kB / 1.32 GB, free: 9.617 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001914/0.9181, allocations: 1.405 MB / 1.322 GB, free: 8.203 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 9.647e-05/0.9182, allocations: 41.7 kB / 1.322 GB, free: 8.156 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005633/0.9188, allocations: 0.7164 MB / 1.322 GB, free: 7.43 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002418/0.919, allocations: 264.1 kB / 1.323 GB, free: 7.168 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003111/0.9193, allocations: 182.5 kB / 1.323 GB, free: 6.984 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001148/0.9195, allocations: 349.9 kB / 1.323 GB, free: 6.637 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001242/0.9207, allocations: 0.4888 MB / 1.324 GB, free: 6.145 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001412/0.9221, allocations: 0.7191 MB / 1.324 GB, free: 5.336 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002531/0.9247, allocations: 1.129 MB / 1.325 GB, free: 4.145 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.191e-06/0.9247, allocations: 0 / 1.325 GB, free: 4.145 MB / 1.045 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003209/0.9279, allocations: 1.351 MB / 1.327 GB, free: 2.785 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.9279, allocations: 12 kB / 1.327 GB, free: 2.773 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.928, allocations: 4 kB / 1.327 GB, free: 2.77 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.121e-05/0.928, allocations: 8 kB / 1.327 GB, free: 2.762 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001208/0.9292, allocations: 279.5 kB / 1.327 GB, free: 2.488 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.597e-05/0.9292, allocations: 8 kB / 1.327 GB, free: 2.48 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001177/0.9304, allocations: 154.9 kB / 1.327 GB, free: 2.328 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.826e-05/0.9305, allocations: 36 kB / 1.327 GB, free: 2.293 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0017/0.9322, allocations: 0.8042 MB / 1.328 GB, free: 1.484 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001382/0.9336, allocations: 0.7229 MB / 1.329 GB, free: 0.6719 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002467/0.9361, allocations: 1.121 MB / 1.33 GB, free: 15.48 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.067e-06/0.9361, allocations: 4 kB / 1.33 GB, free: 15.48 MB / 1.061 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.003151/0.9393, allocations: 1.346 MB / 1.331 GB, free: 14.13 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.9393, allocations: 8 kB / 1.331 GB, free: 14.12 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.9393, allocations: 4 kB / 1.331 GB, free: 14.12 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.096e-05/0.9393, allocations: 8 kB / 1.331 GB, free: 14.11 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001156/0.9405, allocations: 276.2 kB / 1.331 GB, free: 13.84 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.619e-05/0.9405, allocations: 15.92 kB / 1.331 GB, free: 13.82 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001151/0.9417, allocations: 143.2 kB / 1.332 GB, free: 13.68 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.041e-05/0.9418, allocations: 39.92 kB / 1.332 GB, free: 13.64 MB / 1.061 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.0002883/0.9421, allocations: 236 kB / 1.332 GB, free: 13.41 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00036/0.9424, allocations: 154.1 kB / 1.332 GB, free: 13.25 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003287/0.9457, allocations: 1.478 MB / 1.333 GB, free: 11.74 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002467/0.9482, allocations: 1.109 MB / 1.335 GB, free: 10.6 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.9482, allocations: 0 / 1.335 GB, free: 10.6 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006209/0.9489, allocations: 363 kB / 1.335 GB, free: 10.23 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002609/0.9491, allocations: 15.94 kB / 1.335 GB, free: 10.21 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00112/0.9503, allocations: 95.86 kB / 1.335 GB, free: 10.12 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001791/0.9505, allocations: 68.56 kB / 1.335 GB, free: 10.05 MB / 1.061 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003408/0.9539, allocations: 1.278 MB / 1.336 GB, free: 8.766 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004346/0.9582, allocations: 2.049 MB / 1.338 GB, free: 6.695 MB / 1.061 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001258/0.9595, allocations: 0.5595 MB / 1.339 GB, free: 6.133 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.001477/0.961, allocations: 0.9827 MB / 1.34 GB, free: 5.152 MB / 1.061 GB Notification: Performance of Backend: time 4.6e-07/0.961, allocations: 0 / 1.34 GB, free: 5.152 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.005252/0.9663, allocations: 1.866 MB / 1.342 GB, free: 3.293 MB / 1.061 GB Notification: Performance of SimCode: time 0.006005/0.9723, allocations: 3.352 MB / 1.345 GB, free: 15.89 MB / 1.076 GB Notification: Performance of Templates: time 0.05888/1.031, allocations: 37.68 MB / 1.382 GB, free: 10.54 MB / 1.107 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches