Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYear.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.InventoryForresterSinOneYear,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYear") translateModel(SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYear,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYear") [: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.004471/0.004471, allocations: 175.7 kB / 7.46 MB, free: 2.484 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.331/1.331, allocations: 221.4 MB / 229.3 MB, free: 3.062 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.001149/0.001149, allocations: 101.3 kB / 280.1 MB, free: 1.223 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2055/0.2055, allocations: 28.84 MB / 359.7 MB, free: 1.527 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 1.065e-05/1.067e-05, allocations: 0 / 423.2 MB, free: 44.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1333/0.1333, allocations: 57.48 MB / 480.7 MB, free: 2.66 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3838/0.5171, allocations: 81.77 MB / 0.5493 GB, free: 7.832 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002126/0.5174, allocations: 60.81 kB / 0.5493 GB, free: 7.773 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.1175/0.6349, allocations: 49.3 MB / 0.5975 GB, free: 6.344 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003406/0.6353, allocations: 91.98 kB / 0.5976 GB, free: 6.254 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.007436/0.6427, allocations: 2.783 MB / 0.6003 GB, free: 3.41 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.586e-05/0.6428, allocations: 8.031 kB / 0.6003 GB, free: 3.402 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001859/0.6447, allocations: 414.9 kB / 0.6007 GB, free: 2.992 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004697/0.6494, allocations: 2.021 MB / 0.6027 GB, free: 0.918 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002739/0.6497, allocations: 124 kB / 0.6028 GB, free: 0.7969 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001072/0.6508, allocations: 235.8 kB / 0.603 GB, free: 0.5664 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006746/0.6575, allocations: 1.874 MB / 0.6048 GB, free: 14.69 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007769/0.6654, allocations: 2.966 MB / 0.6077 GB, free: 11.5 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.042e-05/0.6655, allocations: 11.88 kB / 0.6077 GB, free: 11.49 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001976/0.6657, allocations: 12 kB / 0.6078 GB, free: 11.48 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.946e-05/0.6658, allocations: 92 kB / 0.6078 GB, free: 11.39 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0213/0.6871, allocations: 13.8 MB / 0.6213 GB, free: 13.28 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002126/0.6893, allocations: 0.8416 MB / 0.6221 GB, free: 12.43 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001019/0.6904, allocations: 0.5437 MB / 0.6227 GB, free: 11.89 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.44e-05/0.6905, allocations: 13.31 kB / 0.6227 GB, free: 11.88 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.363e-05/0.6905, allocations: 51.8 kB / 0.6227 GB, free: 11.82 MB / 458.7 MB Notification: Performance of pre-optimization done (n=133): time 6.733e-06/0.6906, allocations: 4 kB / 0.6227 GB, free: 11.81 MB / 458.7 MB Notification: Performance of matching and sorting (n=133): time 0.002669/0.6932, allocations: 1.155 MB / 0.6239 GB, free: 10.64 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.667e-05/0.6933, allocations: 64.72 kB / 0.6239 GB, free: 10.57 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002473/0.6958, allocations: 1.199 MB / 0.6251 GB, free: 9.371 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002361/0.696, allocations: 25.7 kB / 0.6251 GB, free: 9.34 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001081/0.6971, allocations: 1.282 MB / 0.6264 GB, free: 8.035 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007174/0.6979, allocations: 480.8 kB / 0.6268 GB, free: 7.559 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.586e-05/0.6979, allocations: 0 / 0.6268 GB, free: 7.559 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002017/0.6981, allocations: 373.9 kB / 0.6272 GB, free: 7.188 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001026/0.6992, allocations: 0.5156 MB / 0.6277 GB, free: 6.672 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001274/0.7005, allocations: 0.9739 MB / 0.6286 GB, free: 5.492 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001315/0.7018, allocations: 0.6856 MB / 0.6293 GB, free: 4.809 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.111e-05/0.7018, allocations: 4 kB / 0.6293 GB, free: 4.805 MB / 458.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.003499/0.7053, allocations: 1.684 MB / 0.631 GB, free: 3.113 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.975e-05/0.7054, allocations: 11.94 kB / 0.631 GB, free: 3.102 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.343e-05/0.7054, allocations: 16.12 kB / 0.631 GB, free: 3.086 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.45e-05/0.7055, allocations: 28 kB / 0.631 GB, free: 3.059 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001483/0.707, allocations: 351.4 kB / 0.6314 GB, free: 2.715 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.844e-05/0.707, allocations: 31.92 kB / 0.6314 GB, free: 2.684 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001426/0.7085, allocations: 114.6 kB / 0.6315 GB, free: 2.57 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001321/0.7086, allocations: 76 kB / 0.6316 GB, free: 2.496 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.0002866/0.7089, allocations: 180.3 kB / 0.6317 GB, free: 2.316 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003529/0.7093, allocations: 173.8 kB / 0.6319 GB, free: 2.145 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005927/0.7099, allocations: 190.7 kB / 0.6321 GB, free: 1.953 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.619e-05/0.7099, allocations: 15.98 kB / 0.6321 GB, free: 1.938 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.503e-05/0.7099, allocations: 3.938 kB / 0.6321 GB, free: 1.934 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.302e-05/0.7099, allocations: 11.97 kB / 0.6321 GB, free: 1.922 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006175/0.7161, allocations: 3.387 MB / 0.6354 GB, free: 14.48 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.454e-06/0.7162, allocations: 0 / 0.6354 GB, free: 14.48 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001496/0.7177, allocations: 231.7 kB / 0.6356 GB, free: 14.25 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.467e-05/0.7177, allocations: 4 kB / 0.6356 GB, free: 14.25 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001014/0.7178, allocations: 27.98 kB / 0.6357 GB, free: 14.22 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.628e-06/0.7179, allocations: 11.89 kB / 0.6357 GB, free: 14.21 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.7179, allocations: 0 / 0.6357 GB, free: 14.21 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003274/0.7211, allocations: 1.958 MB / 0.6376 GB, free: 12.23 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006941/0.7219, allocations: 270.5 kB / 0.6379 GB, free: 11.95 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002335/0.7221, allocations: 19.98 kB / 0.6379 GB, free: 11.93 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006849/0.7228, allocations: 19.98 kB / 0.6379 GB, free: 11.91 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001644/0.723, allocations: 69.11 kB / 0.638 GB, free: 11.84 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.605e-05/0.7231, allocations: 28 kB / 0.638 GB, free: 11.82 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.001597/0.7247, allocations: 0.8784 MB / 0.6388 GB, free: 10.95 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001859/0.7265, allocations: 0.5737 MB / 0.6394 GB, free: 10.37 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.0002508/0.7268, allocations: 139 kB / 0.6395 GB, free: 10.22 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002371/0.7292, allocations: 1.298 MB / 0.6408 GB, free: 8.926 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/0.7292, allocations: 4.125 kB / 0.6408 GB, free: 8.922 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009166/0.7301, allocations: 0.6063 MB / 0.6414 GB, free: 8.316 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001738/0.7319, allocations: 260.3 kB / 0.6416 GB, free: 8.062 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00992/0.7418, allocations: 3.762 MB / 0.6453 GB, free: 4.238 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002527/0.7444, allocations: 1.962 MB / 0.6472 GB, free: 2.246 MB / 474.7 MB Notification: Performance of SimCode: time 3.346e-06/0.7444, allocations: 3.938 kB / 0.6472 GB, free: 2.242 MB / 474.7 MB Notification: Performance of Templates: time 0.3914/1.136, allocations: 16.22 MB / 0.6631 GB, free: 97.96 MB / 474.7 MB make -j1 -f SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYear.makefile (rm -f SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYear.pipe ; mkfifo SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYear.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYear.pipe >> ../files/SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYear.sim & ./SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYear -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYear.pipe 2>&1)