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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001169/0.001174, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001912/0.001912, allocations: 182.5 kB / 16.92 MB, free: 6.918 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.414/1.414, allocations: 223.3 MB / 241 MB, free: 5.238 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.464/2.464, allocations: 390.9 MB / 0.667 GB, free: 2.363 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003587/0.0003589, allocations: 8 kB / 0.8166 GB, free: 13.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7772/0.7776, allocations: 142.4 MB / 0.9557 GB, free: 7.711 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.06432/0.842, allocations: 61.11 MB / 1.015 GB, free: 2.086 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.02112/0.8631, allocations: 13.55 MB / 1.029 GB, free: 4.5 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003079/0.8663, allocations: 51.69 kB / 1.029 GB, free: 4.449 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.003195/0.8695, allocations: 0.8082 MB / 1.029 GB, free: 3.637 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.007544/0.8771, allocations: 2.205 MB / 1.032 GB, free: 1.422 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.004722/0.8818, allocations: 1.48 MB / 1.033 GB, free: 15.96 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.008063/0.8899, allocations: 5.464 MB / 1.038 GB, free: 10.48 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002791/0.8927, allocations: 1.171 MB / 1.04 GB, free: 9.277 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003706/0.8965, allocations: 1.377 MB / 1.041 GB, free: 7.895 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002498/0.899, allocations: 1.229 MB / 1.042 GB, free: 6.66 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0005404/0.8996, allocations: 76 kB / 1.042 GB, free: 6.586 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003731/0.9033, allocations: 1.302 MB / 1.043 GB, free: 5.281 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0007606/0.9041, allocations: 406.3 kB / 1.044 GB, free: 4.883 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.002036/0.9061, allocations: 0.911 MB / 1.045 GB, free: 3.961 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.004144/0.9103, allocations: 2.369 MB / 1.047 GB, free: 1.586 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.9103, allocations: 0 / 1.047 GB, free: 1.586 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.465e-06/0.9103, allocations: 0 / 1.047 GB, free: 1.586 MB / 0.795 GB Notification: Performance of Transformations before backend: time 0.0001007/0.9105, allocations: 0 / 1.047 GB, free: 1.586 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.005289/0.9158, allocations: 2.03 MB / 1.049 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.66e-05/0.9158, allocations: 8.031 kB / 1.049 GB, free: 15.49 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001785/0.9176, allocations: 346.4 kB / 1.049 GB, free: 15.15 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003229/0.9209, allocations: 1.451 MB / 1.051 GB, free: 13.65 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002572/0.9211, allocations: 165.4 kB / 1.051 GB, free: 13.47 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002845/0.9214, allocations: 104 kB / 1.051 GB, free: 13.37 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003593/0.925, allocations: 1.489 MB / 1.052 GB, free: 11.79 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.17e-05/0.9251, allocations: 4 kB / 1.052 GB, free: 11.79 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001463/0.9252, allocations: 44 kB / 1.052 GB, free: 11.75 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-05/0.9253, allocations: 35.94 kB / 1.053 GB, free: 11.71 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003588/0.9289, allocations: 1.44 MB / 1.054 GB, free: 10.27 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.009964/0.9389, allocations: 6.667 MB / 1.06 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002446/0.9414, allocations: 1.213 MB / 1.062 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001476/0.9429, allocations: 0.6079 MB / 1.062 GB, free: 1.242 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009762/0.9439, allocations: 1.145 MB / 1.063 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.44e-05/0.9439, allocations: 51.2 kB / 1.063 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=77): time 3.316e-06/0.9439, allocations: 0.5625 kB / 1.063 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of matching and sorting (n=77): time 0.004821/0.9488, allocations: 1.73 MB / 1.065 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.806e-05/0.9489, allocations: 123.4 kB / 1.065 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00249/0.9514, allocations: 1.389 MB / 1.067 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0001597/0.9515, allocations: 45.7 kB / 1.067 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006524/0.9522, allocations: 0.7202 MB / 1.067 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003144/0.9525, allocations: 260.2 kB / 1.068 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001458/0.9527, allocations: 77.67 kB / 1.068 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001444/0.9528, allocations: 338 kB / 1.068 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001407/0.9542, allocations: 0.5368 MB / 1.068 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00164/0.9559, allocations: 0.7698 MB / 1.069 GB, free: 9.641 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002888/0.9588, allocations: 1.23 MB / 1.07 GB, free: 8.348 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.273e-06/0.9588, allocations: 0 / 1.07 GB, free: 8.348 MB / 0.8262 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003732/0.9626, allocations: 1.456 MB / 1.072 GB, free: 6.883 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001851/0.9628, allocations: 240.6 kB / 1.072 GB, free: 6.578 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/0.9628, allocations: 4 kB / 1.072 GB, free: 6.574 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.717e-05/0.9628, allocations: 8 kB / 1.072 GB, free: 6.566 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001334/0.9642, allocations: 303.6 kB / 1.072 GB, free: 6.27 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.482e-05/0.9642, allocations: 11.94 kB / 1.072 GB, free: 6.258 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001639/0.9659, allocations: 226.9 kB / 1.073 GB, free: 6.035 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001087/0.966, allocations: 31.98 kB / 1.073 GB, free: 6.004 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.173e-05/0.966, allocations: 5.406 kB / 1.073 GB, free: 6 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003241/0.9692, allocations: 1.288 MB / 1.074 GB, free: 4.711 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.969e-06/0.9693, allocations: 7.938 kB / 1.074 GB, free: 4.703 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.9693, allocations: 8 kB / 1.074 GB, free: 4.695 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00127/0.9706, allocations: 300.2 kB / 1.074 GB, free: 4.402 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.063e-05/0.9706, allocations: 8 kB / 1.074 GB, free: 4.395 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001677/0.9723, allocations: 211 kB / 1.074 GB, free: 4.188 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001238/0.9724, allocations: 43.92 kB / 1.074 GB, free: 4.145 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.0009734/0.9734, allocations: 464.8 kB / 1.075 GB, free: 3.68 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004855/0.9739, allocations: 154.1 kB / 1.075 GB, free: 3.527 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003922/0.9778, allocations: 1.572 MB / 1.077 GB, free: 1.926 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.042e-05/0.9779, allocations: 8 kB / 1.077 GB, free: 1.918 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/0.9779, allocations: 0 / 1.077 GB, free: 1.918 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00286/0.9808, allocations: 1.218 MB / 1.078 GB, free: 0.668 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007039/0.9878, allocations: 3.187 MB / 1.081 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.602e-05/0.9879, allocations: 4 kB / 1.081 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001045/0.9889, allocations: 216.3 kB / 1.081 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.69e-05/0.989, allocations: 15.94 kB / 1.081 GB, free: 13.13 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.511e-05/0.989, allocations: 23.98 kB / 1.081 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.205e-05/0.9891, allocations: 11.94 kB / 1.081 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.742e-06/0.9891, allocations: 7.938 kB / 1.081 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005193/0.9943, allocations: 2.216 MB / 1.083 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001151/0.9955, allocations: 410.6 kB / 1.084 GB, free: 10.37 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004721/0.9959, allocations: 24 kB / 1.084 GB, free: 10.35 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001628/0.9976, allocations: 166.6 kB / 1.084 GB, free: 10.19 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002061/0.9978, allocations: 88.33 kB / 1.084 GB, free: 10.1 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00013/0.998, allocations: 47.84 kB / 1.084 GB, free: 10.05 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.002002/1, allocations: 1.068 MB / 1.085 GB, free: 8.992 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.31e-07/1, allocations: 0 / 1.085 GB, free: 8.992 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.002644/1.003, allocations: 0.7838 MB / 1.086 GB, free: 8.207 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.00122/1.004, allocations: 455.7 kB / 1.086 GB, free: 7.762 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.005123/1.009, allocations: 1.959 MB / 1.088 GB, free: 5.809 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.205e-05/1.009, allocations: 0 / 1.088 GB, free: 5.809 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001783/1.011, allocations: 0.6718 MB / 1.089 GB, free: 5.137 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005753/1.017, allocations: 0.8253 MB / 1.09 GB, free: 4.32 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00583/1.022, allocations: 3.446 MB / 1.093 GB, free: 0.7734 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001117/1.024, allocations: 1.27 MB / 1.094 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007617/1.024, allocations: 147.4 kB / 1.094 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of SimCode: time 1.583e-06/1.024, allocations: 0 / 1.094 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of Templates: time 0.04687/1.071, allocations: 28.27 MB / 1.122 GB, free: 3.258 MB / 0.8731 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