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.001357/0.001356, allocations: 107.1 kB / 15.99 MB, free: 6.348 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.001395/0.001396, allocations: 191.9 kB / 16.91 MB, free: 6.184 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.409/1.409, allocations: 222.9 MB / 240.6 MB, free: 15.41 MB / 206.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.172/2.172, allocations: 390.2 MB / 0.665 GB, free: 0.7891 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 65.92 kB / 0.8127 GB, free: 33.18 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3044/0.3057, allocations: 140.4 MB / 0.9498 GB, free: 9.188 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.06452/0.3703, allocations: 62.12 MB / 1.01 GB, free: 10.86 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.01978/0.3901, allocations: 13.54 MB / 1.024 GB, free: 13.28 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002462/0.3926, allocations: 59.62 kB / 1.024 GB, free: 13.22 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.003017/0.3956, allocations: 0.8277 MB / 1.025 GB, free: 12.39 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.006763/0.4025, allocations: 2.232 MB / 1.027 GB, free: 10.15 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.004332/0.4068, allocations: 1.499 MB / 1.028 GB, free: 8.664 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.00582/0.4127, allocations: 4.312 MB / 1.032 GB, free: 4.34 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002398/0.4151, allocations: 1.406 MB / 1.034 GB, free: 2.898 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004073/0.4192, allocations: 1.655 MB / 1.035 GB, free: 1.242 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002171/0.4213, allocations: 1.334 MB / 1.037 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0005525/0.4219, allocations: 176 kB / 1.037 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003381/0.4253, allocations: 1.443 MB / 1.038 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0007111/0.426, allocations: 0.5062 MB / 1.039 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.001864/0.4279, allocations: 1.015 MB / 1.04 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.003528/0.4314, allocations: 2.452 MB / 1.042 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.4315, allocations: 4 kB / 1.042 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.693e-06/0.4315, allocations: 0 / 1.042 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.53e-05/0.4316, allocations: 3.938 kB / 1.042 GB, free: 10.29 MB / 0.8262 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.005388/0.437, allocations: 2.333 MB / 1.044 GB, free: 7.902 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.437, allocations: 12.02 kB / 1.044 GB, free: 7.891 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001564/0.4386, allocations: 326.3 kB / 1.045 GB, free: 7.57 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002606/0.4412, allocations: 1.435 MB / 1.046 GB, free: 6.082 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001759/0.4414, allocations: 161.5 kB / 1.046 GB, free: 5.91 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001952/0.4416, allocations: 104 kB / 1.046 GB, free: 5.809 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002932/0.4445, allocations: 1.434 MB / 1.048 GB, free: 4.285 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.568e-05/0.4446, allocations: 19.84 kB / 1.048 GB, free: 4.266 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001305/0.4447, allocations: 48 kB / 1.048 GB, free: 4.219 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.794e-05/0.4448, allocations: 31.98 kB / 1.048 GB, free: 4.188 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003114/0.4479, allocations: 1.339 MB / 1.049 GB, free: 2.844 MB / 0.8262 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.008543/0.4564, allocations: 6.616 MB / 1.056 GB, free: 11.78 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002307/0.4588, allocations: 1.17 MB / 1.057 GB, free: 10.53 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001375/0.4602, allocations: 0.5649 MB / 1.057 GB, free: 9.961 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009587/0.4611, allocations: 1.145 MB / 1.058 GB, free: 8.555 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5e-05/0.4612, allocations: 43.22 kB / 1.058 GB, free: 8.504 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=77): time 3.156e-06/0.4612, allocations: 4 kB / 1.058 GB, free: 8.5 MB / 0.8419 GB Notification: Performance of matching and sorting (n=77): time 0.004521/0.4657, allocations: 1.585 MB / 1.06 GB, free: 6.91 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.383e-05/0.4659, allocations: 119.5 kB / 1.06 GB, free: 6.766 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002304/0.4682, allocations: 1.389 MB / 1.062 GB, free: 5.367 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.000124/0.4683, allocations: 41.7 kB / 1.062 GB, free: 5.32 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005689/0.4689, allocations: 0.7163 MB / 1.062 GB, free: 4.594 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002772/0.4692, allocations: 264.1 kB / 1.063 GB, free: 4.332 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003266/0.4695, allocations: 178.5 kB / 1.063 GB, free: 4.148 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001143/0.4696, allocations: 341.9 kB / 1.063 GB, free: 3.809 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001229/0.4709, allocations: 0.4927 MB / 1.063 GB, free: 3.312 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001403/0.4723, allocations: 0.7191 MB / 1.064 GB, free: 2.504 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002473/0.4748, allocations: 1.125 MB / 1.065 GB, free: 1.32 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.725e-06/0.4748, allocations: 4 kB / 1.065 GB, free: 1.316 MB / 0.8419 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003235/0.478, allocations: 1.355 MB / 1.067 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.52e-05/0.4781, allocations: 8 kB / 1.067 GB, free: 15.94 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.386e-05/0.4781, allocations: 4 kB / 1.067 GB, free: 15.94 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.512e-05/0.4781, allocations: 8 kB / 1.067 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001236/0.4794, allocations: 275.6 kB / 1.067 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.82e-05/0.4794, allocations: 11.94 kB / 1.067 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001431/0.4808, allocations: 194.9 kB / 1.067 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001083/0.481, allocations: 43.98 kB / 1.067 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001696/0.4827, allocations: 0.7888 MB / 1.068 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001396/0.4841, allocations: 0.7229 MB / 1.069 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002424/0.4865, allocations: 1.121 MB / 1.07 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.368e-06/0.4865, allocations: 3.938 kB / 1.07 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.003261/0.4898, allocations: 1.347 MB / 1.071 GB, free: 11.26 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.4898, allocations: 8 kB / 1.071 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.4898, allocations: 4 kB / 1.071 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.102e-05/0.4898, allocations: 12.5 kB / 1.071 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001186/0.491, allocations: 275.6 kB / 1.071 GB, free: 10.97 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.22e-05/0.4911, allocations: 11.94 kB / 1.071 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001647/0.4927, allocations: 183.1 kB / 1.071 GB, free: 10.78 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001207/0.4929, allocations: 43.92 kB / 1.072 GB, free: 10.73 MB / 0.8575 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.0004504/0.4933, allocations: 228.1 kB / 1.072 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004633/0.4938, allocations: 146.2 kB / 1.072 GB, free: 10.36 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00332/0.4971, allocations: 1.482 MB / 1.073 GB, free: 8.852 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.785e-05/0.4971, allocations: 15.92 kB / 1.073 GB, free: 8.836 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.4972, allocations: 0 / 1.073 GB, free: 8.836 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002442/0.4996, allocations: 1.109 MB / 1.074 GB, free: 7.695 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006061/0.5057, allocations: 3.086 MB / 1.077 GB, free: 4.484 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.04e-05/0.5057, allocations: 4 kB / 1.077 GB, free: 4.48 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009541/0.5067, allocations: 192.3 kB / 1.078 GB, free: 4.293 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.539e-05/0.5067, allocations: 8 kB / 1.078 GB, free: 4.285 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.332e-05/0.5068, allocations: 31.92 kB / 1.078 GB, free: 4.254 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.217e-05/0.5068, allocations: 7.938 kB / 1.078 GB, free: 4.246 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.041e-06/0.5068, allocations: 8 kB / 1.078 GB, free: 4.238 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004434/0.5113, allocations: 2.064 MB / 1.08 GB, free: 2.102 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008386/0.5121, allocations: 382.7 kB / 1.08 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004605/0.5126, allocations: 27.94 kB / 1.08 GB, free: 1.68 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001509/0.5141, allocations: 131.8 kB / 1.08 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002124/0.5143, allocations: 84.34 kB / 1.08 GB, free: 1.465 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001207/0.5145, allocations: 43.97 kB / 1.08 GB, free: 1.422 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.001898/0.5164, allocations: 1.068 MB / 1.081 GB, free: 368 kB / 0.8575 GB Notification: Performance of sort global known variables: time 2.2e-07/0.5164, allocations: 3.938 kB / 1.081 GB, free: 364 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.6148/1.131, allocations: 0.7954 MB / 1.082 GB, free: 131.2 MB / 0.8575 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.001274/1.133, allocations: 449.1 kB / 1.083 GB, free: 131.2 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.005058/1.138, allocations: 1.879 MB / 1.084 GB, free: 131 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.094e-05/1.138, allocations: 1.719 kB / 1.084 GB, free: 131 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.001556/1.139, allocations: 0.6212 MB / 1.085 GB, free: 130.8 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004112/1.143, allocations: 0.8293 MB / 1.086 GB, free: 130.6 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005454/1.149, allocations: 3.363 MB / 1.089 GB, free: 128.6 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001098/1.15, allocations: 1.273 MB / 1.09 GB, free: 127.9 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006777/1.151, allocations: 134.4 kB / 1.091 GB, free: 127.9 MB / 0.8575 GB Notification: Performance of SimCode: time 1.312e-06/1.151, allocations: 3.094 kB / 1.091 GB, free: 127.9 MB / 0.8575 GB Notification: Performance of Templates: time 0.06196/1.213, allocations: 28.5 MB / 1.118 GB, free: 118.5 MB / 0.8575 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches