Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.HexInternalElement.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.HexInternalElement,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.HexInternalElement") translateModel(Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.HexInternalElement,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.HexInternalElement") [: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 1.6.0+build.1/package.mo): time 0.512/0.512, allocations: 94.73 MB / 102 MB, free: 10.38 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001113/0.001113, allocations: 186.1 kB / 125.3 MB, free: 12.03 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.285/1.285, allocations: 170.5 MB / 319 MB, free: 9.371 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001623/0.001623, allocations: 103 kB / 381 MB, free: 18.19 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 8.396e-06/8.416e-06, allocations: 0 / 448.6 MB, free: 2.113 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1242, allocations: 61.53 MB / 0.4981 GB, free: 4.496 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.047/1.172, allocations: 426.3 MB / 0.9145 GB, free: 188.7 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003508/1.172, allocations: 107.9 kB / 0.9146 GB, free: 188.7 MB / 0.5261 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/Fluid/HeatExchangers/Boreholes/BaseClasses/singleUTubeResistances.mo:64:3-66:74:writable] Warning: beta was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of FrontEnd: time 0.9785/2.15, allocations: 375.8 MB / 1.282 GB, free: 38.89 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002082/2.151, allocations: 35.52 kB / 1.282 GB, free: 38.86 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 216 * Number of variables: 216 Notification: Performance of Generate backend data structure: time 0.004096/2.155, allocations: 1.458 MB / 1.283 GB, free: 37.37 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/2.155, allocations: 12.03 kB / 1.283 GB, free: 37.36 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009152/2.156, allocations: 166.3 kB / 1.283 GB, free: 37.19 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003138/2.159, allocations: 1.345 MB / 1.284 GB, free: 35.82 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.144e-05/2.159, allocations: 28 kB / 1.285 GB, free: 35.8 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001911/2.159, allocations: 63.84 kB / 1.285 GB, free: 35.73 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001227/2.16, allocations: 0.5897 MB / 1.285 GB, free: 35.14 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001333/2.162, allocations: 0.8109 MB / 1.286 GB, free: 34.29 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.845e-05/2.162, allocations: 0 / 1.286 GB, free: 34.29 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001041/2.162, allocations: 4 kB / 1.286 GB, free: 34.29 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.207e-05/2.162, allocations: 24 kB / 1.286 GB, free: 34.26 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005433/2.167, allocations: 4.626 MB / 1.29 GB, free: 29.39 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006255/2.168, allocations: 359.8 kB / 1.291 GB, free: 29.04 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000415/2.169, allocations: 284.9 kB / 1.291 GB, free: 28.76 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004858/2.169, allocations: 449.8 kB / 1.292 GB, free: 28.23 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.923e-05/2.169, allocations: 42.94 kB / 1.292 GB, free: 28.18 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=51): time 2.014e-06/2.169, allocations: 0 / 1.292 GB, free: 28.18 MB / 0.5261 GB Notification: Performance of matching and sorting (n=62): time 0.01076/2.18, allocations: 2.365 MB / 1.294 GB, free: 25.71 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.831e-05/2.18, allocations: 107.3 kB / 1.294 GB, free: 25.58 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00115/2.181, allocations: 0.6973 MB / 1.295 GB, free: 24.86 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 9.602e-05/2.181, allocations: 25.7 kB / 1.295 GB, free: 24.83 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002255/2.181, allocations: 426.7 kB / 1.295 GB, free: 24.41 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001648/2.182, allocations: 220.7 kB / 1.295 GB, free: 24.19 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.405e-05/2.182, allocations: 0 / 1.295 GB, free: 24.19 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.001e-05/2.182, allocations: 338 kB / 1.296 GB, free: 23.85 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003285/2.182, allocations: 214 kB / 1.296 GB, free: 23.64 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004155/2.182, allocations: 442.3 kB / 1.296 GB, free: 23.12 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001035/2.184, allocations: 377.5 kB / 1.297 GB, free: 22.75 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/2.184, allocations: 0 / 1.297 GB, free: 22.75 MB / 0.5261 GB Notification: Performance of matching and sorting (n=105) (initialization): time 0.002012/2.186, allocations: 0.9478 MB / 1.298 GB, free: 21.79 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003894/2.186, allocations: 1.997 MB / 1.299 GB, free: 19.63 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.048e-05/2.186, allocations: 8 kB / 1.3 GB, free: 19.62 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004485/2.186, allocations: 176.1 kB / 1.3 GB, free: 19.44 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005562/2.187, allocations: 159.7 kB / 1.3 GB, free: 19.28 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00307/2.19, allocations: 5.254 MB / 1.305 GB, free: 13.63 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000927/2.191, allocations: 55.97 kB / 1.305 GB, free: 13.58 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.518e-05/2.191, allocations: 32 kB / 1.305 GB, free: 13.55 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.414e-06/2.191, allocations: 4 kB / 1.305 GB, free: 13.54 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001662/2.193, allocations: 0.9366 MB / 1.306 GB, free: 12.56 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.664e-05/2.193, allocations: 8 kB / 1.306 GB, free: 12.55 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002925/2.193, allocations: 156.5 kB / 1.306 GB, free: 12.38 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005182/2.194, allocations: 151.8 kB / 1.306 GB, free: 12.23 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003714/2.197, allocations: 6.909 MB / 1.313 GB, free: 4.75 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009147/2.198, allocations: 51.86 kB / 1.313 GB, free: 4.699 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.841e-05/2.198, allocations: 35.98 kB / 1.313 GB, free: 4.664 MB / 0.5261 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.hex.m2_flow:DUMMY_DER(fixed = false ) "Mass flow rate from port_a2 to port_b2 (m2_flow > 0 is design flow direction)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 2} * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002918/2.199, allocations: 138 kB / 1.313 GB, free: 4.523 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002386/2.199, allocations: 98.78 kB / 1.313 GB, free: 4.426 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001869/2.201, allocations: 0.7661 MB / 1.314 GB, free: 3.641 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/2.201, allocations: 4 kB / 1.314 GB, free: 3.637 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.029e-05/2.201, allocations: 11.98 kB / 1.314 GB, free: 3.625 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/2.201, allocations: 4 kB / 1.314 GB, free: 3.621 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003014/2.204, allocations: 1.632 MB / 1.316 GB, free: 1.945 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/2.204, allocations: 0 / 1.316 GB, free: 1.945 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004597/2.204, allocations: 107.9 kB / 1.316 GB, free: 1.84 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003403/2.205, allocations: 144.1 kB / 1.316 GB, free: 1.684 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.203e-05/2.205, allocations: 4 kB / 1.316 GB, free: 1.68 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2597/2.465, allocations: 5.192 MB / 1.321 GB, free: 117.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.511e-06/2.465, allocations: 0 / 1.321 GB, free: 117.7 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002049/2.467, allocations: 1.084 MB / 1.322 GB, free: 117.5 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003528/2.467, allocations: 181 kB / 1.322 GB, free: 117.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001457/2.467, allocations: 0 / 1.322 GB, free: 117.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006083/2.468, allocations: 42.83 kB / 1.322 GB, free: 117.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.344e-05/2.468, allocations: 32.86 kB / 1.322 GB, free: 117.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.569e-05/2.468, allocations: 29.56 kB / 1.322 GB, free: 117.5 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0007418/2.469, allocations: 0.5186 MB / 1.323 GB, free: 117.3 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002742/2.471, allocations: 0.7412 MB / 1.324 GB, free: 117.3 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (hex.vol1.dynBal.medium.T,hex.vol2.dynBal.medium.T,hex.capFil1.T,hex.capFil2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 2} * Non-linear torn systems: 2 {1 1,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.001453/2.473, allocations: 0.7236 MB / 1.324 GB, free: 117.2 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002129/2.475, allocations: 1.85 MB / 1.326 GB, free: 116.4 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/2.475, allocations: 0 / 1.326 GB, free: 116.4 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0005885/2.476, allocations: 0.5713 MB / 1.327 GB, free: 116.1 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002006/2.478, allocations: 460.3 kB / 1.327 GB, free: 116.1 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002817/2.48, allocations: 1.543 MB / 1.329 GB, free: 115.7 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007225/2.481, allocations: 1.204 MB / 1.33 GB, free: 115 MB / 0.5261 GB Notification: Performance of SimCode: time 4.91e-07/2.481, allocations: 0 / 1.33 GB, free: 115 MB / 0.5261 GB Notification: Performance of Templates: time 0.04218/2.523, allocations: 29.31 MB / 1.358 GB, free: 114.5 MB / 0.5261 GB make -j1 -f Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.HexInternalElement.makefile (rm -f Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.HexInternalElement.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.HexInternalElement.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.HexInternalElement.pipe >> ../files/Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.HexInternalElement.sim & ./Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.HexInternalElement -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.HeatExchangers.Boreholes.BaseClasses.Examples.HexInternalElement.pipe 2>&1)