Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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,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_10_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_10_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.005311/0.005311, allocations: 100.5 kB / 15.73 MB, free: 6.02 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.001207/0.001207, allocations: 189.5 kB / 16.67 MB, free: 5.938 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.381/1.381, allocations: 222.9 MB / 240.4 MB, free: 15.07 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.459/2.459, allocations: 437 MB / 0.7105 GB, free: 4.367 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 63.91 kB / 1.019 GB, free: 9.402 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7848/0.7861, allocations: 151.6 MB / 1.167 GB, free: 3.852 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.05829/0.8444, allocations: 62.65 MB / 1.228 GB, free: 4.98 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.01877/0.8633, allocations: 13.65 MB / 1.241 GB, free: 7.289 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002349/0.8657, allocations: 59.69 kB / 1.241 GB, free: 7.23 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.002895/0.8686, allocations: 0.9784 MB / 1.242 GB, free: 6.246 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.007675/0.8763, allocations: 2.497 MB / 1.245 GB, free: 3.738 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.004264/0.8806, allocations: 1.646 MB / 1.246 GB, free: 2.105 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.005207/0.8858, allocations: 4.301 MB / 1.25 GB, free: 13.8 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001855/0.8877, allocations: 1.406 MB / 1.252 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003177/0.8909, allocations: 1.682 MB / 1.253 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001439/0.8923, allocations: 1.292 MB / 1.255 GB, free: 9.375 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0002532/0.8926, allocations: 176 kB / 1.255 GB, free: 9.203 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002733/0.8953, allocations: 1.427 MB / 1.256 GB, free: 7.773 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0004367/0.8958, allocations: 0.5061 MB / 1.257 GB, free: 7.266 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0009185/0.8967, allocations: 1.003 MB / 1.258 GB, free: 6.258 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.003723/0.9004, allocations: 3.185 MB / 1.261 GB, free: 3.066 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.9004, allocations: 0 / 1.261 GB, free: 3.066 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.765e-06/0.9004, allocations: 0 / 1.261 GB, free: 3.066 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 2.287e-05/0.9005, allocations: 0 / 1.261 GB, free: 3.066 MB / 0.9825 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.004083/0.9046, allocations: 2.403 MB / 1.263 GB, free: 0.6016 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.9046, allocations: 16.92 kB / 1.263 GB, free: 0.5859 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001281/0.9059, allocations: 323.5 kB / 1.263 GB, free: 276 kB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002275/0.9082, allocations: 1.488 MB / 1.265 GB, free: 14.73 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001595/0.9084, allocations: 153.5 kB / 1.265 GB, free: 14.57 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001592/0.9085, allocations: 112 kB / 1.265 GB, free: 14.46 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002672/0.9112, allocations: 1.441 MB / 1.267 GB, free: 12.93 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.021e-05/0.9112, allocations: 3.938 kB / 1.267 GB, free: 12.92 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001127/0.9114, allocations: 44 kB / 1.267 GB, free: 12.88 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.682e-05/0.9114, allocations: 36 kB / 1.267 GB, free: 12.84 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003048/0.9145, allocations: 1.339 MB / 1.268 GB, free: 11.51 MB / 0.9981 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.007573/0.9221, allocations: 6.644 MB / 1.274 GB, free: 4.418 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002117/0.9242, allocations: 1.175 MB / 1.276 GB, free: 3.16 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001249/0.9254, allocations: 0.5648 MB / 1.276 GB, free: 2.594 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008018/0.9263, allocations: 1.149 MB / 1.277 GB, free: 1.188 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.018e-05/0.9263, allocations: 43.22 kB / 1.277 GB, free: 1.137 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=77): time 2.415e-06/0.9263, allocations: 4 kB / 1.277 GB, free: 1.133 MB / 0.9981 GB Notification: Performance of matching and sorting (n=77): time 0.004015/0.9303, allocations: 1.598 MB / 1.279 GB, free: 15.53 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.596e-05/0.9304, allocations: 111.6 kB / 1.279 GB, free: 15.39 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001649/0.9321, allocations: 1.412 MB / 1.28 GB, free: 13.97 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 8.299e-05/0.9322, allocations: 45.7 kB / 1.28 GB, free: 13.92 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005496/0.9327, allocations: 0.7214 MB / 1.281 GB, free: 13.19 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002283/0.9329, allocations: 281.6 kB / 1.281 GB, free: 12.91 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003019/0.9333, allocations: 174.6 kB / 1.282 GB, free: 12.74 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001157/0.9334, allocations: 341.9 kB / 1.282 GB, free: 12.4 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001262/0.9347, allocations: 0.4927 MB / 1.282 GB, free: 11.9 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001426/0.9361, allocations: 0.723 MB / 1.283 GB, free: 11.09 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002534/0.9386, allocations: 1.129 MB / 1.284 GB, free: 9.895 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.459e-06/0.9386, allocations: 0 / 1.284 GB, free: 9.895 MB / 1.014 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.00311/0.9418, allocations: 1.355 MB / 1.285 GB, free: 8.531 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.9418, allocations: 8 kB / 1.285 GB, free: 8.523 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.9418, allocations: 4.562 kB / 1.285 GB, free: 8.52 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.176e-05/0.9418, allocations: 12 kB / 1.286 GB, free: 8.508 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0012/0.943, allocations: 271.6 kB / 1.286 GB, free: 8.242 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.491e-05/0.9431, allocations: 15.92 kB / 1.286 GB, free: 8.227 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00112/0.9442, allocations: 163.2 kB / 1.286 GB, free: 8.066 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.712e-05/0.9443, allocations: 35.98 kB / 1.286 GB, free: 8.031 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001665/0.946, allocations: 0.7986 MB / 1.287 GB, free: 7.227 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001425/0.9474, allocations: 0.7229 MB / 1.287 GB, free: 6.414 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002517/0.9499, allocations: 1.117 MB / 1.289 GB, free: 5.238 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.886e-06/0.95, allocations: 0 / 1.289 GB, free: 5.238 MB / 1.014 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.003113/0.9531, allocations: 1.355 MB / 1.29 GB, free: 3.871 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.228e-05/0.9531, allocations: 8 kB / 1.29 GB, free: 3.863 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.9531, allocations: 4 kB / 1.29 GB, free: 3.859 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.668e-06/0.9531, allocations: 8 kB / 1.29 GB, free: 3.852 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001155/0.9543, allocations: 279.8 kB / 1.29 GB, free: 3.578 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.774e-05/0.9543, allocations: 11.98 kB / 1.29 GB, free: 3.566 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001109/0.9554, allocations: 143.4 kB / 1.29 GB, free: 3.426 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.594e-05/0.9555, allocations: 47.92 kB / 1.29 GB, free: 3.379 MB / 1.014 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.000276/0.9558, allocations: 228 kB / 1.291 GB, free: 3.148 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002968/0.9561, allocations: 155 kB / 1.291 GB, free: 2.996 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00332/0.9595, allocations: 1.486 MB / 1.292 GB, free: 1.48 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.398e-05/0.9595, allocations: 8 kB / 1.292 GB, free: 1.473 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.9595, allocations: 0 / 1.292 GB, free: 1.473 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002514/0.962, allocations: 1.113 MB / 1.293 GB, free: 336 kB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005845/0.9679, allocations: 3.098 MB / 1.296 GB, free: 13.11 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.224e-05/0.9679, allocations: 7.984 kB / 1.296 GB, free: 13.11 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009505/0.9689, allocations: 192.3 kB / 1.296 GB, free: 12.92 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.343e-05/0.9689, allocations: 8 kB / 1.296 GB, free: 12.91 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.784e-05/0.969, allocations: 23.98 kB / 1.297 GB, free: 12.89 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.247e-05/0.969, allocations: 15.94 kB / 1.297 GB, free: 12.87 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.512e-06/0.969, allocations: 11.88 kB / 1.297 GB, free: 12.86 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004399/0.9734, allocations: 2.076 MB / 1.299 GB, free: 10.71 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000742/0.9742, allocations: 391.6 kB / 1.299 GB, free: 10.3 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002919/0.9745, allocations: 27.95 kB / 1.299 GB, free: 10.28 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001238/0.9757, allocations: 99.92 kB / 1.299 GB, free: 10.18 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001848/0.9759, allocations: 80.34 kB / 1.299 GB, free: 10.1 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001042/0.976, allocations: 47.91 kB / 1.299 GB, free: 10.05 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.001685/0.9777, allocations: 1.079 MB / 1.3 GB, free: 8.977 MB / 1.029 GB Notification: Performance of sort global known variables: time 3.6e-07/0.9777, allocations: 0 / 1.3 GB, free: 8.977 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.002183/0.9799, allocations: 0.8071 MB / 1.301 GB, free: 8.168 MB / 1.029 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.001047/0.981, allocations: 471.2 kB / 1.301 GB, free: 7.707 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.004531/0.9855, allocations: 1.814 MB / 1.303 GB, free: 5.898 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.9855, allocations: 0 / 1.303 GB, free: 5.898 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.001634/0.9872, allocations: 0.6441 MB / 1.304 GB, free: 5.258 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003777/0.9909, allocations: 0.8276 MB / 1.305 GB, free: 4.445 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004857/0.9958, allocations: 2.802 MB / 1.307 GB, free: 1.551 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001026/0.9969, allocations: 1.281 MB / 1.309 GB, free: 244 kB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.001596/0.9985, allocations: 416.2 kB / 1.309 GB, free: 15.82 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004087/0.9989, allocations: 123.3 kB / 1.309 GB, free: 15.7 MB / 1.045 GB Notification: Performance of SimCode: time 7.92e-07/0.9989, allocations: 0 / 1.309 GB, free: 15.7 MB / 1.045 GB Notification: Performance of Templates: time 0.05434/1.053, allocations: 33.7 MB / 1.342 GB, free: 14.37 MB / 1.076 GB make -j1 -f Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.makefile (rm -f Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; mkfifo Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe >> ../files/Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.sim & ./Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_HeatPumps_Examples_EquationFitReversible.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches