Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Storage.Examples.StratifiedEnhancedInternalHex.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: "" <> buildModelFMU(BuildingSystems.Fluid.Storage.Examples.StratifiedEnhancedInternalHex,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Storage_Examples_StratifiedEnhancedInternalHex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Storage.Examples.StratifiedEnhancedInternalHex,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Storage_Examples_StratifiedEnhancedInternalHex",fmuType="me",version="2.0",platforms={"static"}) [: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.7239/0.7239, allocations: 141.8 MB / 149.1 MB, free: 480 kB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001076/0.001076, allocations: 186.3 kB / 182 MB, free: 12.67 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.258/1.258, allocations: 221.3 MB / 436 MB, free: 5.426 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.0009194/0.0009194, allocations: 91 kB / 0.5071 GB, free: 19.16 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001767/0.001767, allocations: 286.2 kB / 0.5885 GB, free: 6.613 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.4075/0.4093, allocations: 89.63 MB / 0.676 GB, free: 139.6 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1527/0.562, allocations: 82.78 MB / 0.7568 GB, free: 88.3 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9914/1.553, allocations: 391 MB / 1.139 GB, free: 190.2 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002146/1.554, allocations: 90.17 kB / 1.139 GB, free: 190.2 MB / 0.6982 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3221 * Number of variables: 3221 Notification: Performance of Generate backend data structure: time 15.36/16.91, allocations: 4.698 GB / 5.837 GB, free: 49.73 MB / 0.8232 GB Notification: Performance of prepare preOptimizeDAE: time 5.55e-05/16.91, allocations: 9.5 kB / 5.837 GB, free: 49.73 MB / 0.8232 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01503/16.93, allocations: 1.882 MB / 5.839 GB, free: 48.84 MB / 0.8232 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05134/16.98, allocations: 17.92 MB / 5.856 GB, free: 47.16 MB / 0.8232 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008985/16.98, allocations: 407.4 kB / 5.857 GB, free: 47.16 MB / 0.8232 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006231/16.99, allocations: 0.7633 MB / 5.857 GB, free: 47.16 MB / 0.8232 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03759/17.02, allocations: 14.87 MB / 5.872 GB, free: 47.1 MB / 0.8232 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05701/17.08, allocations: 16.45 MB / 5.888 GB, free: 44.95 MB / 0.8232 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001456/17.08, allocations: 47.03 kB / 5.888 GB, free: 44.95 MB / 0.8232 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005785/17.09, allocations: 25.12 kB / 5.888 GB, free: 44.95 MB / 0.8232 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009667/17.09, allocations: 355.6 kB / 5.888 GB, free: 44.95 MB / 0.8232 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.147/17.24, allocations: 78.98 MB / 5.965 GB, free: 6.812 MB / 0.8232 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02254/17.26, allocations: 10.74 MB / 5.976 GB, free: 3.098 MB / 0.8232 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0143/17.27, allocations: 5.978 MB / 5.982 GB, free: 0.9258 MB / 0.8232 GB Notification: Performance of preOpt evalFunc (simulation): time 0.582/17.85, allocations: 26.98 MB / 6.008 GB, free: 108.5 MB / 0.8388 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.048e-05/17.85, allocations: 123.4 kB / 6.008 GB, free: 108.4 MB / 0.8388 GB Notification: Performance of pre-optimization done (n=651): time 1.003e-05/17.85, allocations: 0 / 6.008 GB, free: 108.4 MB / 0.8388 GB Notification: Performance of matching and sorting (n=651): time 0.02383/17.88, allocations: 10.95 MB / 6.019 GB, free: 108.1 MB / 0.8388 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.334e-05/17.88, allocations: 120.9 kB / 6.019 GB, free: 108.1 MB / 0.8388 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02064/17.9, allocations: 10.94 MB / 6.03 GB, free: 107.6 MB / 0.8388 GB Notification: Performance of collectPreVariables (initialization): time 0.002517/17.9, allocations: 33.42 kB / 6.03 GB, free: 107.6 MB / 0.8388 GB Notification: Performance of collectInitialEqns (initialization): time 0.006111/17.91, allocations: 5.195 MB / 6.035 GB, free: 105.8 MB / 0.8388 GB Notification: Performance of collectInitialBindings (initialization): time 0.006179/17.91, allocations: 2.208 MB / 6.037 GB, free: 104.3 MB / 0.8388 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001888/17.92, allocations: 0 / 6.037 GB, free: 104.3 MB / 0.8388 GB Notification: Performance of setup shared object (initialization): time 0.0009874/17.92, allocations: 0.7659 MB / 6.038 GB, free: 104 MB / 0.8388 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00918/17.93, allocations: 5.605 MB / 6.043 GB, free: 104 MB / 0.8388 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01147/17.94, allocations: 9.405 MB / 6.052 GB, free: 99.42 MB / 0.8388 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02326/17.96, allocations: 10.05 MB / 6.062 GB, free: 99.33 MB / 0.8388 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002176/17.96, allocations: 37.69 kB / 6.062 GB, free: 99.33 MB / 0.8388 GB Notification: Performance of matching and sorting (n=1467) (initialization): time 0.04839/18.01, allocations: 19.87 MB / 6.082 GB, free: 98.42 MB / 0.8388 GB Notification: Performance of prepare postOptimizeDAE: time 0.02136/18.03, allocations: 66.65 MB / 6.147 GB, free: 61.2 MB / 0.87 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006637/18.03, allocations: 123.1 kB / 6.147 GB, free: 61.2 MB / 0.87 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01378/18.05, allocations: 3.982 MB / 6.151 GB, free: 61.07 MB / 0.87 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01093/18.06, allocations: 2.337 MB / 6.153 GB, free: 61.07 MB / 0.87 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02581/18.08, allocations: 20.99 MB / 6.173 GB, free: 65.15 MB / 0.8857 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0179/18.1, allocations: 1.503 MB / 6.175 GB, free: 64.46 MB / 0.8857 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004052/18.1, allocations: 0.5382 MB / 6.175 GB, free: 64.46 MB / 0.8857 GB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/18.1, allocations: 6.594 kB / 6.175 GB, free: 64.46 MB / 0.8857 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.05191/18.16, allocations: 18.67 MB / 6.194 GB, free: 64.15 MB / 0.8857 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007607/18.16, allocations: 121.2 kB / 6.194 GB, free: 64.15 MB / 0.8857 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01348/18.17, allocations: 3.99 MB / 6.198 GB, free: 64.01 MB / 0.8857 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01087/18.18, allocations: 2.316 MB / 6.2 GB, free: 64.01 MB / 0.8857 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02312/18.2, allocations: 19.19 MB / 6.219 GB, free: 53.79 MB / 0.8857 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01821/18.22, allocations: 1.192 MB / 6.22 GB, free: 53.32 MB / 0.8857 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003652/18.23, allocations: 0.5363 MB / 6.22 GB, free: 53.32 MB / 0.8857 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 549 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1233): * Single equations (assignments): 1215 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 8,(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 12 {2 16,2 16,2 16,2 16,2 16,2 16,2 17,2 17,2 17,2 17,2 17,2 17} Notification: Performance of prepare postOptimizeDAE: time 0.005563/18.23, allocations: 458.7 kB / 6.221 GB, free: 52.97 MB / 0.8857 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005912/18.24, allocations: 1.09 MB / 6.222 GB, free: 52.39 MB / 0.8857 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03273/18.27, allocations: 12.07 MB / 6.234 GB, free: 51.89 MB / 0.8857 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.822e-05/18.27, allocations: 66 kB / 6.234 GB, free: 51.89 MB / 0.8857 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.08e-05/18.27, allocations: 3.719 kB / 6.234 GB, free: 51.89 MB / 0.8857 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02192/18.29, allocations: 10.14 MB / 6.244 GB, free: 51.33 MB / 0.8857 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06782/18.36, allocations: 25.11 MB / 6.268 GB, free: 49.89 MB / 0.8857 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.599e-05/18.36, allocations: 19.34 kB / 6.268 GB, free: 49.89 MB / 0.8857 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006545/18.37, allocations: 1.088 MB / 6.269 GB, free: 49.84 MB / 0.8857 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007697/18.38, allocations: 2.452 MB / 6.272 GB, free: 49.7 MB / 0.8857 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001656/18.38, allocations: 99.58 kB / 6.272 GB, free: 49.7 MB / 0.8857 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4953/18.87, allocations: 18.12 MB / 6.289 GB, free: 143.1 MB / 0.8857 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.261e-05/18.87, allocations: 20.06 kB / 6.289 GB, free: 143.1 MB / 0.8857 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03441/18.91, allocations: 21.63 MB / 6.311 GB, free: 138.2 MB / 0.8857 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04162/18.95, allocations: 28.57 MB / 6.339 GB, free: 132.7 MB / 0.8857 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01181/18.96, allocations: 2.822 MB / 6.341 GB, free: 132 MB / 0.8857 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006107/18.97, allocations: 47.83 kB / 6.341 GB, free: 132 MB / 0.8857 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01269/18.98, allocations: 0.5818 MB / 6.342 GB, free: 132 MB / 0.8857 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00207/18.98, allocations: 392.8 kB / 6.342 GB, free: 132 MB / 0.8857 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002219/18.98, allocations: 296.1 kB / 6.343 GB, free: 132 MB / 0.8857 GB Notification: Performance of sort global known variables: time 0.02071/19, allocations: 8.201 MB / 6.351 GB, free: 131.7 MB / 0.8857 GB Notification: Performance of remove unused functions: time 0.04987/19.05, allocations: 8.26 MB / 6.359 GB, free: 131.1 MB / 0.8857 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 54 * Number of states: 30 (tanSte.vol[1].dynBal.U,tanSte.vol[2].dynBal.U,tanSte.vol[3].dynBal.U,tanSte.vol[4].dynBal.U,tanDyn.vol[1].dynBal.U,tanDyn.vol[2].dynBal.U,tanDyn.vol[3].dynBal.U,tanDyn.vol[4].dynBal.U,tanDyn.indTanHex.vol[1].dynBal.U,tanDyn.indTanHex.vol[2].dynBal.U,tanDyn.indTanHex.vol[3].dynBal.U,tanDyn.indTanHex.vol[4].dynBal.U,tanDyn.indTanHex.vol[5].dynBal.U,tanDyn.indTanHex.vol[6].dynBal.U,tanDyn.indTanHex.cap[1].T,tanDyn.indTanHex.cap[2].T,tanDyn.indTanHex.cap[3].T,tanDyn.indTanHex.cap[4].T,tanDyn.indTanHex.cap[5].T,tanDyn.indTanHex.cap[6].T,tanDynSol.vol[1].dynBal.U,tanDynSol.vol[2].dynBal.U,tanDynSol.vol[3].dynBal.U,tanDynSol.vol[4].dynBal.U,tanDynSol.indTanHex.cap[1].T,tanDynSol.indTanHex.cap[2].T,tanDynSol.indTanHex.cap[3].T,tanDynSol.indTanHex.cap[4].T,tanDynSol.indTanHex.cap[5].T,tanDynSol.indTanHex.cap[6].T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (561): * Single equations (assignments): 537 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 8,(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 12 {2 16,2 16,2 16,2 16,2 16,2 16,1 5,1 5,1 5,1 5,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.00836/19.06, allocations: 2.06 MB / 6.361 GB, free: 130.7 MB / 0.8857 GB Notification: Performance of simCode: created initialization part: time 0.04424/19.11, allocations: 21.25 MB / 6.381 GB, free: 129.8 MB / 0.8857 GB Notification: Performance of simCode: created event and clocks part: time 2.924e-05/19.11, allocations: 10.41 kB / 6.381 GB, free: 129.8 MB / 0.8857 GB Notification: Performance of simCode: created simulation system equations: time 0.009526/19.12, allocations: 5.089 MB / 6.386 GB, free: 129.5 MB / 0.8857 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02978/19.15, allocations: 5.121 MB / 6.391 GB, free: 129.4 MB / 0.8857 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07669/19.22, allocations: 27.79 MB / 6.418 GB, free: 124.6 MB / 0.8857 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.03307/19.26, allocations: 11.22 MB / 6.429 GB, free: 123.6 MB / 0.8857 GB Notification: Performance of SimCode: time 1.473e-06/19.26, allocations: 1.031 kB / 6.429 GB, free: 123.6 MB / 0.8857 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Storage.Examples.StratifiedEnhancedInternalHex.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Storage.Examples.StratifiedEnhancedInternalHex.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Storage.Examples.StratifiedEnhancedInternalHex.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Storage.Examples.StratifiedEnhancedInternalHex.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Storage_Examples_StratifiedEnhancedInternalHex_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Storage_Examples_StratifiedEnhancedInternalHex.fmu > BuildingSystems_BuildingSystems.Fluid.Storage.Examples.StratifiedEnhancedInternalHex.pipe 2>&1)