Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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_IDEAS_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Storage.Examples.Stratified,fileNamePrefix="IDEAS_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.004199/0.004199, allocations: 179.8 kB / 7.458 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7458/0.7458, allocations: 133.5 MB / 141.4 MB, free: 15.68 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.753/1.753, allocations: 221.3 MB / 395 MB, free: 10.23 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.001257/0.001256, allocations: 93.59 kB / 477.8 MB, free: 10.85 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5796/0.5809, allocations: 88.43 MB / 0.5529 GB, free: 89.15 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2588/0.8397, allocations: 82.3 MB / 0.6333 GB, free: 14.03 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.494/2.334, allocations: 384.5 MB / 1.009 GB, free: 244.8 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002565/2.334, allocations: 89.5 kB / 1.009 GB, free: 244.8 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.98/14.32, allocations: 2.984 GB / 3.993 GB, free: 67.08 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.298e-05/14.32, allocations: 10.97 kB / 3.993 GB, free: 67.08 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01042/14.33, allocations: 1.179 MB / 3.994 GB, free: 66.53 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03237/14.36, allocations: 11.2 MB / 4.005 GB, free: 65.42 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006018/14.36, allocations: 267.6 kB / 4.006 GB, free: 65.42 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004038/14.36, allocations: 488.8 kB / 4.006 GB, free: 65.42 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02897/14.39, allocations: 9.17 MB / 4.015 GB, free: 65.38 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03814/14.43, allocations: 10.56 MB / 4.025 GB, free: 64.2 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004916/14.43, allocations: 21.03 kB / 4.025 GB, free: 64.2 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00372/14.43, allocations: 23.94 kB / 4.025 GB, free: 64.2 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002597/14.44, allocations: 253.3 kB / 4.026 GB, free: 64.2 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0985/14.53, allocations: 46.19 MB / 4.071 GB, free: 44.45 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01327/14.55, allocations: 5.765 MB / 4.076 GB, free: 44.39 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009444/14.56, allocations: 4.774 MB / 4.081 GB, free: 44.3 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001687/14.56, allocations: 0.8274 MB / 4.082 GB, free: 43.55 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008778/14.57, allocations: 3.273 MB / 4.085 GB, free: 43.39 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=449): time 1.3e-05/14.57, allocations: 0 / 4.085 GB, free: 43.39 MB / 0.7136 GB Notification: Performance of matching and sorting (n=449): time 0.02148/14.59, allocations: 6.357 MB / 4.091 GB, free: 42.94 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001533/14.59, allocations: 155 kB / 4.091 GB, free: 42.81 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02252/14.61, allocations: 6.075 MB / 4.097 GB, free: 42.39 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.002569/14.61, allocations: 30.7 kB / 4.097 GB, free: 42.36 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.008078/14.62, allocations: 3.228 MB / 4.1 GB, free: 40.57 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.005044/14.63, allocations: 1.498 MB / 4.102 GB, free: 39.59 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001444/14.63, allocations: 0 / 4.102 GB, free: 39.59 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0007978/14.63, allocations: 0.5479 MB / 4.102 GB, free: 39.27 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005854/14.64, allocations: 2.916 MB / 4.105 GB, free: 39.26 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008778/14.64, allocations: 4.752 MB / 4.11 GB, free: 37.07 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01056/14.65, allocations: 4.29 MB / 4.114 GB, free: 37.03 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001253/14.66, allocations: 15.25 kB / 4.114 GB, free: 37.03 MB / 0.7136 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.02557/14.68, allocations: 8.489 MB / 4.122 GB, free: 36.59 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.01035/14.69, allocations: 28.02 MB / 4.15 GB, free: 23.51 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002799/14.69, allocations: 59.44 kB / 4.15 GB, free: 23.51 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002038/14.69, allocations: 100.3 kB / 4.15 GB, free: 23.51 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007856/14.7, allocations: 1.416 MB / 4.151 GB, free: 23.51 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002082/14.7, allocations: 128.5 kB / 4.151 GB, free: 23.51 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01122/14.71, allocations: 0.7878 MB / 4.152 GB, free: 23.18 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00219/14.71, allocations: 287.2 kB / 4.153 GB, free: 23.18 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/14.71, allocations: 2.656 kB / 4.153 GB, free: 23.18 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02511/14.74, allocations: 7.812 MB / 4.16 GB, free: 22.47 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003209/14.74, allocations: 60.22 kB / 4.16 GB, free: 22.47 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002419/14.74, allocations: 107.5 kB / 4.16 GB, free: 22.46 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008175/14.75, allocations: 1.414 MB / 4.162 GB, free: 22.33 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002895/14.75, allocations: 123.8 kB / 4.162 GB, free: 22.3 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01144/14.76, allocations: 0.6756 MB / 4.162 GB, free: 22.06 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002267/14.76, allocations: 279.9 kB / 4.163 GB, free: 22.02 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.003782/14.77, allocations: 358.4 kB / 4.163 GB, free: 21.69 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003919/14.77, allocations: 0.6388 MB / 4.164 GB, free: 21.36 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01911/14.79, allocations: 7.078 MB / 4.171 GB, free: 19.07 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.888e-05/14.79, allocations: 42.03 kB / 4.171 GB, free: 19.07 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.038e-05/14.79, allocations: 2.953 kB / 4.171 GB, free: 19.07 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01411/14.8, allocations: 5.873 MB / 4.176 GB, free: 17.23 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05605/14.86, allocations: 15.89 MB / 4.192 GB, free: 7.918 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-05/14.86, allocations: 0 / 4.192 GB, free: 7.918 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005711/14.86, allocations: 0.8834 MB / 4.193 GB, free: 7.184 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001376/14.86, allocations: 16 kB / 4.193 GB, free: 7.168 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001344/14.87, allocations: 62.16 kB / 4.193 GB, free: 7.121 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.779e-05/14.87, allocations: 16 kB / 4.193 GB, free: 7.105 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.846e-06/14.87, allocations: 2.969 kB / 4.193 GB, free: 7.105 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03281/14.9, allocations: 11.77 MB / 4.204 GB, free: 15.82 MB / 0.7448 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03279/14.93, allocations: 15.62 MB / 4.22 GB, free: 2.156 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008866/14.94, allocations: 1.766 MB / 4.221 GB, free: 0.6094 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004234/14.94, allocations: 27.61 kB / 4.221 GB, free: 0.5859 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009127/14.95, allocations: 449.8 kB / 4.222 GB, free: 320 kB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001422/14.96, allocations: 221.9 kB / 4.222 GB, free: 188 kB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001603/14.96, allocations: 196.9 kB / 4.222 GB, free: 28 kB / 0.7448 GB Notification: Performance of sort global known variables: time 0.8588/15.82, allocations: 4.696 MB / 4.227 GB, free: 145 MB / 0.7449 GB Notification: Performance of remove unused functions: time 0.02876/15.84, allocations: 4.989 MB / 4.232 GB, free: 145 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.003574/15.85, allocations: 0.872 MB / 4.233 GB, free: 144.9 MB / 0.7449 GB Notification: Performance of simCode: created initialization part: time 0.02245/15.87, allocations: 11.17 MB / 4.243 GB, free: 144.7 MB / 0.7449 GB Notification: Performance of simCode: created event and clocks part: time 1.557e-05/15.87, allocations: 4.406 kB / 4.243 GB, free: 144.7 MB / 0.7449 GB Notification: Performance of simCode: created simulation system equations: time 0.005952/15.88, allocations: 3.139 MB / 4.246 GB, free: 144.6 MB / 0.7449 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02184/15.9, allocations: 3.305 MB / 4.25 GB, free: 144.6 MB / 0.7449 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05448/15.95, allocations: 16.88 MB / 4.266 GB, free: 142 MB / 0.7449 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01516/15.97, allocations: 7.022 MB / 4.273 GB, free: 141.1 MB / 0.7449 GB Notification: Performance of SimCode: time 1.202e-06/15.97, allocations: 2.125 kB / 4.273 GB, free: 141.1 MB / 0.7449 GB (rm -f IDEAS_IDEAS.Fluid.Storage.Examples.Stratified.pipe ; mkfifo IDEAS_IDEAS.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Storage.Examples.Stratified.pipe >> ../files/IDEAS_IDEAS.Fluid.Storage.Examples.Stratified.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Storage_Examples_Stratified_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-08 IDEAS_IDEAS_Fluid_Storage_Examples_Stratified.fmu > IDEAS_IDEAS.Fluid.Storage.Examples.Stratified.pipe 2>&1)