Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.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.Examples.Carnot_TCon,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.TSet|heaPum.QEva_flow|heaPum.QCon_flow|heaPum.P|heaPum.dp1|heaPum.dp2|heaPum.COP_nominal|heaPum.COP",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon") translateModel(Buildings.Fluid.HeatPumps.Examples.Carnot_TCon,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.TSet|heaPum.QEva_flow|heaPum.QCon_flow|heaPum.P|heaPum.dp1|heaPum.dp2|heaPum.COP_nominal|heaPum.COP",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon") [: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.99/1.99, allocations: 390.4 MB / 397.7 MB, free: 11.25 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.001082/0.001082, allocations: 185.8 kB / 490.8 MB, free: 1.953 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.324/1.324, allocations: 221.3 MB / 0.7863 GB, free: 13.67 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.0008896/0.0008896, allocations: 90.22 kB / 0.9264 GB, free: 14.2 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 8.837e-06/9.277e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2988/0.2988, allocations: 143 MB / 1.212 GB, free: 40.14 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9919/1.291, allocations: 434.6 MB / 1.636 GB, free: 13.53 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002821/1.291, allocations: 85.67 kB / 1.636 GB, free: 13.49 MB / 1.057 GB Notification: Performance of FrontEnd: time 2.263/3.554, allocations: 0.65 GB / 2.286 GB, free: 247.3 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.000189/3.554, allocations: 35.59 kB / 2.286 GB, free: 247.3 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: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.003643/3.558, allocations: 1.49 MB / 2.288 GB, free: 246.6 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/3.558, allocations: 10.09 kB / 2.288 GB, free: 246.6 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002428/3.56, allocations: 485.7 kB / 2.288 GB, free: 246.5 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003336/3.564, allocations: 1.318 MB / 2.289 GB, free: 246.2 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003586/3.564, allocations: 109.5 kB / 2.289 GB, free: 246.2 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002213/3.564, allocations: 48.09 kB / 2.289 GB, free: 246.2 MB / 1.167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001352/3.566, allocations: 0.63 MB / 2.29 GB, free: 246.2 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001287/3.567, allocations: 0.7606 MB / 2.291 GB, free: 246.1 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.201e-05/3.567, allocations: 0 / 2.291 GB, free: 246.1 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.006e-05/3.567, allocations: 3.906 kB / 2.291 GB, free: 246.1 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.551e-05/3.567, allocations: 36.8 kB / 2.291 GB, free: 246.1 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00692/3.574, allocations: 4.763 MB / 2.295 GB, free: 243.5 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002603/3.577, allocations: 0.677 MB / 2.296 GB, free: 243.5 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002806/3.577, allocations: 195.7 kB / 2.296 GB, free: 243.5 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004842/3.578, allocations: 0.9147 MB / 2.297 GB, free: 242.4 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.336e-05/3.578, allocations: 37.97 kB / 2.297 GB, free: 242.4 MB / 1.167 GB Notification: Performance of pre-optimization done (n=42): time 2.575e-06/3.578, allocations: 0 / 2.297 GB, free: 242.4 MB / 1.167 GB Notification: Performance of matching and sorting (n=42): time 0.00295/3.581, allocations: 0.7931 MB / 2.298 GB, free: 242.3 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.967e-05/3.581, allocations: 55.28 kB / 2.298 GB, free: 242.2 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00111/3.582, allocations: 0.7402 MB / 2.299 GB, free: 242.1 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 7.308e-05/3.582, allocations: 25.7 kB / 2.299 GB, free: 242.1 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001858/3.582, allocations: 394.9 kB / 2.299 GB, free: 241.9 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 9.875e-05/3.582, allocations: 135.9 kB / 2.299 GB, free: 241.8 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.056e-05/3.582, allocations: 0 / 2.299 GB, free: 241.8 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 6.867e-05/3.582, allocations: 333.2 kB / 2.3 GB, free: 241.5 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002586/3.583, allocations: 174.6 kB / 2.3 GB, free: 241.5 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003734/3.583, allocations: 413.1 kB / 2.3 GB, free: 241.2 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006766/3.584, allocations: 267 kB / 2.3 GB, free: 241.2 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/3.584, allocations: 3.531 kB / 2.3 GB, free: 241.2 MB / 1.167 GB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002958/3.587, allocations: 0.9358 MB / 2.301 GB, free: 241.1 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003038/3.587, allocations: 1.668 MB / 2.303 GB, free: 239.4 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.999e-06/3.587, allocations: 3.688 kB / 2.303 GB, free: 239.4 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006937/3.588, allocations: 238.6 kB / 2.303 GB, free: 239.4 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005262/3.588, allocations: 126.7 kB / 2.303 GB, free: 239.4 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009458/3.589, allocations: 0.8825 MB / 2.304 GB, free: 238.8 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001345/3.59, allocations: 182.5 kB / 2.304 GB, free: 238.8 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.468e-05/3.591, allocations: 31.52 kB / 2.304 GB, free: 238.8 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 8.777e-06/3.591, allocations: 3.719 kB / 2.304 GB, free: 238.8 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002704/3.593, allocations: 0.8064 MB / 2.305 GB, free: 238.8 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/3.593, allocations: 4.75 kB / 2.305 GB, free: 238.8 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005776/3.594, allocations: 236.9 kB / 2.305 GB, free: 238.8 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004835/3.594, allocations: 128.3 kB / 2.306 GB, free: 238.8 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008156/3.595, allocations: 0.865 MB / 2.306 GB, free: 238.3 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001175/3.596, allocations: 149.6 kB / 2.307 GB, free: 238.2 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.762e-05/3.596, allocations: 29.84 kB / 2.307 GB, free: 238.2 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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 {2 15} Notification: Performance of prepare postOptimizeDAE: time 0.0001678/3.597, allocations: 121.1 kB / 2.307 GB, free: 238.1 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001428/3.597, allocations: 100.1 kB / 2.307 GB, free: 238.1 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002988/3.6, allocations: 0.9617 MB / 2.308 GB, free: 238 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.064e-05/3.6, allocations: 3.594 kB / 2.308 GB, free: 238 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/3.6, allocations: 2.375 kB / 2.308 GB, free: 238 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.625e-06/3.6, allocations: 6.25 kB / 2.308 GB, free: 238 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004056/3.604, allocations: 1.917 MB / 2.31 GB, free: 237.6 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/3.604, allocations: 3.5 kB / 2.31 GB, free: 237.6 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002796/3.604, allocations: 73.53 kB / 2.31 GB, free: 237.6 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006406/3.605, allocations: 241.6 kB / 2.31 GB, free: 237.6 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.407e-05/3.605, allocations: 11.72 kB / 2.31 GB, free: 237.6 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000866/3.606, allocations: 0.9094 MB / 2.311 GB, free: 237.1 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/3.606, allocations: 2.969 kB / 2.311 GB, free: 237.1 MB / 1.167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002811/3.609, allocations: 1.137 MB / 2.312 GB, free: 236.7 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004065/3.609, allocations: 270.7 kB / 2.312 GB, free: 236.5 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001384/3.609, allocations: 7.797 kB / 2.312 GB, free: 236.5 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008748/3.61, allocations: 104.8 kB / 2.312 GB, free: 236.5 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.686e-05/3.61, allocations: 29.55 kB / 2.312 GB, free: 236.5 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.945e-05/3.61, allocations: 22.5 kB / 2.312 GB, free: 236.5 MB / 1.167 GB Notification: Performance of sort global known variables: time 0.0006824/3.611, allocations: 0.5708 MB / 2.313 GB, free: 236.4 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.001653/3.613, allocations: 0.6196 MB / 2.314 GB, free: 236.3 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 26 * 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 {2 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009569/3.613, allocations: 0.6748 MB / 2.314 GB, free: 236.2 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.001379/3.615, allocations: 0.7895 MB / 2.315 GB, free: 236.1 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/3.615, allocations: 0 / 2.315 GB, free: 236.1 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0004108/3.615, allocations: 278.5 kB / 2.315 GB, free: 236.1 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001611/3.617, allocations: 370.6 kB / 2.316 GB, free: 236.1 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004545/3.621, allocations: 1.622 MB / 2.317 GB, free: 235.7 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006061/3.622, allocations: 1.16 MB / 2.318 GB, free: 235 MB / 1.167 GB Notification: Performance of SimCode: time 1.002e-06/3.622, allocations: 2.516 kB / 2.318 GB, free: 235 MB / 1.167 GB Notification: Performance of Templates: time 0.03538/3.657, allocations: 25.54 MB / 2.343 GB, free: 234.6 MB / 1.167 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.sim & ./Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_Examples_Carnot_TCon.csv","../files/Buildings_latest_Buildings.Fluid.HeatPumps.Examples.Carnot_TCon.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches