Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.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.StratifiedUnloadAtMinimumTemperature,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature",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.003972/0.003972, allocations: 185.1 kB / 7.459 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7233/0.7233, allocations: 133.5 MB / 141.4 MB, free: 15.64 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.646/1.646, allocations: 221.3 MB / 395 MB, free: 10.19 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.00116/0.00116, allocations: 97.09 kB / 477.8 MB, free: 10.82 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5407/0.542, allocations: 88.42 MB / 0.5529 GB, free: 89.07 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2439/0.7858, allocations: 82.31 MB / 0.6333 GB, free: 14 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.395/2.181, allocations: 386.8 MB / 1.011 GB, free: 247.1 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003787/2.181, allocations: 86.52 kB / 1.011 GB, free: 247.1 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: 586 * Number of variables: 586 Notification: Performance of Generate backend data structure: time 3.557/5.738, allocations: 0.9925 GB / 2.004 GB, free: 29.67 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.371e-05/5.738, allocations: 8 kB / 2.004 GB, free: 29.66 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001923/5.74, allocations: 363.9 kB / 2.004 GB, free: 29.3 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006977/5.747, allocations: 3.153 MB / 2.007 GB, free: 26.14 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.587e-05/5.747, allocations: 75.91 kB / 2.007 GB, free: 26.07 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004139/5.748, allocations: 144 kB / 2.007 GB, free: 25.93 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004118/5.752, allocations: 2.258 MB / 2.009 GB, free: 23.66 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004059/5.756, allocations: 2.706 MB / 2.012 GB, free: 20.82 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.791e-05/5.756, allocations: 4 kB / 2.012 GB, free: 20.82 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002231/5.756, allocations: 7.938 kB / 2.012 GB, free: 20.81 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.782e-05/5.756, allocations: 67.92 kB / 2.012 GB, free: 20.75 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01637/5.773, allocations: 12.97 MB / 2.025 GB, free: 7.062 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001947/5.775, allocations: 1.504 MB / 2.026 GB, free: 5.543 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001329/5.776, allocations: 1.117 MB / 2.027 GB, free: 4.422 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006725/5.777, allocations: 0.7119 MB / 2.028 GB, free: 3.57 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.232e-05/5.777, allocations: 53.12 kB / 2.028 GB, free: 3.508 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=126): time 4.038e-06/5.777, allocations: 0 / 2.028 GB, free: 3.508 MB / 0.6823 GB Notification: Performance of matching and sorting (n=126): time 0.003413/5.78, allocations: 1.686 MB / 2.03 GB, free: 1.801 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.761e-05/5.78, allocations: 141.5 kB / 2.03 GB, free: 1.633 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.43/6.211, allocations: 1.789 MB / 2.032 GB, free: 170.3 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.000575/6.211, allocations: 29.36 kB / 2.032 GB, free: 170.3 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.001271/6.212, allocations: 0.9441 MB / 2.033 GB, free: 170.1 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007592/6.213, allocations: 428.4 kB / 2.033 GB, free: 169.9 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.495e-05/6.213, allocations: 0 / 2.033 GB, free: 169.9 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001499/6.213, allocations: 375.2 kB / 2.033 GB, free: 169.6 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009899/6.214, allocations: 0.6833 MB / 2.034 GB, free: 169.6 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00112/6.216, allocations: 1.194 MB / 2.035 GB, free: 169 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001494/6.217, allocations: 0.9539 MB / 2.036 GB, free: 169 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.268e-06/6.217, allocations: 3.281 kB / 2.036 GB, free: 169 MB / 0.6823 GB Notification: Performance of matching and sorting (n=213) (initialization): time 0.004031/6.221, allocations: 2.223 MB / 2.038 GB, free: 168.8 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.001396/6.223, allocations: 5.69 MB / 2.044 GB, free: 162.9 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.332e-05/6.223, allocations: 14.34 kB / 2.044 GB, free: 162.9 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00168/6.224, allocations: 440 kB / 2.044 GB, free: 162.8 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001397/6.226, allocations: 353 kB / 2.045 GB, free: 162.8 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003025/6.229, allocations: 2.96 MB / 2.048 GB, free: 161 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002922/6.232, allocations: 270 kB / 2.048 GB, free: 161 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002107/6.232, allocations: 80.53 kB / 2.048 GB, free: 161 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.017e-05/6.232, allocations: 3.906 kB / 2.048 GB, free: 161 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003363/6.235, allocations: 1.965 MB / 2.05 GB, free: 160.9 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.178e-05/6.235, allocations: 14.97 kB / 2.05 GB, free: 160.9 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005725/6.236, allocations: 211.5 kB / 2.05 GB, free: 160.9 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001416/6.237, allocations: 382 kB / 2.05 GB, free: 160.9 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003686/6.241, allocations: 3.681 MB / 2.054 GB, free: 158.4 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003137/6.244, allocations: 244.2 kB / 2.054 GB, free: 158.3 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000201/6.244, allocations: 82.38 kB / 2.054 GB, free: 158.3 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.onOffBot.y,onOffBot.y,$PRE.onOffMid.y,onOffMid.y,and2.y,nor.y,$PRE.onOffHea.y,onOffHea.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (182): * Single equations (assignments): 180 * 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: 1 {(1,100.0%) 10} * Non-linear torn systems: 1 {3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0006964/6.245, allocations: 152 kB / 2.054 GB, free: 158.2 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005897/6.246, allocations: 207.8 kB / 2.055 GB, free: 158.1 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00396/6.25, allocations: 1.964 MB / 2.057 GB, free: 158 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.611e-05/6.25, allocations: 11.16 kB / 2.057 GB, free: 158 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.267e-05/6.25, allocations: 7.719 kB / 2.057 GB, free: 158 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002255/6.252, allocations: 1.547 MB / 2.058 GB, free: 157.9 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008625/6.261, allocations: 4.263 MB / 2.062 GB, free: 157.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.054e-05/6.261, allocations: 3.375 kB / 2.062 GB, free: 157.5 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000994/6.262, allocations: 209.2 kB / 2.062 GB, free: 157.5 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001482/6.263, allocations: 415.9 kB / 2.063 GB, free: 157.4 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001081/6.263, allocations: 29 kB / 2.063 GB, free: 157.4 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002881/6.266, allocations: 2.894 MB / 2.066 GB, free: 155.6 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.977e-06/6.266, allocations: 3.75 kB / 2.066 GB, free: 155.6 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004944/6.271, allocations: 2.964 MB / 2.069 GB, free: 155.2 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006061/6.277, allocations: 4.391 MB / 2.073 GB, free: 154.3 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001971/6.279, allocations: 0.5385 MB / 2.073 GB, free: 154.1 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008945/6.28, allocations: 9.734 kB / 2.073 GB, free: 154.1 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002287/6.282, allocations: 159.2 kB / 2.074 GB, free: 154.1 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002334/6.283, allocations: 95.89 kB / 2.074 GB, free: 154.1 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001972/6.283, allocations: 57 kB / 2.074 GB, free: 154.1 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.002903/6.286, allocations: 1.359 MB / 2.075 GB, free: 153.9 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.009017/6.295, allocations: 1.586 MB / 2.077 GB, free: 153.8 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 5 (tan.vol[1].dynBal.U,tan.vol[2].dynBal.U,tan.vol[3].dynBal.U,tan.vol[4].dynBal.U,tan.vol[5].dynBal.U) * Number of discrete variables: 5 (onOffBot.y,onOffMid.y,and2.y,nor.y,onOffHea.y) * Number of discrete states: 3 (onOffMid.y,onOffBot.y,onOffHea.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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: 1 {(1,100.0%) 10} * Non-linear torn systems: 1 {3 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.001699/6.297, allocations: 0.5611 MB / 2.077 GB, free: 153.7 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.006099/6.303, allocations: 3.132 MB / 2.08 GB, free: 153.4 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.09e-05/6.303, allocations: 11 kB / 2.08 GB, free: 153.4 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.001516/6.304, allocations: 0.9162 MB / 2.081 GB, free: 153.3 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006532/6.311, allocations: 1.025 MB / 2.082 GB, free: 153.3 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01396/6.325, allocations: 4.363 MB / 2.086 GB, free: 152.4 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004529/6.329, allocations: 2.404 MB / 2.089 GB, free: 151.7 MB / 0.6823 GB Notification: Performance of SimCode: time 2.265e-06/6.329, allocations: 0 / 2.089 GB, free: 151.7 MB / 0.6823 GB (rm -f IDEAS_dev_IDEAS.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature_fmu --startTime=0 --stopTime=21600 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature.fmu > IDEAS_dev_IDEAS.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe 2>&1)