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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001012/0.001013, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.008047/0.008047, allocations: 168.9 kB / 16.26 MB, free: 6.652 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.362/1.362, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.415/2.415, allocations: 390.9 MB / 0.6663 GB, free: 2.328 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000332/0.000332, allocations: 15.94 kB / 0.816 GB, free: 13.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6469/0.6473, allocations: 142.4 MB / 0.955 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.06035/0.7077, allocations: 61.1 MB / 1.015 GB, free: 2.074 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.01818/0.7259, allocations: 13.56 MB / 1.028 GB, free: 4.484 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001893/0.7278, allocations: 51.69 kB / 1.028 GB, free: 4.434 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.002114/0.7299, allocations: 0.8043 MB / 1.029 GB, free: 3.625 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.00533/0.7353, allocations: 2.204 MB / 1.031 GB, free: 1.414 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.003675/0.739, allocations: 1.481 MB / 1.032 GB, free: 15.95 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.007054/0.746, allocations: 5.467 MB / 1.038 GB, free: 10.46 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001799/0.7479, allocations: 1.175 MB / 1.039 GB, free: 9.262 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002692/0.7506, allocations: 1.369 MB / 1.04 GB, free: 7.887 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00159/0.7522, allocations: 1.229 MB / 1.041 GB, free: 6.652 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0001801/0.7524, allocations: 76 kB / 1.041 GB, free: 6.578 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002749/0.7551, allocations: 1.302 MB / 1.043 GB, free: 5.273 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0005388/0.7557, allocations: 406.3 kB / 1.043 GB, free: 4.875 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.001492/0.7572, allocations: 0.911 MB / 1.044 GB, free: 3.953 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.004696/0.7619, allocations: 3.01 MB / 1.047 GB, free: 0.9336 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.7619, allocations: 7.875 kB / 1.047 GB, free: 0.9258 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.104e-06/0.7619, allocations: 0 / 1.047 GB, free: 0.9258 MB / 0.795 GB Notification: Performance of Transformations before backend: time 3.486e-05/0.762, allocations: 0 / 1.047 GB, free: 0.9258 MB / 0.795 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.004343/0.7663, allocations: 2.018 MB / 1.049 GB, free: 14.85 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/0.7664, allocations: 12.03 kB / 1.049 GB, free: 14.84 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00145/0.7678, allocations: 350.4 kB / 1.049 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002471/0.7703, allocations: 1.439 MB / 1.051 GB, free: 13 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001728/0.7705, allocations: 177.4 kB / 1.051 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001826/0.7707, allocations: 108 kB / 1.051 GB, free: 12.71 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002999/0.7737, allocations: 1.484 MB / 1.052 GB, free: 11.14 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.743e-05/0.7737, allocations: 0 / 1.052 GB, free: 11.14 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001341/0.7739, allocations: 48 kB / 1.052 GB, free: 11.09 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.938e-05/0.7739, allocations: 28 kB / 1.052 GB, free: 11.06 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003425/0.7774, allocations: 1.444 MB / 1.054 GB, free: 9.613 MB / 0.8106 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.008401/0.7858, allocations: 6.663 MB / 1.06 GB, free: 2.5 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00231/0.7881, allocations: 1.219 MB / 1.062 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001427/0.7896, allocations: 0.6118 MB / 1.062 GB, free: 0.5859 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008875/0.7905, allocations: 1.141 MB / 1.063 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.369e-05/0.7905, allocations: 47.22 kB / 1.063 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=77): time 4.268e-06/0.7905, allocations: 0 / 1.063 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of matching and sorting (n=77): time 0.004638/0.7952, allocations: 1.746 MB / 1.065 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.721e-05/0.7953, allocations: 115.4 kB / 1.065 GB, free: 13.24 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002022/0.7973, allocations: 1.393 MB / 1.067 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.000131/0.7974, allocations: 45.7 kB / 1.067 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006094/0.798, allocations: 0.7163 MB / 1.067 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002694/0.7983, allocations: 264.2 kB / 1.068 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001345/0.7985, allocations: 81.67 kB / 1.068 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000131/0.7986, allocations: 334 kB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001395/0.8, allocations: 0.5368 MB / 1.068 GB, free: 9.84 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001552/0.8016, allocations: 0.7737 MB / 1.069 GB, free: 8.977 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002844/0.8044, allocations: 1.226 MB / 1.07 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.244e-06/0.8044, allocations: 4 kB / 1.07 GB, free: 7.684 MB / 0.8262 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.00358/0.808, allocations: 1.448 MB / 1.072 GB, free: 6.227 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001685/0.8082, allocations: 240.8 kB / 1.072 GB, free: 5.922 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.8082, allocations: 4 kB / 1.072 GB, free: 5.918 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.226e-05/0.8083, allocations: 12 kB / 1.072 GB, free: 5.906 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001301/0.8096, allocations: 291.6 kB / 1.072 GB, free: 5.621 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.582e-05/0.8096, allocations: 11.94 kB / 1.072 GB, free: 5.609 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001532/0.8111, allocations: 223 kB / 1.073 GB, free: 5.391 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.377e-05/0.8112, allocations: 39.98 kB / 1.073 GB, free: 5.352 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.037e-05/0.8112, allocations: 5.406 kB / 1.073 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003195/0.8145, allocations: 1.284 MB / 1.074 GB, free: 4.062 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.966e-06/0.8145, allocations: 12.12 kB / 1.074 GB, free: 4.051 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.118e-05/0.8145, allocations: 8 kB / 1.074 GB, free: 4.043 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001246/0.8157, allocations: 291.6 kB / 1.074 GB, free: 3.758 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.431e-05/0.8158, allocations: 11.94 kB / 1.074 GB, free: 3.746 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001633/0.8174, allocations: 215 kB / 1.074 GB, free: 3.535 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.827e-05/0.8175, allocations: 43.92 kB / 1.074 GB, free: 3.492 MB / 0.8262 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.0008495/0.8184, allocations: 468.7 kB / 1.075 GB, free: 3.023 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003033/0.8187, allocations: 150.1 kB / 1.075 GB, free: 2.875 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003637/0.8223, allocations: 1.572 MB / 1.077 GB, free: 1.273 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-05/0.8224, allocations: 11.98 kB / 1.077 GB, free: 1.262 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.8224, allocations: 0 / 1.077 GB, free: 1.262 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002797/0.8252, allocations: 1.21 MB / 1.078 GB, free: 20 kB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006451/0.8316, allocations: 3.195 MB / 1.081 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.468e-06/0.8317, allocations: 4 kB / 1.081 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001017/0.8327, allocations: 215.9 kB / 1.081 GB, free: 12.49 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.358e-05/0.8327, allocations: 8 kB / 1.081 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.692e-05/0.8328, allocations: 23.98 kB / 1.081 GB, free: 12.46 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.076e-05/0.8328, allocations: 11.94 kB / 1.081 GB, free: 12.45 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.875e-06/0.8328, allocations: 11.92 kB / 1.081 GB, free: 12.43 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004732/0.8376, allocations: 2.212 MB / 1.083 GB, free: 10.14 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008984/0.8385, allocations: 414.6 kB / 1.084 GB, free: 9.719 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002196/0.8387, allocations: 16 kB / 1.084 GB, free: 9.703 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001323/0.84, allocations: 167.7 kB / 1.084 GB, free: 9.539 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001924/0.8402, allocations: 84.33 kB / 1.084 GB, free: 9.457 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001025/0.8403, allocations: 51.91 kB / 1.084 GB, free: 9.406 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.001547/0.8419, allocations: 1.064 MB / 1.085 GB, free: 8.348 MB / 0.8419 GB Notification: Performance of sort global known variables: time 3.827e-06/0.8419, allocations: 4 kB / 1.085 GB, free: 8.344 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.00204/0.844, allocations: 0.7993 MB / 1.086 GB, free: 7.543 MB / 0.8419 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.0009349/0.8449, allocations: 448.6 kB / 1.086 GB, free: 7.105 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.004742/0.8497, allocations: 1.959 MB / 1.088 GB, free: 5.152 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 7.374e-06/0.8497, allocations: 8.062 kB / 1.088 GB, free: 5.145 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001689/0.8514, allocations: 0.6872 MB / 1.089 GB, free: 4.457 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005296/0.8567, allocations: 0.812 MB / 1.09 GB, free: 3.656 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005048/0.8618, allocations: 3.398 MB / 1.093 GB, free: 168 kB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008752/0.8627, allocations: 1.282 MB / 1.094 GB, free: 14.86 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.001902/0.8646, allocations: 408.1 kB / 1.095 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004327/0.865, allocations: 139.3 kB / 1.095 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of SimCode: time 8.61e-07/0.865, allocations: 0 / 1.095 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of Templates: time 0.05417/0.9192, allocations: 33.2 MB / 1.127 GB, free: 13.5 MB / 0.8887 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches