Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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_IDEAS_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature,fileNamePrefix="IDEAS_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.005957/0.005957, allocations: 180.4 kB / 7.453 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.7617/0.7617, allocations: 133.5 MB / 141.4 MB, free: 15.67 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.641/1.641, 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.001167/0.001168, allocations: 97.5 kB / 477.8 MB, free: 10.79 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5102/0.5115, allocations: 88.43 MB / 0.5529 GB, free: 89.09 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2339/0.7453, allocations: 82.29 MB / 0.6333 GB, free: 14 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.5/2.246, allocations: 386.8 MB / 1.011 GB, free: 203.3 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000279/2.246, allocations: 88.47 kB / 1.011 GB, free: 203.3 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.699/5.945, allocations: 0.9925 GB / 2.004 GB, free: 15.41 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.716e-05/5.945, allocations: 8 kB / 2.004 GB, free: 15.4 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001961/5.947, allocations: 367.9 kB / 2.004 GB, free: 15.04 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00725/5.955, allocations: 3.156 MB / 2.007 GB, free: 11.88 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.881e-05/5.955, allocations: 72 kB / 2.007 GB, free: 11.8 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004144/5.955, allocations: 144 kB / 2.007 GB, free: 11.66 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004091/5.959, allocations: 2.258 MB / 2.009 GB, free: 9.398 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004223/5.963, allocations: 2.703 MB / 2.012 GB, free: 6.562 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.401e-05/5.964, allocations: 4 kB / 2.012 GB, free: 6.559 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002299/5.964, allocations: 4 kB / 2.012 GB, free: 6.555 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-05/5.964, allocations: 67.89 kB / 2.012 GB, free: 6.488 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4634/6.427, allocations: 12.97 MB / 2.025 GB, free: 161.9 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003047/6.43, allocations: 1.512 MB / 2.026 GB, free: 161.8 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002143/6.433, allocations: 1.122 MB / 2.027 GB, free: 161.8 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009263/6.434, allocations: 0.7142 MB / 2.028 GB, free: 161 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.608e-05/6.434, allocations: 50.88 kB / 2.028 GB, free: 161 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=126): time 5.25e-06/6.434, allocations: 0 / 2.028 GB, free: 161 MB / 0.6823 GB Notification: Performance of matching and sorting (n=126): time 0.004983/6.439, allocations: 1.687 MB / 2.03 GB, free: 160.8 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.151e-05/6.439, allocations: 143.7 kB / 2.03 GB, free: 160.7 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004363/6.443, allocations: 1.791 MB / 2.032 GB, free: 160.5 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0004931/6.444, allocations: 33.33 kB / 2.032 GB, free: 160.4 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.00146/6.445, allocations: 0.9344 MB / 2.033 GB, free: 160 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009914/6.446, allocations: 432.4 kB / 2.033 GB, free: 159.8 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001103/6.446, allocations: 2.531 kB / 2.033 GB, free: 159.8 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001805/6.446, allocations: 371.9 kB / 2.033 GB, free: 159.5 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001437/6.448, allocations: 0.6832 MB / 2.034 GB, free: 159.5 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00166/6.45, allocations: 1.198 MB / 2.035 GB, free: 158.9 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002179/6.452, allocations: 0.9482 MB / 2.036 GB, free: 158.9 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-05/6.452, allocations: 6.406 kB / 2.036 GB, free: 158.9 MB / 0.6823 GB Notification: Performance of matching and sorting (n=213) (initialization): time 0.005753/6.457, allocations: 2.228 MB / 2.038 GB, free: 158.7 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.002101/6.46, allocations: 5.684 MB / 2.044 GB, free: 152.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.38e-05/6.46, allocations: 19.12 kB / 2.044 GB, free: 152.8 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002364/6.462, allocations: 438.9 kB / 2.044 GB, free: 152.8 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002207/6.464, allocations: 356.1 kB / 2.045 GB, free: 152.8 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004355/6.469, allocations: 2.969 MB / 2.048 GB, free: 150.9 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004185/6.473, allocations: 268.8 kB / 2.048 GB, free: 150.9 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000418/6.473, allocations: 83.8 kB / 2.048 GB, free: 150.9 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/6.473, allocations: 4.719 kB / 2.048 GB, free: 150.9 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004969/6.478, allocations: 1.955 MB / 2.05 GB, free: 150.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.504e-05/6.478, allocations: 15.16 kB / 2.05 GB, free: 150.8 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007682/6.479, allocations: 213.5 kB / 2.05 GB, free: 150.8 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001939/6.481, allocations: 374.4 kB / 2.05 GB, free: 150.8 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004211/6.485, allocations: 3.693 MB / 2.054 GB, free: 148.3 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003684/6.489, allocations: 232.2 kB / 2.054 GB, free: 148.2 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003379/6.489, allocations: 82.33 kB / 2.054 GB, free: 148.2 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.0006996/6.49, allocations: 165.5 kB / 2.054 GB, free: 148.1 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008926/6.491, allocations: 205 kB / 2.055 GB, free: 148 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004396/6.495, allocations: 1.961 MB / 2.057 GB, free: 147.9 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.9e-05/6.495, allocations: 15.97 kB / 2.057 GB, free: 147.9 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.757e-06/6.496, allocations: 0 / 2.057 GB, free: 147.9 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002324/6.498, allocations: 1.554 MB / 2.058 GB, free: 147.8 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009377/6.507, allocations: 4.256 MB / 2.062 GB, free: 147.4 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.446e-06/6.507, allocations: 0 / 2.062 GB, free: 147.4 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001004/6.508, allocations: 219.8 kB / 2.062 GB, free: 147.4 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001506/6.51, allocations: 416 kB / 2.063 GB, free: 147.3 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001024/6.51, allocations: 19.09 kB / 2.063 GB, free: 147.3 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002835/6.513, allocations: 2.894 MB / 2.066 GB, free: 145.5 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/6.513, allocations: 0 / 2.066 GB, free: 145.5 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00458/6.517, allocations: 2.966 MB / 2.069 GB, free: 145.1 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006119/6.524, allocations: 4.394 MB / 2.073 GB, free: 144.2 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00218/6.526, allocations: 0.5365 MB / 2.073 GB, free: 144 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005669/6.526, allocations: 11.34 kB / 2.073 GB, free: 144 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001705/6.528, allocations: 158.8 kB / 2.074 GB, free: 144 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002499/6.528, allocations: 89.77 kB / 2.074 GB, free: 144 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001347/6.528, allocations: 59.94 kB / 2.074 GB, free: 144 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.002357/6.531, allocations: 1.363 MB / 2.075 GB, free: 143.8 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.008832/6.54, allocations: 1.586 MB / 2.077 GB, free: 143.7 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.00172/6.541, allocations: 0.5485 MB / 2.077 GB, free: 143.6 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.005605/6.547, allocations: 3.145 MB / 2.08 GB, free: 143.3 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.116e-05/6.547, allocations: 3.969 kB / 2.08 GB, free: 143.3 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.001364/6.548, allocations: 0.921 MB / 2.081 GB, free: 143.2 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005921/6.554, allocations: 1.025 MB / 2.082 GB, free: 143.2 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01015/6.565, allocations: 4.367 MB / 2.086 GB, free: 142.3 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002497/6.567, allocations: 2.407 MB / 2.089 GB, free: 141.6 MB / 0.6823 GB Notification: Performance of SimCode: time 2.825e-06/6.567, allocations: 0 / 2.089 GB, free: 141.6 MB / 0.6823 GB (rm -f IDEAS_IDEAS.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; mkfifo IDEAS_IDEAS.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe >> ../files/IDEAS_IDEAS.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature_fmu --startTime=0 --stopTime=21600 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature.fmu > IDEAS_IDEAS.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe 2>&1)