Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity.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.InventoryForresterSinOneYearCapacity,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity") translateModel(SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity") [: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.003502/0.003502, allocations: 179.9 kB / 7.464 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.404/1.404, allocations: 221.4 MB / 229.3 MB, free: 3.055 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.001067/0.001068, allocations: 98.27 kB / 280.1 MB, free: 1.285 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1992/0.1992, allocations: 28.82 MB / 359.7 MB, free: 1.598 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 8.125e-06/8.406e-06, allocations: 4 kB / 423.2 MB, free: 44.18 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1364/0.1364, allocations: 57.46 MB / 480.7 MB, free: 2.656 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4515/0.588, allocations: 81.77 MB / 0.5493 GB, free: 7.84 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003722/0.5885, allocations: 75.89 kB / 0.5493 GB, free: 7.766 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.1437/0.7322, allocations: 49.29 MB / 0.5975 GB, free: 6.34 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003666/0.7326, allocations: 87.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.008676/0.7413, allocations: 2.783 MB / 0.6003 GB, free: 3.41 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.457e-05/0.7414, allocations: 8.031 kB / 0.6003 GB, free: 3.402 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002276/0.7437, allocations: 414.9 kB / 0.6007 GB, free: 2.992 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005386/0.7491, allocations: 2.029 MB / 0.6027 GB, free: 0.9102 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002451/0.7494, allocations: 120 kB / 0.6028 GB, free: 0.793 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001114/0.7505, allocations: 227.8 kB / 0.603 GB, free: 0.5703 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006849/0.7574, allocations: 1.882 MB / 0.6048 GB, free: 14.68 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007595/0.765, allocations: 2.97 MB / 0.6077 GB, free: 11.49 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.255e-05/0.7652, allocations: 11.88 kB / 0.6078 GB, free: 11.48 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001936/0.7654, allocations: 4 kB / 0.6078 GB, free: 11.48 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.624e-05/0.7655, allocations: 100 kB / 0.6079 GB, free: 11.38 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02613/0.7916, allocations: 13.79 MB / 0.6213 GB, free: 13.28 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002359/0.7941, allocations: 0.8416 MB / 0.6221 GB, free: 12.43 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001063/0.7952, allocations: 0.5437 MB / 0.6227 GB, free: 11.88 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.732e-05/0.7953, allocations: 17.25 kB / 0.6227 GB, free: 11.87 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.148e-05/0.7953, allocations: 55.8 kB / 0.6227 GB, free: 11.8 MB / 458.7 MB Notification: Performance of pre-optimization done (n=133): time 4.498e-06/0.7954, allocations: 0 / 0.6227 GB, free: 11.8 MB / 458.7 MB Notification: Performance of matching and sorting (n=133): time 0.002666/0.798, allocations: 1.155 MB / 0.6239 GB, free: 10.64 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.075e-05/0.7981, allocations: 68.72 kB / 0.6239 GB, free: 10.56 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002736/0.8008, allocations: 1.192 MB / 0.6251 GB, free: 9.367 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001808/0.801, allocations: 25.7 kB / 0.6251 GB, free: 9.336 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001105/0.8022, allocations: 1.282 MB / 0.6264 GB, free: 8.031 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006809/0.8028, allocations: 484.8 kB / 0.6268 GB, free: 7.551 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.752e-05/0.8029, allocations: 0 / 0.6268 GB, free: 7.551 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002192/0.8032, allocations: 373.9 kB / 0.6272 GB, free: 7.18 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009994/0.8042, allocations: 0.5078 MB / 0.6277 GB, free: 6.672 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001334/0.8055, allocations: 0.9856 MB / 0.6286 GB, free: 5.48 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001157/0.8067, allocations: 0.6739 MB / 0.6293 GB, free: 4.809 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.678e-06/0.8067, allocations: 8 kB / 0.6293 GB, free: 4.801 MB / 458.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.003645/0.8103, allocations: 1.691 MB / 0.631 GB, free: 3.102 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.43e-05/0.8104, allocations: 4.938 kB / 0.631 GB, free: 3.098 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.584e-05/0.8104, allocations: 16 kB / 0.631 GB, free: 3.082 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.088e-05/0.8105, allocations: 24 kB / 0.631 GB, free: 3.059 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001568/0.8121, allocations: 359.4 kB / 0.6313 GB, free: 2.707 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.859e-05/0.8121, allocations: 31.92 kB / 0.6314 GB, free: 2.676 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001429/0.8136, allocations: 118.6 kB / 0.6315 GB, free: 2.559 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001402/0.8137, allocations: 68 kB / 0.6316 GB, free: 2.492 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.0003718/0.8141, allocations: 188.3 kB / 0.6317 GB, free: 2.305 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000371/0.8145, allocations: 177.8 kB / 0.6319 GB, free: 2.129 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007063/0.8152, allocations: 186.7 kB / 0.6321 GB, free: 1.941 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.835e-05/0.8152, allocations: 12 kB / 0.6321 GB, free: 1.93 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.186e-05/0.8152, allocations: 0 / 0.6321 GB, free: 1.93 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.388e-05/0.8153, allocations: 11.92 kB / 0.6321 GB, free: 1.918 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006728/0.822, allocations: 3.387 MB / 0.6354 GB, free: 14.48 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.736e-06/0.8221, allocations: 0 / 0.6354 GB, free: 14.48 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001551/0.8236, allocations: 231.7 kB / 0.6356 GB, free: 14.25 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.302e-05/0.8237, allocations: 8 kB / 0.6356 GB, free: 14.24 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001093/0.8238, allocations: 15.98 kB / 0.6357 GB, free: 14.23 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.562e-05/0.8238, allocations: 15.91 kB / 0.6357 GB, free: 14.21 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.459e-06/0.8238, allocations: 0 / 0.6357 GB, free: 14.21 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004652/0.8285, allocations: 1.954 MB / 0.6376 GB, free: 12.24 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008502/0.8294, allocations: 278.5 kB / 0.6378 GB, free: 11.95 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002256/0.8296, allocations: 12 kB / 0.6379 GB, free: 11.94 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007178/0.8304, allocations: 23.92 kB / 0.6379 GB, free: 11.91 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000239/0.8306, allocations: 69.11 kB / 0.6379 GB, free: 11.85 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001239/0.8307, allocations: 35.98 kB / 0.638 GB, free: 11.81 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.001887/0.8327, allocations: 0.8706 MB / 0.6388 GB, free: 10.95 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002843/0.8355, allocations: 0.5776 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.0003793/0.8359, allocations: 143 kB / 0.6395 GB, free: 10.21 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003124/0.8391, allocations: 1.294 MB / 0.6408 GB, free: 8.926 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.623e-06/0.8391, allocations: 0.75 kB / 0.6408 GB, free: 8.926 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009814/0.8401, allocations: 0.6063 MB / 0.6414 GB, free: 8.32 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002357/0.8425, allocations: 260.4 kB / 0.6416 GB, free: 8.066 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01189/0.8544, allocations: 3.77 MB / 0.6453 GB, free: 4.23 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003696/0.8581, allocations: 1.966 MB / 0.6472 GB, free: 2.234 MB / 474.7 MB Notification: Performance of SimCode: time 1.102e-06/0.8582, allocations: 0 / 0.6472 GB, free: 2.234 MB / 474.7 MB Notification: Performance of Templates: time 0.3903/1.248, allocations: 16.21 MB / 0.6631 GB, free: 72.68 MB / 474.7 MB make -j1 -f SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity.makefile (rm -f SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity.pipe ; mkfifo SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity.pipe >> ../files/SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity.sim & ./SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity.pipe 2>&1)