Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatPumps.BaseClasses.Validation.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.BaseClasses.Validation.EquationFitReversible,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|equFit.QLoa_flow|equFit.QSou_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible") translateModel(Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|equFit.QLoa_flow|equFit.QSou_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006414/0.006414, allocations: 100.8 kB / 15.73 MB, free: 6.059 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.001341/0.001341, allocations: 197.5 kB / 16.68 MB, free: 5.969 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.385/1.385, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.728/2.728, allocations: 472.6 MB / 0.7453 GB, free: 448 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 63.84 kB / 1.069 GB, free: 9.57 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9594/0.9607, allocations: 159.9 MB / 1.226 GB, free: 13.49 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible): time 0.003904/0.9646, allocations: 2.379 MB / 1.228 GB, free: 11.11 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002716/0.9674, allocations: 1.402 MB / 1.229 GB, free: 9.699 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001676/0.9676, allocations: 8 kB / 1.229 GB, free: 9.691 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0006571/0.9683, allocations: 206.8 kB / 1.23 GB, free: 9.488 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001319/0.9684, allocations: 67.36 kB / 1.23 GB, free: 9.422 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003638/0.9688, allocations: 127.7 kB / 1.23 GB, free: 9.297 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0003542/0.9691, allocations: 326.7 kB / 1.23 GB, free: 8.977 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001333/0.9693, allocations: 56.61 kB / 1.23 GB, free: 8.922 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00021/0.9695, allocations: 127.5 kB / 1.23 GB, free: 8.797 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002703/0.9698, allocations: 179.4 kB / 1.23 GB, free: 8.621 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 5.771e-05/0.9699, allocations: 32 kB / 1.23 GB, free: 8.59 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001498/0.9701, allocations: 75.95 kB / 1.23 GB, free: 8.516 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001281/0.9702, allocations: 119.6 kB / 1.231 GB, free: 8.398 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0002501/0.9704, allocations: 175 kB / 1.231 GB, free: 8.227 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0006198/0.9711, allocations: 494.7 kB / 1.231 GB, free: 7.746 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.9711, allocations: 0 / 1.231 GB, free: 7.746 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.643e-06/0.9711, allocations: 7.938 kB / 1.231 GB, free: 7.738 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.115e-05/0.9711, allocations: 0 / 1.231 GB, free: 7.738 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.001355/0.9725, allocations: 0.712 MB / 1.232 GB, free: 6.977 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.9725, allocations: 12.03 kB / 1.232 GB, free: 6.965 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008354/0.9734, allocations: 148.4 kB / 1.232 GB, free: 6.82 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005365/0.9739, allocations: 358.6 kB / 1.232 GB, free: 6.43 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001596/0.9741, allocations: 88.17 kB / 1.233 GB, free: 6.332 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.885e-05/0.9742, allocations: 12.38 kB / 1.233 GB, free: 6.32 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008338/0.975, allocations: 295.4 kB / 1.233 GB, free: 6.027 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.975, allocations: 4 kB / 1.233 GB, free: 6.023 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.874e-05/0.9751, allocations: 0 / 1.233 GB, free: 6.023 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.9751, allocations: 4 kB / 1.233 GB, free: 6.02 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001112/0.9762, allocations: 416.4 kB / 1.233 GB, free: 5.613 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001676/0.9779, allocations: 0.8743 MB / 1.234 GB, free: 4.68 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007326/0.9786, allocations: 270.4 kB / 1.234 GB, free: 4.406 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005313/0.9792, allocations: 216.7 kB / 1.235 GB, free: 4.191 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.959e-05/0.9792, allocations: 4 kB / 1.235 GB, free: 4.188 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.627e-05/0.9792, allocations: 30.56 kB / 1.235 GB, free: 4.148 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=18): time 1.843e-06/0.9793, allocations: 0 / 1.235 GB, free: 4.148 MB / 0.9512 GB Notification: Performance of matching and sorting (n=18): time 0.00245/0.9817, allocations: 0.6551 MB / 1.235 GB, free: 3.488 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.431e-05/0.9818, allocations: 59.34 kB / 1.235 GB, free: 3.418 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008014/0.9826, allocations: 421.6 kB / 1.236 GB, free: 2.996 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 6.004e-05/0.9827, allocations: 33.7 kB / 1.236 GB, free: 2.957 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002351/0.9829, allocations: 176.1 kB / 1.236 GB, free: 2.781 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001007/0.983, allocations: 59.48 kB / 1.236 GB, free: 2.723 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001579/0.9832, allocations: 37.69 kB / 1.236 GB, free: 2.68 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000231/0.9834, allocations: 350.8 kB / 1.236 GB, free: 2.328 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007628/0.9842, allocations: 199.8 kB / 1.236 GB, free: 2.133 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007923/0.985, allocations: 232.6 kB / 1.237 GB, free: 1.895 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001372/0.9864, allocations: 366.3 kB / 1.237 GB, free: 1.535 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.9864, allocations: 0 / 1.237 GB, free: 1.535 MB / 0.9512 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001648/0.9881, allocations: 467 kB / 1.237 GB, free: 1.074 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.092e-05/0.9881, allocations: 8 kB / 1.237 GB, free: 1.066 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.9881, allocations: 0 / 1.237 GB, free: 1.066 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.673e-05/0.9881, allocations: 0 / 1.237 GB, free: 1.066 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008436/0.989, allocations: 67.91 kB / 1.238 GB, free: 1 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.251e-05/0.989, allocations: 7.938 kB / 1.238 GB, free: 0.9922 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004606/0.9895, allocations: 43.88 kB / 1.238 GB, free: 0.9492 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.585e-05/0.9896, allocations: 8 kB / 1.238 GB, free: 0.9414 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (reaToInt.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * 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.0003162/0.9899, allocations: 166.3 kB / 1.238 GB, free: 0.7695 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.99, allocations: 39.7 kB / 1.238 GB, free: 0.7305 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.932e-05/0.9901, allocations: 39.59 kB / 1.238 GB, free: 0.6953 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.9901, allocations: 0 / 1.238 GB, free: 0.6953 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.508e-05/0.9901, allocations: 7.938 kB / 1.238 GB, free: 0.6875 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.9902, allocations: 0 / 1.238 GB, free: 0.6875 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008425/0.991, allocations: 482.9 kB / 1.238 GB, free: 172 kB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.991, allocations: 3.938 kB / 1.238 GB, free: 168 kB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005241/0.9916, allocations: 59.92 kB / 1.238 GB, free: 108 kB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.083e-06/0.9916, allocations: 4 kB / 1.238 GB, free: 104 kB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.742e-05/0.9916, allocations: 0 / 1.238 GB, free: 104 kB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.285e-06/0.9916, allocations: 0 / 1.238 GB, free: 104 kB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.362e-06/0.9916, allocations: 7.922 kB / 1.238 GB, free: 96 kB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001665/0.9933, allocations: 0.5576 MB / 1.239 GB, free: 15.52 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001368/0.9935, allocations: 120.8 kB / 1.239 GB, free: 15.38 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.663e-05/0.9936, allocations: 7.984 kB / 1.239 GB, free: 15.37 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004264/0.994, allocations: 27.95 kB / 1.239 GB, free: 15.34 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001596/0.9942, allocations: 27.91 kB / 1.239 GB, free: 15.32 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.355e-05/0.9942, allocations: 7.984 kB / 1.239 GB, free: 15.31 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0005833/0.9948, allocations: 311.1 kB / 1.239 GB, free: 15.01 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.91e-07/0.9948, allocations: 0 / 1.239 GB, free: 15.01 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0004707/0.9953, allocations: 63.95 kB / 1.239 GB, free: 14.95 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (reaToInt.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 18 * 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 Backend phase and start with SimCode phase: time 0.0002226/0.9955, allocations: 109.3 kB / 1.24 GB, free: 14.83 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.001579/0.9971, allocations: 434 kB / 1.24 GB, free: 14.41 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.9971, allocations: 4 kB / 1.24 GB, free: 14.41 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.000859/0.998, allocations: 231.7 kB / 1.24 GB, free: 14.18 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006161/0.9986, allocations: 51.97 kB / 1.24 GB, free: 14.13 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001845/1, allocations: 0.6842 MB / 1.241 GB, free: 13.42 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005211/1.001, allocations: 0.7948 MB / 1.242 GB, free: 12.6 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.000397/1.001, allocations: 62.25 kB / 1.242 GB, free: 12.54 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002095/1.002, allocations: 31.42 kB / 1.242 GB, free: 12.51 MB / 0.9669 GB Notification: Performance of SimCode: time 3.988e-06/1.002, allocations: 0 / 1.242 GB, free: 12.51 MB / 0.9669 GB Notification: Performance of Templates: time 0.01125/1.013, allocations: 4.286 MB / 1.246 GB, free: 8.277 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible.sim & ./Buildings_latest_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_BaseClasses_Validation_EquationFitReversible.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches