Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterStep.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/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/SystemDynamics 2.1.2-master/package.mo", uses=false) Using package SystemDynamics with version 2.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-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) Running command: translateModel(SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterStep,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterStep") translateModel(SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterStep,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterStep") [: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.002996/0.002996, allocations: 173.7 kB / 7.458 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 221.4 MB / 229.3 MB, free: 3.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009323/0.0009322, allocations: 94.22 kB / 280.1 MB, free: 1.332 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1939/0.1939, allocations: 28.84 MB / 359.7 MB, free: 1.621 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 9.237e-06/9.257e-06, allocations: 3.938 kB / 423.2 MB, free: 44.24 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1307/0.1307, allocations: 57.47 MB / 480.7 MB, free: 2.699 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3574/0.4882, allocations: 81.2 MB / 0.5487 GB, free: 8.457 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002524/0.4885, allocations: 71.95 kB / 0.5488 GB, free: 8.387 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.1114/0.5999, allocations: 49.01 MB / 0.5967 GB, free: 7.246 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002571/0.6002, allocations: 91.92 kB / 0.5967 GB, free: 7.156 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 946 * Number of variables: 946 Notification: Performance of Generate backend data structure: time 0.00571/0.606, allocations: 2.779 MB / 0.5995 GB, free: 4.316 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.08e-05/0.606, allocations: 12.02 kB / 0.5995 GB, free: 4.305 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009465/0.607, allocations: 418.8 kB / 0.5999 GB, free: 3.891 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00394/0.6109, allocations: 2.018 MB / 0.6018 GB, free: 1.82 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001626/0.6111, allocations: 120 kB / 0.602 GB, free: 1.703 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005352/0.6117, allocations: 223.9 kB / 0.6022 GB, free: 1.484 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0048/0.6165, allocations: 1.878 MB / 0.604 GB, free: 15.61 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005917/0.6224, allocations: 2.969 MB / 0.6069 GB, free: 12.41 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.698e-05/0.6225, allocations: 11.88 kB / 0.6069 GB, free: 12.4 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001848/0.6227, allocations: 8 kB / 0.6069 GB, free: 12.39 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.923e-05/0.6228, allocations: 96 kB / 0.607 GB, free: 12.3 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0199/0.6427, allocations: 13.8 MB / 0.6205 GB, free: 14.19 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001997/0.6448, allocations: 0.8377 MB / 0.6213 GB, free: 13.34 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008974/0.6457, allocations: 0.5475 MB / 0.6218 GB, free: 12.79 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.837e-05/0.6458, allocations: 13.31 kB / 0.6219 GB, free: 12.78 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.523e-05/0.6458, allocations: 43.88 kB / 0.6219 GB, free: 12.73 MB / 458.7 MB Notification: Performance of pre-optimization done (n=133): time 3.747e-06/0.6459, allocations: 4 kB / 0.6219 GB, free: 12.72 MB / 458.7 MB Notification: Performance of matching and sorting (n=133): time 0.002294/0.6482, allocations: 1.151 MB / 0.623 GB, free: 11.56 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.371e-05/0.6482, allocations: 68.72 kB / 0.6231 GB, free: 11.48 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002075/0.6503, allocations: 1.187 MB / 0.6242 GB, free: 10.29 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001057/0.6504, allocations: 25.7 kB / 0.6243 GB, free: 10.26 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008609/0.6513, allocations: 1.286 MB / 0.6255 GB, free: 8.953 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005449/0.6518, allocations: 476.9 kB / 0.626 GB, free: 8.48 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.186e-05/0.6519, allocations: 0 / 0.626 GB, free: 8.48 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001947/0.6521, allocations: 369.9 kB / 0.6263 GB, free: 8.113 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009856/0.6531, allocations: 0.5117 MB / 0.6268 GB, free: 7.602 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001278/0.6544, allocations: 0.9817 MB / 0.6278 GB, free: 6.41 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001124/0.6555, allocations: 0.6816 MB / 0.6285 GB, free: 5.734 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.336e-06/0.6555, allocations: 8 kB / 0.6285 GB, free: 5.727 MB / 458.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.002942/0.6585, allocations: 1.68 MB / 0.6301 GB, free: 4.035 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.042e-05/0.6585, allocations: 4.938 kB / 0.6301 GB, free: 4.031 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.092e-05/0.6585, allocations: 16 kB / 0.6301 GB, free: 4.016 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.022e-05/0.6586, allocations: 24 kB / 0.6302 GB, free: 3.992 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001476/0.6601, allocations: 359.4 kB / 0.6305 GB, free: 3.641 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.018e-05/0.6601, allocations: 31.92 kB / 0.6305 GB, free: 3.609 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009505/0.6611, allocations: 118.5 kB / 0.6306 GB, free: 3.492 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001298/0.6612, allocations: 72 kB / 0.6307 GB, free: 3.422 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 33 (Retail1.Mail_Delay.Level3.Integrator1.local_reset,Retail1.Mail_Delay.Level2.Integrator1.local_reset,Retail1.Mail_Delay.Level1.Integrator1.local_reset,Retail1.Order_Delay.Level3.Integrator1.local_reset,Retail1.Order_Delay.Level2.Integrator1.local_reset,Retail1.Order_Delay.Level1.Integrator1.local_reset,Retail1.Transporation_Delay.Level3.Integrator1.local_reset,Retail1.Transporation_Delay.Level2.Integrator1.local_reset,Retail1.Transporation_Delay.Level1.Integrator1.local_reset,Retail1.RSR_delayed.Level1.Integrator1.local_reset,Retail1.UOR.Integrator1.local_reset,Retail1.IAR.Integrator1.local_reset,Distribution1.Mail_Delay.Level3.Integrator1.local_reset,Distribution1.Mail_Delay.Level2.Integrator1.local_reset,Distribution1.Mail_Delay.Level1.Integrator1.local_reset,Distribution1.Order_Delay.Level3.Integrator1.local_reset,Distribution1.Order_Delay.Level2.Integrator1.local_reset,Distribution1.Order_Delay.Level1.Integrator1.local_reset,Distribution1.Transporation_Delay.Level3.Integrator1.local_reset,Distribution1.Transporation_Delay.Level2.Integrator1.local_reset,Distribution1.Transporation_Delay.Level1.Integrator1.local_reset,Distribution1.RSD_delayed.Level1.Integrator1.local_reset,Distribution1.UOD.Integrator1.local_reset,Distribution1.IAD.Integrator1.local_reset,Factory1.Production_Delay.Level3.Integrator1.local_reset,Factory1.Production_Delay.Level2.Integrator1.local_reset,Factory1.Production_Delay.Level1.Integrator1.local_reset,Factory1.Order_Delay.Level3.Integrator1.local_reset,Factory1.Order_Delay.Level2.Integrator1.local_reset,Factory1.Order_Delay.Level1.Integrator1.local_reset,Factory1.SRF_delayed.Level1.Integrator1.local_reset,Factory1.UOF.Integrator1.local_reset,Factory1.IAF.Integrator1.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (232): * Single equations (assignments): 232 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002787/0.6615, allocations: 180.3 kB / 0.6309 GB, free: 3.242 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002836/0.6618, allocations: 181.8 kB / 0.6311 GB, free: 3.062 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00056/0.6624, allocations: 190.5 kB / 0.6312 GB, free: 2.871 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.518e-05/0.6624, allocations: 12 kB / 0.6312 GB, free: 2.859 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.254e-05/0.6624, allocations: 3.938 kB / 0.6312 GB, free: 2.855 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.38e-05/0.6624, allocations: 7.969 kB / 0.6313 GB, free: 2.848 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005835/0.6683, allocations: 3.387 MB / 0.6346 GB, free: 15.41 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.611e-06/0.6683, allocations: 0 / 0.6346 GB, free: 15.41 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001371/0.6697, allocations: 227.7 kB / 0.6348 GB, free: 15.18 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-05/0.6697, allocations: 7.938 kB / 0.6348 GB, free: 15.18 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.352e-05/0.6698, allocations: 19.98 kB / 0.6348 GB, free: 15.16 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.285e-05/0.6698, allocations: 8 kB / 0.6348 GB, free: 15.15 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.6698, allocations: 0 / 0.6348 GB, free: 15.15 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005302/0.6751, allocations: 1.954 MB / 0.6367 GB, free: 13.18 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008654/0.676, allocations: 274.5 kB / 0.637 GB, free: 12.89 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003399/0.6764, allocations: 15.94 kB / 0.637 GB, free: 12.88 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0011/0.6775, allocations: 19.98 kB / 0.637 GB, free: 12.86 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002785/0.6778, allocations: 65.2 kB / 0.6371 GB, free: 12.79 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001512/0.678, allocations: 28 kB / 0.6371 GB, free: 12.77 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.002616/0.6806, allocations: 0.8821 MB / 0.638 GB, free: 11.89 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002963/0.6836, allocations: 0.5698 MB / 0.6385 GB, free: 11.32 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 33 (Factory1.IAF.Integrator1.y,Factory1.UOF.Integrator1.y,Factory1.SRF_delayed.Level1.Integrator1.y,Factory1.Order_Delay.Level1.Integrator1.y,Factory1.Order_Delay.Level2.Integrator1.y,Factory1.Order_Delay.Level3.Integrator1.y,Factory1.Production_Delay.Level1.Integrator1.y,Factory1.Production_Delay.Level2.Integrator1.y,Factory1.Production_Delay.Level3.Integrator1.y,Distribution1.IAD.Integrator1.y,Distribution1.UOD.Integrator1.y,Distribution1.RSD_delayed.Level1.Integrator1.y,Distribution1.Transporation_Delay.Level1.Integrator1.y,Distribution1.Transporation_Delay.Level2.Integrator1.y,Distribution1.Transporation_Delay.Level3.Integrator1.y,Distribution1.Order_Delay.Level1.Integrator1.y,Distribution1.Order_Delay.Level2.Integrator1.y,Distribution1.Order_Delay.Level3.Integrator1.y,Distribution1.Mail_Delay.Level1.Integrator1.y,Distribution1.Mail_Delay.Level2.Integrator1.y,Distribution1.Mail_Delay.Level3.Integrator1.y,Retail1.IAR.Integrator1.y,Retail1.UOR.Integrator1.y,Retail1.RSR_delayed.Level1.Integrator1.y,Retail1.Transporation_Delay.Level1.Integrator1.y,Retail1.Transporation_Delay.Level2.Integrator1.y,Retail1.Transporation_Delay.Level3.Integrator1.y,Retail1.Order_Delay.Level1.Integrator1.y,Retail1.Order_Delay.Level2.Integrator1.y,Retail1.Order_Delay.Level3.Integrator1.y,Retail1.Mail_Delay.Level1.Integrator1.y,Retail1.Mail_Delay.Level2.Integrator1.y,Retail1.Mail_Delay.Level3.Integrator1.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 133 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003879/0.684, allocations: 139 kB / 0.6387 GB, free: 11.17 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003932/0.6879, allocations: 1.298 MB / 0.6399 GB, free: 9.879 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.688, allocations: 4.688 kB / 0.6399 GB, free: 9.875 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001542/0.6895, allocations: 0.6024 MB / 0.6405 GB, free: 9.273 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002732/0.6923, allocations: 263.5 kB / 0.6408 GB, free: 9.02 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01008/0.7024, allocations: 3.77 MB / 0.6445 GB, free: 5.184 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002648/0.7051, allocations: 1.962 MB / 0.6464 GB, free: 3.191 MB / 474.7 MB Notification: Performance of SimCode: time 1.583e-06/0.7051, allocations: 0 / 0.6464 GB, free: 3.191 MB / 474.7 MB Notification: Performance of Templates: time 0.37/1.075, allocations: 16.15 MB / 0.6621 GB, free: 98.31 MB / 474.7 MB make -j1 -f SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterStep.makefile (rm -f SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterStep.pipe ; mkfifo SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterStep.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterStep.pipe >> ../files/SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterStep.sim & ./SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterStep -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterStep.pipe 2>&1)