Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_Buildings.Fluid.Storage.Examples.StratifiedLoadingUnloading.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.Storage.Examples.StratifiedLoadingUnloading,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Storage.Examples.StratifiedLoadingUnloading") translateModel(Buildings.Fluid.Storage.Examples.StratifiedLoadingUnloading,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Storage.Examples.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/Buildings 1.6.0+build.1/package.mo): time 0.4953/0.4953, allocations: 94.74 MB / 102 MB, free: 10.34 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.00124/0.00124, allocations: 184.5 kB / 125.3 MB, free: 11.97 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.211/1.211, allocations: 170.5 MB / 319 MB, free: 9.508 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.001604/0.001604, allocations: 108.2 kB / 381 MB, free: 18.16 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.127e-05/1.132e-05, allocations: 4 kB / 448.6 MB, free: 2.137 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1259, allocations: 61.52 MB / 0.4981 GB, free: 4.527 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.067/1.193, allocations: 422.8 MB / 0.911 GB, free: 190.2 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003835/1.193, allocations: 87.67 kB / 0.9111 GB, free: 190.2 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.544/3.738, allocations: 0.7422 GB / 1.653 GB, free: 32.45 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.001102/3.739, allocations: 182.6 kB / 1.653 GB, free: 32.41 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: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.02316/3.762, allocations: 5.683 MB / 1.659 GB, free: 30.18 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/3.762, allocations: 8.594 kB / 1.659 GB, free: 30.18 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006712/3.769, allocations: 0.7981 MB / 1.66 GB, free: 29.82 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02001/3.789, allocations: 6.322 MB / 1.666 GB, free: 28.88 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000461/3.789, allocations: 185.2 kB / 1.666 GB, free: 28.88 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003266/3.793, allocations: 358 kB / 1.666 GB, free: 28.87 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01894/3.812, allocations: 6.895 MB / 1.673 GB, free: 27.62 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02736/3.839, allocations: 7.332 MB / 1.68 GB, free: 24.88 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004246/3.839, allocations: 10.69 kB / 1.68 GB, free: 24.88 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003095/3.843, allocations: 7.719 kB / 1.68 GB, free: 24.88 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002359/3.843, allocations: 139.5 kB / 1.681 GB, free: 24.88 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06954/3.912, allocations: 31.01 MB / 1.711 GB, free: 14.55 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007201/3.92, allocations: 3.357 MB / 1.714 GB, free: 11.2 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007129/3.927, allocations: 3.59 MB / 1.718 GB, free: 7.613 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001422/3.928, allocations: 0.6486 MB / 1.718 GB, free: 6.871 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006866/3.935, allocations: 2.971 MB / 1.721 GB, free: 3.844 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=386): time 1.016e-05/3.935, allocations: 0 / 1.721 GB, free: 3.844 MB / 0.5417 GB Notification: Performance of matching and sorting (n=428): time 0.3779/4.313, allocations: 15.52 MB / 1.736 GB, free: 89.35 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001878/4.313, allocations: 336 kB / 1.737 GB, free: 89 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009201/4.323, allocations: 3.688 MB / 1.74 GB, free: 88.71 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.001406/4.324, allocations: 28.64 kB / 1.74 GB, free: 88.68 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.002913/4.327, allocations: 2.137 MB / 1.742 GB, free: 87.8 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.003011/4.33, allocations: 1.448 MB / 1.744 GB, free: 86.9 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007586/4.331, allocations: 2.812 kB / 1.744 GB, free: 86.9 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0004483/4.331, allocations: 0.5114 MB / 1.744 GB, free: 86.59 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004771/4.336, allocations: 2.683 MB / 1.747 GB, free: 86.57 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005951/4.342, allocations: 4.069 MB / 1.751 GB, free: 85.01 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009864/4.352, allocations: 4.318 MB / 1.755 GB, free: 84.97 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.664e-05/4.352, allocations: 13.22 kB / 1.755 GB, free: 84.97 MB / 0.5417 GB Notification: Performance of matching and sorting (n=668) (initialization): time 0.02035/4.372, allocations: 8.285 MB / 1.763 GB, free: 84.59 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.659e-05/4.372, allocations: 7.531 kB / 1.763 GB, free: 84.59 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001835/4.373, allocations: 42.47 kB / 1.763 GB, free: 84.59 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001112/4.374, allocations: 428.1 kB / 1.764 GB, free: 84.57 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005569/4.379, allocations: 1.201 MB / 1.765 GB, free: 84.57 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006839/4.386, allocations: 4.987 MB / 1.77 GB, free: 81.98 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008233/4.394, allocations: 319.3 kB / 1.77 GB, free: 81.94 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001562/4.396, allocations: 236.1 kB / 1.77 GB, free: 81.94 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 184 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (639): * Single equations (assignments): 636 * 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.002554/4.399, allocations: 245.5 kB / 1.77 GB, free: 81.81 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003092/4.402, allocations: 473.7 kB / 1.771 GB, free: 81.57 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01767/4.419, allocations: 7.38 MB / 1.778 GB, free: 81.36 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.271e-05/4.419, allocations: 47.62 kB / 1.778 GB, free: 81.35 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.774e-05/4.42, allocations: 3.531 kB / 1.778 GB, free: 81.35 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.084e-05/4.42, allocations: 21.19 kB / 1.778 GB, free: 81.35 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03418/4.454, allocations: 13.72 MB / 1.792 GB, free: 80.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.582e-05/4.454, allocations: 4.656 kB / 1.792 GB, free: 80.84 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004333/4.458, allocations: 0.8122 MB / 1.792 GB, free: 80.84 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009871/4.459, allocations: 372.5 kB / 1.793 GB, free: 80.82 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000609/4.46, allocations: 69.42 kB / 1.793 GB, free: 80.82 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005746/4.466, allocations: 4.925 MB / 1.798 GB, free: 78.22 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.421e-06/4.466, allocations: 0 / 1.798 GB, free: 78.22 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02114/4.487, allocations: 11.01 MB / 1.808 GB, free: 77.66 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004997/4.492, allocations: 1.292 MB / 1.81 GB, free: 77.34 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002439/4.494, allocations: 28.86 kB / 1.81 GB, free: 77.34 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005645/4.5, allocations: 253.7 kB / 1.81 GB, free: 77.32 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006765/4.501, allocations: 226.5 kB / 1.81 GB, free: 77.31 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000716/4.501, allocations: 157.5 kB / 1.81 GB, free: 77.31 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.006737/4.508, allocations: 2.791 MB / 1.813 GB, free: 77.13 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01049/4.519, allocations: 1.63 MB / 1.815 GB, free: 77.12 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 36 (tanEnh.vol[1].dynBal.medium.T,tanEnh.vol[2].dynBal.medium.T,tanEnh.vol[3].dynBal.medium.T,tanEnh.vol[4].dynBal.medium.T,tanEnh.vol[5].dynBal.medium.T,tanEnh.vol[6].dynBal.medium.T,tanEnh.vol[7].dynBal.medium.T,tanEnh.hA_flow.h_out,tanEnh.hVol_flow[1].h_out,tanEnh.hVol_flow[2].h_out,tanEnh.hVol_flow[3].h_out,tanEnh.hVol_flow[4].h_out,tanEnh.hVol_flow[5].h_out,tanEnh.hVol_flow[6].h_out,tanEnh.hB_flow.h_out,tan.vol[1].dynBal.medium.T,tan.vol[2].dynBal.medium.T,tan.vol[3].dynBal.medium.T,tan.vol[4].dynBal.medium.T,tan.vol[5].dynBal.medium.T,tan.vol[6].dynBal.medium.T,tan.vol[7].dynBal.medium.T,tan.hA_flow.h_out,tan.hVol_flow[1].h_out,tan.hVol_flow[2].h_out,tan.hVol_flow[3].h_out,tan.hVol_flow[4].h_out,tan.hVol_flow[5].h_out,tan.hVol_flow[6].h_out,tan.hB_flow.h_out,HIn_flow.h_out,HOut_flow.h_out,HInEnh_flow.h_out,HOutEnh_flow.h_out,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 (404): * Single equations (assignments): 400 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.002717/4.521, allocations: 0.8324 MB / 1.815 GB, free: 76.96 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01214/4.534, allocations: 6.521 MB / 1.822 GB, free: 76.68 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.461e-05/4.534, allocations: 6.188 kB / 1.822 GB, free: 76.68 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.007071/4.541, allocations: 3.219 MB / 1.825 GB, free: 76.46 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01445/4.555, allocations: 2.219 MB / 1.827 GB, free: 76.43 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03978/4.595, allocations: 13.56 MB / 1.84 GB, free: 74.46 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01266/4.608, allocations: 4.934 MB / 1.845 GB, free: 73.62 MB / 0.5417 GB Notification: Performance of SimCode: time 1.733e-06/4.608, allocations: 2.156 kB / 1.845 GB, free: 73.62 MB / 0.5417 GB Notification: Performance of Templates: time 0.1875/4.795, allocations: 102.1 MB / 1.945 GB, free: 19.93 MB / 0.5417 GB make -j1 -f Buildings_1.6_Buildings.Fluid.Storage.Examples.StratifiedLoadingUnloading.makefile (rm -f Buildings_1.6_Buildings.Fluid.Storage.Examples.StratifiedLoadingUnloading.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Storage.Examples.StratifiedLoadingUnloading.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Storage.Examples.StratifiedLoadingUnloading.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Storage.Examples.StratifiedLoadingUnloading.sim & ./Buildings_1.6_Buildings.Fluid.Storage.Examples.StratifiedLoadingUnloading -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Storage.Examples.StratifiedLoadingUnloading.pipe 2>&1)