Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatPumps.Validation.Carnot_y_etaCar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.HeatPumps.Validation.Carnot_y_etaCar,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_latest_Buildings.Fluid.HeatPumps.Validation.Carnot_y_etaCar") translateModel(Buildings.Fluid.HeatPumps.Validation.Carnot_y_etaCar,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_latest_Buildings.Fluid.HeatPumps.Validation.Carnot_y_etaCar") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 1.999/1.999, allocations: 390.4 MB / 397.7 MB, free: 11.3 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001121/0.001121, allocations: 185.2 kB / 490.8 MB, free: 1.934 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.328/1.328, allocations: 221.4 MB / 0.7863 GB, free: 13.71 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001076/0.001076, allocations: 87.48 kB / 0.9264 GB, free: 14.25 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.564e-06/7.594e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2924/0.2924, allocations: 143 MB / 1.212 GB, free: 40.14 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.002/1.294, allocations: 430.6 MB / 1.632 GB, free: 1.605 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002347/1.295, allocations: 98.58 kB / 1.632 GB, free: 1.555 MB / 1.042 GB Notification: Performance of FrontEnd: time 2.986/4.281, allocations: 0.8764 GB / 2.509 GB, free: 113.6 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0002229/4.281, allocations: 39.53 kB / 2.509 GB, free: 113.6 MB / 1.167 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.004246/4.285, allocations: 1.752 MB / 2.51 GB, free: 111.8 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/4.286, allocations: 12.03 kB / 2.51 GB, free: 111.8 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00118/4.287, allocations: 249.2 kB / 2.511 GB, free: 111.5 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003763/4.29, allocations: 1.724 MB / 2.512 GB, free: 109.8 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.19e-05/4.291, allocations: 35.94 kB / 2.512 GB, free: 109.7 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002341/4.291, allocations: 60 kB / 2.512 GB, free: 109.7 MB / 1.167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001427/4.292, allocations: 0.6991 MB / 2.513 GB, free: 109 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00153/4.294, allocations: 0.8811 MB / 2.514 GB, free: 108.1 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.326e-05/4.294, allocations: 4 kB / 2.514 GB, free: 108.1 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.3e-05/4.294, allocations: 7.844 kB / 2.514 GB, free: 108.1 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.436e-05/4.294, allocations: 41.44 kB / 2.514 GB, free: 108 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006998/4.301, allocations: 5.057 MB / 2.519 GB, free: 102.8 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008669/4.302, allocations: 472.2 kB / 2.519 GB, free: 102.4 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003448/4.302, allocations: 251.8 kB / 2.52 GB, free: 102.1 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000487/4.303, allocations: 0.8305 MB / 2.52 GB, free: 101.1 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.254e-05/4.303, allocations: 39.06 kB / 2.52 GB, free: 101.1 MB / 1.167 GB Notification: Performance of pre-optimization done (n=59): time 2.655e-06/4.303, allocations: 3.938 kB / 2.52 GB, free: 101.1 MB / 1.167 GB Notification: Performance of matching and sorting (n=59): time 0.004228/4.307, allocations: 1.039 MB / 2.521 GB, free: 100.1 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.259e-05/4.307, allocations: 59.91 kB / 2.521 GB, free: 99.98 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001392/4.308, allocations: 0.8912 MB / 2.522 GB, free: 99.08 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 9.065e-05/4.309, allocations: 25.7 kB / 2.522 GB, free: 99.05 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002527/4.309, allocations: 449.5 kB / 2.523 GB, free: 98.6 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001809/4.309, allocations: 208.2 kB / 2.523 GB, free: 98.4 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.09e-05/4.309, allocations: 0 / 2.523 GB, free: 98.4 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 6.199e-05/4.309, allocations: 330 kB / 2.523 GB, free: 98.07 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002739/4.309, allocations: 189.3 kB / 2.524 GB, free: 97.89 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003805/4.31, allocations: 429.5 kB / 2.524 GB, free: 97.38 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006123/4.31, allocations: 276.3 kB / 2.524 GB, free: 97.12 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/4.31, allocations: 3.938 kB / 2.524 GB, free: 97.12 MB / 1.167 GB Notification: Performance of matching and sorting (n=82) (initialization): time 0.004257/4.315, allocations: 1.181 MB / 2.525 GB, free: 95.97 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002541/4.315, allocations: 1.4 MB / 2.527 GB, free: 94.48 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/4.315, allocations: 7.406 kB / 2.527 GB, free: 94.48 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004118/4.315, allocations: 108 kB / 2.527 GB, free: 94.38 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006466/4.316, allocations: 159.2 kB / 2.527 GB, free: 94.22 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001196/4.317, allocations: 0.8016 MB / 2.528 GB, free: 93.41 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001309/4.319, allocations: 126 kB / 2.528 GB, free: 93.29 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.431e-05/4.319, allocations: 35.95 kB / 2.528 GB, free: 93.26 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 8.325e-06/4.319, allocations: 4 kB / 2.528 GB, free: 93.26 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003995/4.323, allocations: 1.025 MB / 2.529 GB, free: 92.27 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/4.323, allocations: 4 kB / 2.529 GB, free: 92.27 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003292/4.323, allocations: 111.9 kB / 2.529 GB, free: 92.16 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006227/4.324, allocations: 162.3 kB / 2.529 GB, free: 92.01 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00116/4.325, allocations: 0.8037 MB / 2.53 GB, free: 91.19 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001271/4.326, allocations: 111.5 kB / 2.53 GB, free: 91.08 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.326e-05/4.326, allocations: 31.98 kB / 2.53 GB, free: 91.05 MB / 1.167 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: heaPum.COP:VARIABLE(min = 0.0 unit = "1" ) "Coefficient of performance" type: Real 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (72): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 10} Notification: Performance of prepare postOptimizeDAE: time 0.0002672/4.326, allocations: 121.1 kB / 2.53 GB, free: 90.92 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003505/4.327, allocations: 122.5 kB / 2.53 GB, free: 90.8 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00447/4.331, allocations: 1.179 MB / 2.531 GB, free: 89.61 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.361e-05/4.331, allocations: 8 kB / 2.531 GB, free: 89.61 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/4.331, allocations: 0 / 2.531 GB, free: 89.61 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003742/4.335, allocations: 1.081 MB / 2.533 GB, free: 88.49 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006195/4.341, allocations: 2.364 MB / 2.535 GB, free: 86.05 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.115e-06/4.341, allocations: 4 kB / 2.535 GB, free: 86.05 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005425/4.342, allocations: 128.2 kB / 2.535 GB, free: 85.93 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003109/4.342, allocations: 100.8 kB / 2.535 GB, free: 85.82 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.897e-05/4.342, allocations: 7.984 kB / 2.535 GB, free: 85.82 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003316/4.346, allocations: 2.131 MB / 2.537 GB, free: 83.57 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.05e-06/4.346, allocations: 4 kB / 2.537 GB, free: 83.57 MB / 1.167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004595/4.35, allocations: 1.734 MB / 2.539 GB, free: 81.73 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007243/4.351, allocations: 311.3 kB / 2.539 GB, free: 81.4 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003112/4.351, allocations: 4 kB / 2.539 GB, free: 81.4 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009837/4.352, allocations: 71.91 kB / 2.539 GB, free: 81.33 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.417e-05/4.352, allocations: 44.38 kB / 2.539 GB, free: 81.28 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.184e-05/4.352, allocations: 27.98 kB / 2.539 GB, free: 81.25 MB / 1.167 GB Notification: Performance of sort global known variables: time 0.001039/4.353, allocations: 0.6854 MB / 2.54 GB, free: 80.56 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.002572/4.356, allocations: 0.791 MB / 2.541 GB, free: 79.77 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 2 (heaPum.con.vol.dynBal.U,heaPum.eva.vol.dynBal.U) * Number of discrete variables: 0 () * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.001312/4.357, allocations: 0.7912 MB / 2.542 GB, free: 79.05 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.002542/4.36, allocations: 1.043 MB / 2.543 GB, free: 78.01 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/4.36, allocations: 0 / 2.543 GB, free: 78.01 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.001044/4.361, allocations: 0.4885 MB / 2.543 GB, free: 77.51 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002642/4.364, allocations: 0.5416 MB / 2.544 GB, free: 76.98 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004034/4.368, allocations: 1.75 MB / 2.545 GB, free: 75.17 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008456/4.369, allocations: 1.299 MB / 2.547 GB, free: 73.84 MB / 1.167 GB Notification: Performance of SimCode: time 7.12e-07/4.369, allocations: 0 / 2.547 GB, free: 73.84 MB / 1.167 GB Notification: Performance of Templates: time 0.04178/4.41, allocations: 30.4 MB / 2.576 GB, free: 43.85 MB / 1.167 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.Validation.Carnot_y_etaCar.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.Validation.Carnot_y_etaCar.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.Validation.Carnot_y_etaCar.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.Validation.Carnot_y_etaCar.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.Validation.Carnot_y_etaCar.sim & ./Buildings_latest_Buildings.Fluid.HeatPumps.Validation.Carnot_y_etaCar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.Validation.Carnot_y_etaCar.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.Validation.Carnot_y_etaCar_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_Validation_Carnot_y_etaCar.csv","../files/Buildings_latest_Buildings.Fluid.HeatPumps.Validation.Carnot_y_etaCar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches