Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_y.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.Carnot_y,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.sta_a1.T|heaPum.sta_b1.T|heaPum.sta_a2.T|heaPum.sta_b2.T|heaPum.QEva_flow|heaPum.QCon_flow|heaPum.P|heaPum.dp1|heaPum.dp2|heaPum.COP_nominal|heaPum.COP",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_y") translateModel(Buildings.Fluid.HeatPumps.Examples.Carnot_y,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.sta_a1.T|heaPum.sta_b1.T|heaPum.sta_a2.T|heaPum.sta_b2.T|heaPum.QEva_flow|heaPum.QCon_flow|heaPum.P|heaPum.dp1|heaPum.dp2|heaPum.COP_nominal|heaPum.COP",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_y") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001031/0.001031, allocations: 92.16 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.001258/0.001258, allocations: 182.8 kB / 16.92 MB, free: 6.926 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.42/1.42, allocations: 223.3 MB / 241 MB, free: 5.312 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.495/2.495, allocations: 390.9 MB / 0.667 GB, free: 2.387 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004166/0.0004166, allocations: 8 kB / 0.8166 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8142/0.8146, allocations: 142.4 MB / 0.9557 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_y): time 0.07246/0.8872, allocations: 73.48 MB / 1.027 GB, free: 5.664 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.02131/0.9085, allocations: 15.03 MB / 1.042 GB, free: 6.598 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002989/0.9116, allocations: 63.56 kB / 1.042 GB, free: 6.535 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.00246/0.914, allocations: 0.676 MB / 1.043 GB, free: 5.855 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.007843/0.9219, allocations: 2.38 MB / 1.045 GB, free: 3.465 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.003746/0.9257, allocations: 1.27 MB / 1.046 GB, free: 2.207 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.007399/0.9331, allocations: 5.565 MB / 1.052 GB, free: 12.63 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002108/0.9352, allocations: 1.165 MB / 1.053 GB, free: 11.43 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002992/0.9382, allocations: 1.326 MB / 1.054 GB, free: 10.1 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001764/0.94, allocations: 1.155 MB / 1.055 GB, free: 8.938 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.000163/0.9402, allocations: 56 kB / 1.055 GB, free: 8.883 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002919/0.9431, allocations: 1.236 MB / 1.057 GB, free: 7.645 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0003307/0.9435, allocations: 290.6 kB / 1.057 GB, free: 7.359 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0009907/0.9445, allocations: 0.8022 MB / 1.058 GB, free: 6.547 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.002745/0.9472, allocations: 2.159 MB / 1.06 GB, free: 4.383 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.9472, allocations: 4 kB / 1.06 GB, free: 4.379 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.425e-06/0.9472, allocations: 0 / 1.06 GB, free: 4.379 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.553e-05/0.9473, allocations: 0 / 1.06 GB, free: 4.379 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.003885/0.9512, allocations: 1.787 MB / 1.062 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 7.339e-05/0.9512, allocations: 8.031 kB / 1.062 GB, free: 2.52 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009153/0.9522, allocations: 238.8 kB / 1.062 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002799/0.955, allocations: 1.508 MB / 1.063 GB, free: 0.7188 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.234e-05/0.9551, allocations: 78 kB / 1.063 GB, free: 0.6445 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001598/0.9552, allocations: 100 kB / 1.063 GB, free: 0.5469 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002089/0.9573, allocations: 1.116 MB / 1.065 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.646e-05/0.9574, allocations: 0 / 1.065 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.199e-05/0.9575, allocations: 43.94 kB / 1.065 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-05/0.9575, allocations: 31.98 kB / 1.065 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001991/0.9595, allocations: 0.9368 MB / 1.066 GB, free: 14.38 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.006151/0.9657, allocations: 4.908 MB / 1.07 GB, free: 9.188 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001518/0.9672, allocations: 0.6431 MB / 1.071 GB, free: 8.539 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007565/0.968, allocations: 366.3 kB / 1.071 GB, free: 8.18 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007112/0.9687, allocations: 0.8316 MB / 1.072 GB, free: 7.16 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.182e-05/0.9688, allocations: 39.12 kB / 1.072 GB, free: 7.113 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=61): time 2.775e-06/0.9688, allocations: 0 / 1.072 GB, free: 7.113 MB / 0.8262 GB Notification: Performance of matching and sorting (n=61): time 0.007689/0.9765, allocations: 1.904 MB / 1.074 GB, free: 5.18 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.584e-05/0.9765, allocations: 59.97 kB / 1.074 GB, free: 5.109 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002684/0.9792, allocations: 1.21 MB / 1.075 GB, free: 3.883 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0002009/0.9795, allocations: 41.7 kB / 1.075 GB, free: 3.836 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.001013/0.9805, allocations: 0.6026 MB / 1.076 GB, free: 3.227 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.000432/0.9809, allocations: 224.9 kB / 1.076 GB, free: 3.004 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001625/0.9811, allocations: 57.69 kB / 1.076 GB, free: 2.941 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0002806/0.9814, allocations: 337.9 kB / 1.076 GB, free: 2.605 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001137/0.9826, allocations: 301.8 kB / 1.077 GB, free: 2.312 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00143/0.984, allocations: 0.5124 MB / 1.077 GB, free: 1.723 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002363/0.9864, allocations: 0.7481 MB / 1.078 GB, free: 0.9219 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.628e-06/0.9864, allocations: 0 / 1.078 GB, free: 0.9219 MB / 0.8262 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.00776/0.9942, allocations: 1.41 MB / 1.079 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.000216/0.9944, allocations: 198.3 kB / 1.08 GB, free: 15.25 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.515e-05/0.9944, allocations: 4 kB / 1.08 GB, free: 15.25 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008868/0.9953, allocations: 140.7 kB / 1.08 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001009/0.9964, allocations: 175.7 kB / 1.08 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001272/0.9976, allocations: 0.7123 MB / 1.081 GB, free: 14.2 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002032/0.9997, allocations: 172.4 kB / 1.081 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001064/0.9998, allocations: 35.92 kB / 1.081 GB, free: 13.99 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/0.9998, allocations: 4 kB / 1.081 GB, free: 13.99 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006633/1.006, allocations: 1.253 MB / 1.082 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.641e-05/1.007, allocations: 4 kB / 1.082 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007811/1.007, allocations: 145 kB / 1.082 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000976/1.008, allocations: 183.7 kB / 1.082 GB, free: 12.4 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001282/1.01, allocations: 0.7084 MB / 1.083 GB, free: 11.67 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002042/1.012, allocations: 163.2 kB / 1.083 GB, free: 11.51 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001053/1.012, allocations: 32 kB / 1.083 GB, free: 11.48 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.001117/1.013, allocations: 421.4 kB / 1.084 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000412/1.013, allocations: 134.4 kB / 1.084 GB, free: 10.92 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007171/1.021, allocations: 1.4 MB / 1.085 GB, free: 9.508 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.128e-05/1.021, allocations: 12 kB / 1.085 GB, free: 9.496 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.155e-05/1.021, allocations: 0 / 1.085 GB, free: 9.496 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006419/1.027, allocations: 1.232 MB / 1.086 GB, free: 8.23 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01036/1.037, allocations: 2.754 MB / 1.089 GB, free: 5.367 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.43e-05/1.038, allocations: 4 kB / 1.089 GB, free: 5.363 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007386/1.038, allocations: 124.2 kB / 1.089 GB, free: 5.242 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007258/1.039, allocations: 140.8 kB / 1.089 GB, free: 5.102 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.052e-05/1.039, allocations: 19.98 kB / 1.089 GB, free: 5.082 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005624/1.045, allocations: 2.462 MB / 1.092 GB, free: 2.469 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/1.045, allocations: 4 kB / 1.092 GB, free: 2.465 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005888/1.051, allocations: 1.867 MB / 1.094 GB, free: 0.5312 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009162/1.052, allocations: 339 kB / 1.094 GB, free: 184 kB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000317/1.052, allocations: 16 kB / 1.094 GB, free: 168 kB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009246/1.053, allocations: 95.88 kB / 1.094 GB, free: 72 kB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001409/1.053, allocations: 56.25 kB / 1.094 GB, free: 16 kB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.914e-05/1.053, allocations: 35.97 kB / 1.094 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.001364/1.054, allocations: 0.8662 MB / 1.095 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.5e-07/1.054, allocations: 4 kB / 1.095 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.002056/1.057, allocations: 0.7174 MB / 1.096 GB, free: 14.39 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (heaPum.con.vol.dynBal.U,heaPum.eva.vol.dynBal.U) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009204/1.057, allocations: 439.5 kB / 1.096 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.002683/1.06, allocations: 1.164 MB / 1.097 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 7.955e-06/1.06, allocations: 4 kB / 1.097 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.001559/1.062, allocations: 0.5995 MB / 1.098 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004432/1.066, allocations: 0.8013 MB / 1.099 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004418/1.071, allocations: 2.852 MB / 1.101 GB, free: 8.457 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00083/1.071, allocations: 1.177 MB / 1.102 GB, free: 7.254 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003779/1.072, allocations: 115.4 kB / 1.103 GB, free: 7.141 MB / 0.8575 GB Notification: Performance of SimCode: time 1.132e-06/1.072, allocations: 0 / 1.103 GB, free: 7.141 MB / 0.8575 GB Notification: Performance of Templates: time 0.05341/1.125, allocations: 30.73 MB / 1.133 GB, free: 8.578 MB / 0.8887 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_y.makefile (rm -f Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_y.sim & ./Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_y -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_y_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatPumps_Examples_Carnot_y.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.HeatPumps.Examples.Carnot_y.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches