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.001663/0.001662, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002033/0.002033, allocations: 194 kB / 16.14 MB, free: 6.648 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.322/1.322, allocations: 222.9 MB / 239.8 MB, free: 4.516 MB / 190.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.503/2.503, allocations: 437 MB / 0.7099 GB, free: 5.301 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 59.91 kB / 0.8685 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5723/0.5735, allocations: 151.6 MB / 1.017 GB, free: 2.758 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible): time 0.05734/0.6309, allocations: 62.24 MB / 1.077 GB, free: 4.305 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0187/0.6497, allocations: 13.72 MB / 1.091 GB, free: 6.547 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002415/0.6521, allocations: 55.69 kB / 1.091 GB, free: 6.492 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.002783/0.6549, allocations: 0.8004 MB / 1.092 GB, free: 5.688 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.005617/0.6606, allocations: 2.216 MB / 1.094 GB, free: 3.461 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.003526/0.6641, allocations: 1.465 MB / 1.095 GB, free: 2.012 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.005532/0.6697, allocations: 5.483 MB / 1.101 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001578/0.6713, allocations: 1.196 MB / 1.102 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002272/0.6735, allocations: 1.427 MB / 1.103 GB, free: 9.855 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001476/0.675, allocations: 1.291 MB / 1.104 GB, free: 8.559 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0002185/0.6753, allocations: 92 kB / 1.104 GB, free: 8.469 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002625/0.6779, allocations: 1.314 MB / 1.106 GB, free: 7.152 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0004213/0.6783, allocations: 430.4 kB / 1.106 GB, free: 6.73 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0009369/0.6793, allocations: 0.9288 MB / 1.107 GB, free: 5.797 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.003513/0.6828, allocations: 3.081 MB / 1.11 GB, free: 2.707 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.6828, allocations: 0 / 1.11 GB, free: 2.707 MB / 0.8575 GB Notification: Performance of FrontEnd: time 7.61e-07/0.6828, allocations: 0 / 1.11 GB, free: 2.707 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 2.652e-05/0.6829, allocations: 0 / 1.11 GB, free: 2.707 MB / 0.8575 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.004389/0.6872, allocations: 2.333 MB / 1.112 GB, free: 320 kB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.6873, allocations: 8.031 kB / 1.112 GB, free: 312 kB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001558/0.6889, allocations: 322.6 kB / 1.113 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002937/0.6918, allocations: 1.436 MB / 1.114 GB, free: 14.5 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001763/0.692, allocations: 169.4 kB / 1.114 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001802/0.6922, allocations: 111.9 kB / 1.114 GB, free: 14.21 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002897/0.6951, allocations: 1.439 MB / 1.116 GB, free: 12.68 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.927e-05/0.6952, allocations: 4 kB / 1.116 GB, free: 12.68 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001264/0.6953, allocations: 47.94 kB / 1.116 GB, free: 12.63 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.26e-05/0.6953, allocations: 28 kB / 1.116 GB, free: 12.6 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003164/0.6985, allocations: 1.343 MB / 1.117 GB, free: 11.26 MB / 0.8731 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.008054/0.7066, allocations: 6.624 MB / 1.124 GB, free: 4.195 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002194/0.7088, allocations: 1.172 MB / 1.125 GB, free: 2.945 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001309/0.7101, allocations: 0.5609 MB / 1.125 GB, free: 2.379 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008069/0.7109, allocations: 1.149 MB / 1.126 GB, free: 0.9727 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.256e-05/0.711, allocations: 47.22 kB / 1.126 GB, free: 0.918 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=77): time 2.344e-06/0.711, allocations: 4 kB / 1.126 GB, free: 0.9141 MB / 0.8731 GB Notification: Performance of matching and sorting (n=77): time 0.004295/0.7153, allocations: 1.589 MB / 1.128 GB, free: 15.32 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.669e-05/0.7154, allocations: 111.5 kB / 1.128 GB, free: 15.18 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001757/0.7171, allocations: 1.397 MB / 1.129 GB, free: 13.78 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 9e-05/0.7172, allocations: 45.7 kB / 1.13 GB, free: 13.73 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005964/0.7178, allocations: 0.7164 MB / 1.13 GB, free: 13 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002764/0.7181, allocations: 264.1 kB / 1.13 GB, free: 12.74 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003154/0.7184, allocations: 174.5 kB / 1.131 GB, free: 12.56 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001626/0.7186, allocations: 334 kB / 1.131 GB, free: 12.23 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001282/0.7199, allocations: 0.4927 MB / 1.131 GB, free: 11.73 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001428/0.7213, allocations: 0.7229 MB / 1.132 GB, free: 10.91 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002609/0.724, allocations: 1.133 MB / 1.133 GB, free: 9.719 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.573e-06/0.724, allocations: 7.938 kB / 1.133 GB, free: 9.711 MB / 0.8887 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.003356/0.7273, allocations: 1.351 MB / 1.135 GB, free: 8.352 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.479e-05/0.7274, allocations: 8 kB / 1.135 GB, free: 8.344 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.355e-05/0.7274, allocations: 4 kB / 1.135 GB, free: 8.34 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.386e-05/0.7274, allocations: 19.88 kB / 1.135 GB, free: 8.32 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001276/0.7287, allocations: 267.9 kB / 1.135 GB, free: 8.059 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.551e-05/0.7287, allocations: 12 kB / 1.135 GB, free: 8.047 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001374/0.7301, allocations: 194.9 kB / 1.135 GB, free: 7.855 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.153e-05/0.7302, allocations: 39.98 kB / 1.135 GB, free: 7.816 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001754/0.732, allocations: 0.7985 MB / 1.136 GB, free: 7.016 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001407/0.7334, allocations: 0.719 MB / 1.137 GB, free: 6.199 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002518/0.7359, allocations: 1.129 MB / 1.138 GB, free: 5.012 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.246e-06/0.7359, allocations: 0 / 1.138 GB, free: 5.012 MB / 0.8887 GB Notification: Performance of matching and sorting (n=109) (initialization_lambda0): time 0.003159/0.7391, allocations: 1.343 MB / 1.139 GB, free: 3.66 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.7391, allocations: 8.562 kB / 1.139 GB, free: 3.652 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.7391, allocations: 8 kB / 1.139 GB, free: 3.645 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.458e-06/0.7392, allocations: 8 kB / 1.139 GB, free: 3.637 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001201/0.7404, allocations: 267.6 kB / 1.139 GB, free: 3.375 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.088e-05/0.7404, allocations: 8 kB / 1.139 GB, free: 3.367 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001241/0.7416, allocations: 183.1 kB / 1.139 GB, free: 3.188 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.915e-05/0.7417, allocations: 47.86 kB / 1.14 GB, free: 3.141 MB / 0.8887 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.0002987/0.742, allocations: 240 kB / 1.14 GB, free: 2.898 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002683/0.7423, allocations: 146.2 kB / 1.14 GB, free: 2.754 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003277/0.7456, allocations: 1.478 MB / 1.141 GB, free: 1.246 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.457e-05/0.7456, allocations: 8 kB / 1.141 GB, free: 1.238 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.652e-06/0.7456, allocations: 0 / 1.141 GB, free: 1.238 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002541/0.7482, allocations: 1.109 MB / 1.142 GB, free: 100 kB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005524/0.7537, allocations: 3.086 MB / 1.145 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.736e-06/0.7537, allocations: 4.562 kB / 1.145 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/0.7548, allocations: 199.6 kB / 1.146 GB, free: 12.7 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.058e-05/0.7548, allocations: 7.984 kB / 1.146 GB, free: 12.69 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.089e-05/0.7549, allocations: 20 kB / 1.146 GB, free: 12.67 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.578e-06/0.7549, allocations: 11.98 kB / 1.146 GB, free: 12.66 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.753e-06/0.7549, allocations: 11.88 kB / 1.146 GB, free: 12.64 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004336/0.7592, allocations: 2.064 MB / 1.148 GB, free: 10.5 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006457/0.7599, allocations: 386.7 kB / 1.148 GB, free: 10.11 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002734/0.7602, allocations: 23.92 kB / 1.148 GB, free: 10.08 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001279/0.7615, allocations: 143.7 kB / 1.148 GB, free: 9.941 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001922/0.7617, allocations: 80.34 kB / 1.148 GB, free: 9.859 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001002/0.7618, allocations: 47.91 kB / 1.148 GB, free: 9.812 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001514/0.7633, allocations: 1.064 MB / 1.149 GB, free: 8.754 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.61e-07/0.7633, allocations: 0 / 1.149 GB, free: 8.754 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.002049/0.7654, allocations: 0.7955 MB / 1.15 GB, free: 7.957 MB / 0.9044 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.0009157/0.7663, allocations: 459 kB / 1.151 GB, free: 7.504 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.004421/0.7707, allocations: 1.806 MB / 1.152 GB, free: 5.703 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 6.542e-06/0.7707, allocations: 3.859 kB / 1.152 GB, free: 5.699 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.00162/0.7724, allocations: 0.6405 MB / 1.153 GB, free: 5.062 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004068/0.7764, allocations: 0.7842 MB / 1.154 GB, free: 4.285 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004742/0.7812, allocations: 3.311 MB / 1.157 GB, free: 0.8828 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008689/0.7821, allocations: 1.273 MB / 1.158 GB, free: 15.57 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.001964/0.7841, allocations: 409.5 kB / 1.159 GB, free: 15.17 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004619/0.7845, allocations: 131.4 kB / 1.159 GB, free: 15.04 MB / 0.92 GB Notification: Performance of SimCode: time 9.42e-07/0.7846, allocations: 0 / 1.159 GB, free: 15.04 MB / 0.92 GB Notification: Performance of Templates: time 0.05203/0.8366, allocations: 31.65 MB / 1.19 GB, free: 15.77 MB / 0.9512 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