Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.conf.json 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/IDEAS 3.0.0-master/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) 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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: "" <> buildModelFMU(IDEAS.Fluid.Storage.Examples.Stratified,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Storage.Examples.Stratified,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Storage_Examples_Stratified",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/Complex 4.0.0+maint.om/package.mo): time 0.004383/0.004383, allocations: 181.5 kB / 7.455 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.722/0.722, allocations: 133.5 MB / 141.4 MB, free: 15.66 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.71/1.71, allocations: 221.3 MB / 395 MB, free: 10.18 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00117/0.00117, allocations: 106 kB / 477.8 MB, free: 10.76 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5574/0.5586, allocations: 88.42 MB / 0.5529 GB, free: 89.13 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1908/0.7494, allocations: 82.3 MB / 0.6333 GB, free: 13.97 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.325/2.074, allocations: 384.5 MB / 1.009 GB, free: 249.3 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004207/2.075, allocations: 89.45 kB / 1.009 GB, free: 249.2 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2145 * Number of variables: 2145 Notification: Performance of Generate backend data structure: time 11.31/13.38, allocations: 2.984 GB / 3.993 GB, free: 67.31 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.796e-05/13.38, allocations: 11.34 kB / 3.993 GB, free: 67.31 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01043/13.39, allocations: 1.177 MB / 3.994 GB, free: 66.76 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03377/13.42, allocations: 11.2 MB / 4.005 GB, free: 65.65 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007461/13.43, allocations: 270.3 kB / 4.006 GB, free: 65.65 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004581/13.43, allocations: 489.2 kB / 4.006 GB, free: 65.65 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0276/13.46, allocations: 9.168 MB / 4.015 GB, free: 65.61 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03817/13.5, allocations: 10.56 MB / 4.025 GB, free: 64.43 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004555/13.5, allocations: 29.58 kB / 4.025 GB, free: 64.43 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00339/13.5, allocations: 18.69 kB / 4.025 GB, free: 64.43 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002758/13.5, allocations: 252.4 kB / 4.026 GB, free: 64.43 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1027/13.6, allocations: 46.2 MB / 4.071 GB, free: 44.68 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01166/13.61, allocations: 5.759 MB / 4.076 GB, free: 44.61 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008301/13.62, allocations: 4.779 MB / 4.081 GB, free: 44.53 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001489/13.62, allocations: 0.831 MB / 4.082 GB, free: 43.77 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007631/13.63, allocations: 3.272 MB / 4.085 GB, free: 43.61 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=449): time 1.064e-05/13.63, allocations: 6 kB / 4.085 GB, free: 43.61 MB / 0.7136 GB Notification: Performance of matching and sorting (n=449): time 0.01633/13.65, allocations: 6.358 MB / 4.091 GB, free: 43.16 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001057/13.65, allocations: 150.3 kB / 4.091 GB, free: 43.03 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01716/13.67, allocations: 6.077 MB / 4.097 GB, free: 42.62 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.001628/13.67, allocations: 28.92 kB / 4.097 GB, free: 42.59 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.005996/13.67, allocations: 3.223 MB / 4.1 GB, free: 40.79 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.004669/13.68, allocations: 1.504 MB / 4.102 GB, free: 39.81 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00135/13.68, allocations: 2.531 kB / 4.102 GB, free: 39.81 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0007206/13.68, allocations: 0.5482 MB / 4.102 GB, free: 39.49 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005417/13.69, allocations: 2.912 MB / 4.105 GB, free: 39.48 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006765/13.69, allocations: 4.755 MB / 4.11 GB, free: 37.29 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008107/13.7, allocations: 4.289 MB / 4.114 GB, free: 37.25 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001203/13.7, allocations: 20.22 kB / 4.114 GB, free: 37.25 MB / 0.7136 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.02245/13.72, allocations: 8.484 MB / 4.122 GB, free: 36.81 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.0105/13.73, allocations: 28.02 MB / 4.15 GB, free: 23.73 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002755/13.73, allocations: 62.78 kB / 4.15 GB, free: 23.73 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002069/13.73, allocations: 102.4 kB / 4.15 GB, free: 23.73 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007766/13.74, allocations: 1.421 MB / 4.151 GB, free: 23.73 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002341/13.74, allocations: 126.4 kB / 4.151 GB, free: 23.73 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01164/13.75, allocations: 0.7855 MB / 4.152 GB, free: 23.41 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002492/13.76, allocations: 281.5 kB / 4.153 GB, free: 23.41 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/13.76, allocations: 3.406 kB / 4.153 GB, free: 23.41 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02254/13.78, allocations: 7.805 MB / 4.16 GB, free: 23.27 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003498/13.78, allocations: 62.88 kB / 4.16 GB, free: 23.27 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002984/13.78, allocations: 102 kB / 4.16 GB, free: 23.26 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008112/13.79, allocations: 1.419 MB / 4.162 GB, free: 23.13 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003053/13.79, allocations: 128 kB / 4.162 GB, free: 23.11 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01025/13.8, allocations: 0.6752 MB / 4.162 GB, free: 22.86 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002326/13.8, allocations: 284.5 kB / 4.163 GB, free: 22.81 MB / 0.7292 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 264 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,$PRE.TWat.nextEvent,TWat.nextEvent,TWat.nextEventScaled,P.a,P.b,P.last,$PRE.P.nextEvent,P.nextEvent,P.nextEventScaled,dH.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (744): * Single equations (assignments): 742 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003944/13.81, allocations: 362.4 kB / 4.163 GB, free: 22.49 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004098/13.81, allocations: 0.6386 MB / 4.164 GB, free: 22.16 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01922/13.83, allocations: 7.078 MB / 4.171 GB, free: 19.88 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.776e-05/13.83, allocations: 43.73 kB / 4.171 GB, free: 19.88 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-05/13.83, allocations: 1.438 kB / 4.171 GB, free: 19.88 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01482/13.84, allocations: 5.866 MB / 4.176 GB, free: 18.04 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05196/13.9, allocations: 15.87 MB / 4.192 GB, free: 10.44 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.972e-05/13.9, allocations: 1.906 kB / 4.192 GB, free: 10.44 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005253/13.9, allocations: 0.8862 MB / 4.193 GB, free: 9.699 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.235e-05/13.9, allocations: 16 kB / 4.193 GB, free: 9.684 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001034/13.9, allocations: 65.61 kB / 4.193 GB, free: 9.637 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.6e-05/13.9, allocations: 16 kB / 4.193 GB, free: 9.621 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.411e-06/13.9, allocations: 0 / 4.193 GB, free: 9.621 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02164/13.92, allocations: 10.91 MB / 4.204 GB, free: 124 kB / 0.7292 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02788/13.95, allocations: 15.62 MB / 4.219 GB, free: 2.453 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007991/13.96, allocations: 1.765 MB / 4.221 GB, free: 0.9062 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003496/13.96, allocations: 34.72 kB / 4.221 GB, free: 0.8828 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009448/13.97, allocations: 443 kB / 4.221 GB, free: 0.6133 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001216/13.97, allocations: 225.3 kB / 4.221 GB, free: 492 kB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001797/13.98, allocations: 206.3 kB / 4.221 GB, free: 332 kB / 0.7448 GB Notification: Performance of sort global known variables: time 0.8923/14.87, allocations: 5.8 MB / 4.227 GB, free: 146.7 MB / 0.7449 GB Notification: Performance of remove unused functions: time 0.02603/14.89, allocations: 4.992 MB / 4.232 GB, free: 146.7 MB / 0.7449 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 21 (tanSim.vol[1].dynBal.U,tanSim.vol[2].dynBal.U,tanSim.vol[3].dynBal.U,tanSim.vol[4].dynBal.U,tanSim.vol[5].dynBal.U,tanSim.vol[6].dynBal.U,tanSim.vol[7].dynBal.U,tanSim.vol[8].dynBal.U,tanSim.vol[9].dynBal.U,tanSim.vol[10].dynBal.U,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,tanEnh.vol[8].dynBal.U,tanEnh.vol[9].dynBal.U,tanEnh.vol[10].dynBal.U,dH.y) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,TWat.nextEvent,TWat.nextEventScaled,P.a,P.b,P.last,P.nextEvent,P.nextEventScaled) * Number of discrete states: 12 (P.nextEvent,P.last,P.nextEventScaled,P.b,P.a,$whenCondition2,TWat.nextEvent,TWat.last,TWat.nextEventScaled,TWat.b,TWat.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (445): * Single equations (assignments): 441 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003305/14.9, allocations: 0.8643 MB / 4.233 GB, free: 146.6 MB / 0.7449 GB Notification: Performance of simCode: created initialization part: time 0.01846/14.92, allocations: 11.16 MB / 4.244 GB, free: 146.4 MB / 0.7449 GB Notification: Performance of simCode: created event and clocks part: time 1.466e-05/14.92, allocations: 11.94 kB / 4.244 GB, free: 146.4 MB / 0.7449 GB Notification: Performance of simCode: created simulation system equations: time 0.004224/14.92, allocations: 3.135 MB / 4.247 GB, free: 146.3 MB / 0.7449 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02049/14.94, allocations: 3.322 MB / 4.25 GB, free: 146.3 MB / 0.7449 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04454/14.99, allocations: 16.88 MB / 4.266 GB, free: 143.6 MB / 0.7449 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01132/15, allocations: 7.02 MB / 4.273 GB, free: 142.8 MB / 0.7449 GB Notification: Performance of SimCode: time 1.482e-06/15, allocations: 4.719 kB / 4.273 GB, free: 142.8 MB / 0.7449 GB (rm -f IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Storage_Examples_Stratified_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-08 IDEAS_dev_IDEAS_Fluid_Storage_Examples_Stratified.fmu > IDEAS_dev_IDEAS.Fluid.Storage.Examples.Stratified.pipe 2>&1)