Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedNonUniformInitial.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.Validation.StratifiedNonUniformInitial,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Storage_Validation_StratifiedNonUniformInitial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Storage.Validation.StratifiedNonUniformInitial,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Storage_Validation_StratifiedNonUniformInitial",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.7058/0.7058, allocations: 141.8 MB / 149.1 MB, free: 11.76 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.001213/0.001213, allocations: 180 kB / 181.9 MB, free: 8.547 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.234/1.234, allocations: 221.4 MB / 436 MB, free: 0.9297 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.001029/0.001028, allocations: 89.19 kB / 0.507 GB, free: 9.789 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001715/0.001715, allocations: 285.6 kB / 0.5884 GB, free: 6.605 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1764/0.1782, allocations: 89.63 MB / 0.676 GB, free: 12.89 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3296/0.5078, allocations: 82.77 MB / 0.7568 GB, free: 137.4 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.546/1.054, allocations: 375 MB / 1.123 GB, free: 9.863 MB / 0.6669 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002882/1.054, allocations: 90.94 kB / 1.123 GB, free: 9.82 MB / 0.6669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1414 * Number of variables: 1414 Notification: Performance of Generate backend data structure: time 6.403/7.457, allocations: 2.109 GB / 3.232 GB, free: 79.11 MB / 0.7138 GB Notification: Performance of prepare preOptimizeDAE: time 4.86e-05/7.457, allocations: 9.281 kB / 3.232 GB, free: 79.11 MB / 0.7138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006452/7.464, allocations: 0.7778 MB / 3.233 GB, free: 78.72 MB / 0.7138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02266/7.486, allocations: 7.369 MB / 3.24 GB, free: 72.67 MB / 0.7138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004044/7.487, allocations: 176 kB / 3.24 GB, free: 72.5 MB / 0.7138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00255/7.49, allocations: 323.9 kB / 3.241 GB, free: 72.18 MB / 0.7138 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01606/7.506, allocations: 5.675 MB / 3.246 GB, free: 66.5 MB / 0.7138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0207/7.526, allocations: 6.741 MB / 3.253 GB, free: 59.55 MB / 0.7138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004134/7.527, allocations: 19.86 kB / 3.253 GB, free: 59.53 MB / 0.7138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002091/7.529, allocations: 8 kB / 3.253 GB, free: 59.52 MB / 0.7138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002256/7.529, allocations: 226.3 kB / 3.253 GB, free: 59.3 MB / 0.7138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05165/7.581, allocations: 29.41 MB / 3.282 GB, free: 28.95 MB / 0.7138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00652/7.587, allocations: 3.338 MB / 3.285 GB, free: 25.62 MB / 0.7138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003971/7.591, allocations: 2.699 MB / 3.288 GB, free: 22.92 MB / 0.7138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009373/7.592, allocations: 0.8279 MB / 3.289 GB, free: 21.94 MB / 0.7138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.267e-05/7.592, allocations: 72.67 kB / 3.289 GB, free: 21.86 MB / 0.7138 GB Notification: Performance of pre-optimization done (n=267): time 6.973e-06/7.592, allocations: 4 kB / 3.289 GB, free: 21.86 MB / 0.7138 GB Notification: Performance of matching and sorting (n=267): time 0.008066/7.601, allocations: 3.659 MB / 3.292 GB, free: 18.14 MB / 0.7138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.965e-05/7.601, allocations: 77.52 kB / 3.292 GB, free: 18.05 MB / 0.7138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01021/7.611, allocations: 4.008 MB / 3.296 GB, free: 14.03 MB / 0.7138 GB Notification: Performance of collectPreVariables (initialization): time 0.000809/7.612, allocations: 29.7 kB / 3.296 GB, free: 13.99 MB / 0.7138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002342/7.614, allocations: 2.148 MB / 3.298 GB, free: 11.81 MB / 0.7138 GB Notification: Performance of collectInitialBindings (initialization): time 0.002022/7.616, allocations: 0.9008 MB / 3.299 GB, free: 10.9 MB / 0.7138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005566/7.617, allocations: 0 / 3.299 GB, free: 10.9 MB / 0.7138 GB Notification: Performance of setup shared object (initialization): time 0.0003557/7.617, allocations: 465.8 kB / 3.3 GB, free: 10.44 MB / 0.7138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002642/7.62, allocations: 1.604 MB / 3.301 GB, free: 8.832 MB / 0.7138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003216/7.623, allocations: 2.838 MB / 3.304 GB, free: 5.43 MB / 0.7138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003918/7.627, allocations: 2.343 MB / 3.306 GB, free: 3.066 MB / 0.7138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.63e-05/7.627, allocations: 12 kB / 3.306 GB, free: 3.055 MB / 0.7138 GB Notification: Performance of matching and sorting (n=475) (initialization): time 0.01029/7.637, allocations: 5.066 MB / 3.311 GB, free: 13.94 MB / 0.7294 GB Notification: Performance of prepare postOptimizeDAE: time 7.222e-05/7.637, allocations: 8 kB / 3.311 GB, free: 13.93 MB / 0.7294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.521e-05/7.637, allocations: 43.39 kB / 3.311 GB, free: 13.89 MB / 0.7294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001044/7.638, allocations: 421.6 kB / 3.312 GB, free: 13.48 MB / 0.7294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003307/7.642, allocations: 0.8502 MB / 3.313 GB, free: 12.62 MB / 0.7294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0059/7.648, allocations: 4.982 MB / 3.317 GB, free: 7.422 MB / 0.7294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005954/7.654, allocations: 499.7 kB / 3.318 GB, free: 6.93 MB / 0.7294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007343/7.654, allocations: 182.6 kB / 3.318 GB, free: 6.754 MB / 0.7294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 181 * Number of states: 0 () * Number of discrete variables: 2 (dHTan.local_reset,dHTanEnh.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (447): * Single equations (assignments): 445 * 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: 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.001328/7.656, allocations: 227.6 kB / 3.318 GB, free: 6.523 MB / 0.7294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002099/7.658, allocations: 418.9 kB / 3.319 GB, free: 6.109 MB / 0.7294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009512/7.667, allocations: 4.058 MB / 3.323 GB, free: 1.996 MB / 0.7294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.918e-05/7.667, allocations: 24 kB / 3.323 GB, free: 1.973 MB / 0.7294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.819e-05/7.667, allocations: 7.938 kB / 3.323 GB, free: 1.965 MB / 0.7294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.3589/8.026, allocations: 3.586 MB / 3.326 GB, free: 146.6 MB / 0.7294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01949/8.046, allocations: 9.504 MB / 3.335 GB, free: 146 MB / 0.7294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-05/8.046, allocations: 9.875 kB / 3.335 GB, free: 146 MB / 0.7294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002235/8.048, allocations: 495.9 kB / 3.336 GB, free: 146 MB / 0.7294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007666/8.049, allocations: 372.5 kB / 3.336 GB, free: 146 MB / 0.7294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001865/8.049, allocations: 42.14 kB / 3.336 GB, free: 146 MB / 0.7294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004423/8.054, allocations: 4.919 MB / 3.341 GB, free: 143.5 MB / 0.7294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.897e-06/8.054, allocations: 8.719 kB / 3.341 GB, free: 143.5 MB / 0.7294 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009174/8.063, allocations: 6.671 MB / 3.348 GB, free: 142.4 MB / 0.7294 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01143/8.074, allocations: 9.351 MB / 3.357 GB, free: 140.7 MB / 0.7294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003855/8.078, allocations: 1.121 MB / 3.358 GB, free: 140.4 MB / 0.7294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001646/8.08, allocations: 17.12 kB / 3.358 GB, free: 140.4 MB / 0.7294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004207/8.084, allocations: 225.2 kB / 3.358 GB, free: 140.4 MB / 0.7294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002656/8.084, allocations: 148.5 kB / 3.358 GB, free: 140.4 MB / 0.7294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003447/8.085, allocations: 131.3 kB / 3.358 GB, free: 140.4 MB / 0.7294 GB Notification: Performance of sort global known variables: time 0.004637/8.089, allocations: 3.051 MB / 3.361 GB, free: 140.2 MB / 0.7294 GB Notification: Performance of remove unused functions: time 0.009237/8.099, allocations: 1.937 MB / 3.363 GB, free: 140.1 MB / 0.7294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 16 (heaTan.vol[1].dynBal.U,heaTan.vol[2].dynBal.U,heaTan.vol[3].dynBal.U,heaTan.vol[4].dynBal.U,heaTan.vol[5].dynBal.U,heaTan.vol[6].dynBal.U,heaTan.vol[7].dynBal.U,cooTan.vol[1].dynBal.U,cooTan.vol[2].dynBal.U,cooTan.vol[3].dynBal.U,cooTan.vol[4].dynBal.U,cooTan.vol[5].dynBal.U,cooTan.vol[6].dynBal.U,cooTan.vol[7].dynBal.U,dHTanEnh.y,dHTan.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (242): * Single equations (assignments): 237 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 Backend phase and start with SimCode phase: time 0.001782/8.1, allocations: 0.6937 MB / 3.364 GB, free: 140 MB / 0.7294 GB Notification: Performance of simCode: created initialization part: time 0.005805/8.106, allocations: 4.026 MB / 3.368 GB, free: 139.7 MB / 0.7294 GB Notification: Performance of simCode: created event and clocks part: time 1.149e-05/8.106, allocations: 6.844 kB / 3.368 GB, free: 139.7 MB / 0.7294 GB Notification: Performance of simCode: created simulation system equations: time 0.002318/8.109, allocations: 1.92 MB / 3.37 GB, free: 139.5 MB / 0.7294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01142/8.12, allocations: 2.24 MB / 3.372 GB, free: 139.5 MB / 0.7294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02147/8.142, allocations: 10.46 MB / 3.382 GB, free: 137.6 MB / 0.7294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006077/8.148, allocations: 4.815 MB / 3.387 GB, free: 136.8 MB / 0.7294 GB Notification: Performance of SimCode: time 1.242e-06/8.148, allocations: 0 / 3.387 GB, free: 136.8 MB / 0.7294 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedNonUniformInitial.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedNonUniformInitial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedNonUniformInitial.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedNonUniformInitial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Storage_Validation_StratifiedNonUniformInitial_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Storage_Validation_StratifiedNonUniformInitial.fmu > BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedNonUniformInitial.pipe 2>&1)