Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading") translateModel(BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading") [: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/BuildingSystems 2.0.0-master/package.mo): time 0.748/0.748, allocations: 141.8 MB / 149.1 MB, free: 12.67 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001132/0.001132, allocations: 175.9 kB / 181.9 MB, free: 9.422 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 221.3 MB / 436 MB, free: 1.848 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009565/0.0009564, allocations: 92.05 kB / 0.507 GB, free: 10.64 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001908/0.001908, allocations: 284.9 kB / 0.5885 GB, free: 7.469 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 6.813e-06/6.833e-06, allocations: 0 / 0.6759 GB, free: 13.83 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4486/0.4486, allocations: 82.77 MB / 0.7567 GB, free: 138.5 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7108/1.159, allocations: 377.6 MB / 1.125 GB, free: 9.25 MB / 0.6669 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000253/1.16, allocations: 88.83 kB / 1.126 GB, free: 9.207 MB / 0.6669 GB Notification: Performance of FrontEnd: time 8.895/10.05, allocations: 2.22 GB / 3.346 GB, free: 84.88 MB / 0.7294 GB Notification: Performance of Transformations before backend: time 0.001052/10.06, allocations: 184.3 kB / 3.346 GB, free: 84.85 MB / 0.7294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1564 * Number of variables: 1564 Notification: Performance of Generate backend data structure: time 0.0226/10.08, allocations: 6.051 MB / 3.352 GB, free: 82.82 MB / 0.7294 GB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/10.08, allocations: 11.66 kB / 3.352 GB, free: 82.82 MB / 0.7294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006476/10.09, allocations: 0.8523 MB / 3.353 GB, free: 82.42 MB / 0.7294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02376/10.11, allocations: 7.798 MB / 3.36 GB, free: 81.59 MB / 0.7294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005432/10.11, allocations: 197.1 kB / 3.361 GB, free: 81.59 MB / 0.7294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003319/10.11, allocations: 365 kB / 3.361 GB, free: 81.58 MB / 0.7294 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01999/10.13, allocations: 6.506 MB / 3.367 GB, free: 81.55 MB / 0.7294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.027/10.16, allocations: 7.589 MB / 3.375 GB, free: 80.62 MB / 0.7294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004902/10.16, allocations: 16.19 kB / 3.375 GB, free: 80.62 MB / 0.7294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002905/10.16, allocations: 13.53 kB / 3.375 GB, free: 80.62 MB / 0.7294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003387/10.16, allocations: 249.9 kB / 3.375 GB, free: 80.61 MB / 0.7294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06162/10.23, allocations: 33.91 MB / 3.408 GB, free: 65.61 MB / 0.7294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007169/10.23, allocations: 3.979 MB / 3.412 GB, free: 65.57 MB / 0.7294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005133/10.24, allocations: 3.158 MB / 3.415 GB, free: 65.52 MB / 0.7294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001321/10.24, allocations: 0.9615 MB / 3.416 GB, free: 64.58 MB / 0.7294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004682/10.24, allocations: 2.246 MB / 3.418 GB, free: 64.48 MB / 0.7294 GB Notification: Performance of pre-optimization done (n=317): time 7.344e-06/10.24, allocations: 0 / 3.418 GB, free: 64.48 MB / 0.7294 GB Notification: Performance of matching and sorting (n=317): time 0.01091/10.25, allocations: 4.746 MB / 3.423 GB, free: 64.1 MB / 0.7294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.095e-05/10.25, allocations: 89.06 kB / 3.423 GB, free: 64.04 MB / 0.7294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01025/10.27, allocations: 4.344 MB / 3.427 GB, free: 63.7 MB / 0.7294 GB Notification: Performance of collectPreVariables (initialization): time 0.001185/10.27, allocations: 31.55 kB / 3.427 GB, free: 63.67 MB / 0.7294 GB Notification: Performance of collectInitialEqns (initialization): time 0.004428/10.27, allocations: 2.42 MB / 3.429 GB, free: 62.3 MB / 0.7294 GB Notification: Performance of collectInitialBindings (initialization): time 0.003087/10.27, allocations: 1.072 MB / 3.431 GB, free: 61.6 MB / 0.7294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001/10.27, allocations: 3.438 kB / 3.431 GB, free: 61.6 MB / 0.7294 GB Notification: Performance of setup shared object (initialization): time 0.0005559/10.28, allocations: 492.9 kB / 3.431 GB, free: 61.29 MB / 0.7294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003919/10.28, allocations: 2.065 MB / 3.433 GB, free: 61.27 MB / 0.7294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004801/10.28, allocations: 3.553 MB / 3.436 GB, free: 59.45 MB / 0.7294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006121/10.29, allocations: 3.124 MB / 3.44 GB, free: 59.4 MB / 0.7294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.877e-05/10.29, allocations: 12.62 kB / 3.44 GB, free: 59.4 MB / 0.7294 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01561/10.31, allocations: 6.457 MB / 3.446 GB, free: 59.03 MB / 0.7294 GB Notification: Performance of prepare postOptimizeDAE: time 2.373e-05/10.31, allocations: 6.906 kB / 3.446 GB, free: 59.03 MB / 0.7294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001282/10.31, allocations: 49.22 kB / 3.446 GB, free: 59.03 MB / 0.7294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001059/10.31, allocations: 435.5 kB / 3.446 GB, free: 59.01 MB / 0.7294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004563/10.31, allocations: 1.028 MB / 3.447 GB, free: 59.01 MB / 0.7294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0056/10.32, allocations: 5.013 MB / 3.452 GB, free: 56.39 MB / 0.7294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007638/10.33, allocations: 0.5972 MB / 3.453 GB, free: 56.14 MB / 0.7294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00138/10.33, allocations: 218.1 kB / 3.453 GB, free: 56.14 MB / 0.7294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 222 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,dHTan.local_reset,dHTanEnh.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (540): * Single equations (assignments): 537 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002716/10.33, allocations: 243.3 kB / 3.453 GB, free: 56 MB / 0.7294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003376/10.33, allocations: 473.7 kB / 3.454 GB, free: 55.76 MB / 0.7294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01419/10.35, allocations: 5.293 MB / 3.459 GB, free: 55.55 MB / 0.7294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-05/10.35, allocations: 31.56 kB / 3.459 GB, free: 55.55 MB / 0.7294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.733e-05/10.35, allocations: 3.875 kB / 3.459 GB, free: 55.55 MB / 0.7294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008095/10.36, allocations: 4.631 MB / 3.463 GB, free: 55.09 MB / 0.7294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03821/10.39, allocations: 11.51 MB / 3.475 GB, free: 54.25 MB / 0.7294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.087e-05/10.39, allocations: 7.062 kB / 3.475 GB, free: 54.25 MB / 0.7294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003469/10.4, allocations: 0.6115 MB / 3.475 GB, free: 54.25 MB / 0.7294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009697/10.4, allocations: 375.5 kB / 3.476 GB, free: 54.23 MB / 0.7294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006555/10.4, allocations: 46.61 kB / 3.476 GB, free: 54.23 MB / 0.7294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005669/10.4, allocations: 4.912 MB / 3.48 GB, free: 51.61 MB / 0.7294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.546e-06/10.4, allocations: 6.781 kB / 3.48 GB, free: 51.61 MB / 0.7294 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01441/10.42, allocations: 7.946 MB / 3.488 GB, free: 50.86 MB / 0.7294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004711/10.42, allocations: 1.257 MB / 3.489 GB, free: 50.48 MB / 0.7294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002061/10.43, allocations: 19.56 kB / 3.489 GB, free: 50.48 MB / 0.7294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005301/10.43, allocations: 323.1 kB / 3.49 GB, free: 50.46 MB / 0.7294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004523/10.43, allocations: 170.2 kB / 3.49 GB, free: 50.46 MB / 0.7294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005948/10.43, allocations: 136.7 kB / 3.49 GB, free: 50.46 MB / 0.7294 GB Notification: Performance of sort global known variables: time 0.007384/10.44, allocations: 3.305 MB / 3.493 GB, free: 50.28 MB / 0.7294 GB Notification: Performance of remove unused functions: time 0.01047/10.45, allocations: 2.031 MB / 3.495 GB, free: 49.95 MB / 0.7294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 16 (tanEnh.vol[1].dynBal.U,tanEnh.vol[2].dynBal.U,tanEnh.vol[3].dynBal.U,tanEnh.vol[4].dynBal.U,tanEnh.vol[5].dynBal.U,tanEnh.vol[6].dynBal.U,tanEnh.vol[7].dynBal.U,tan.vol[1].dynBal.U,tan.vol[2].dynBal.U,tan.vol[3].dynBal.U,tan.vol[4].dynBal.U,tan.vol[5].dynBal.U,tan.vol[6].dynBal.U,tan.vol[7].dynBal.U,dHTanEnh.y,dHTan.y) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (296): * Single equations (assignments): 289 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002315/10.45, allocations: 0.7911 MB / 3.496 GB, free: 49.75 MB / 0.7294 GB Notification: Performance of simCode: created initialization part: time 0.00854/10.46, allocations: 5.093 MB / 3.501 GB, free: 49.46 MB / 0.7294 GB Notification: Performance of simCode: created event and clocks part: time 9.407e-06/10.46, allocations: 9.062 kB / 3.501 GB, free: 49.46 MB / 0.7294 GB Notification: Performance of simCode: created simulation system equations: time 0.003571/10.46, allocations: 2.401 MB / 3.503 GB, free: 49.25 MB / 0.7294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0137/10.48, allocations: 2.372 MB / 3.506 GB, free: 49.21 MB / 0.7294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03162/10.51, allocations: 11.65 MB / 3.517 GB, free: 47.24 MB / 0.7294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01209/10.52, allocations: 5.156 MB / 3.522 GB, free: 61.98 MB / 0.745 GB Notification: Performance of SimCode: time 1.533e-06/10.52, allocations: 0 / 3.522 GB, free: 61.98 MB / 0.745 GB Notification: Performance of Templates: time 0.6116/11.13, allocations: 95.98 MB / 3.616 GB, free: 133 MB / 0.745 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.sim & ./BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe 2>&1)