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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004251/0.004251, allocations: 172 kB / 15.11 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.108/1.108, allocations: 223.2 MB / 239 MB, free: 1.805 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.0007586/0.0007586, allocations: 101.6 kB / 290.2 MB, free: 13.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.128/0.128, allocations: 28.84 MB / 370.2 MB, free: 13.93 MB / 314.7 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002607/0.0002607, allocations: 8 kB / 438.1 MB, free: 70.8 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06992/0.07019, allocations: 57.47 MB / 495.6 MB, free: 13.29 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2401/0.3103, allocations: 82.58 MB / 0.5646 GB, free: 9.582 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000155/0.3105, allocations: 69.66 kB / 0.5647 GB, free: 9.547 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09398/0.4045, allocations: 50.1 MB / 0.6136 GB, free: 15.86 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.4045, allocations: 4 kB / 0.6136 GB, free: 15.85 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001715/0.4047, allocations: 84 kB / 0.6137 GB, free: 15.77 MB / 410.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.003944/0.4086, allocations: 3.034 MB / 0.6167 GB, free: 12.67 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.5e-05/0.4087, allocations: 12.03 kB / 0.6167 GB, free: 12.66 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004553/0.4092, allocations: 414.9 kB / 0.6171 GB, free: 12.25 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002412/0.4116, allocations: 2.025 MB / 0.6191 GB, free: 10.17 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001598/0.4117, allocations: 287.4 kB / 0.6193 GB, free: 9.887 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000362/0.4121, allocations: 387.8 kB / 0.6197 GB, free: 9.508 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00471/0.4168, allocations: 3.584 MB / 0.6232 GB, free: 5.699 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.321e-05/0.4169, allocations: 7.938 kB / 0.6232 GB, free: 5.691 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002206/0.4171, allocations: 156 kB / 0.6234 GB, free: 5.539 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-05/0.4172, allocations: 96 kB / 0.6234 GB, free: 5.445 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003531/0.4207, allocations: 2.279 MB / 0.6257 GB, free: 3.16 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01305/0.4338, allocations: 14.46 MB / 0.6398 GB, free: 4.375 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002076/0.4359, allocations: 1.357 MB / 0.6411 GB, free: 3.008 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.647e-05/0.436, allocations: 13.31 kB / 0.6411 GB, free: 2.996 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.682e-05/0.436, allocations: 51.88 kB / 0.6412 GB, free: 2.938 MB / 426.7 MB Notification: Performance of pre-optimization done (n=133): time 3.467e-06/0.436, allocations: 0 / 0.6412 GB, free: 2.938 MB / 426.7 MB Notification: Performance of matching and sorting (n=133): time 0.00258/0.4386, allocations: 1.776 MB / 0.6429 GB, free: 1.152 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.381e-05/0.4386, allocations: 68.72 kB / 0.643 GB, free: 1.074 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00147/0.4401, allocations: 1.289 MB / 0.6442 GB, free: 15.79 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.816e-05/0.4402, allocations: 53.7 kB / 0.6443 GB, free: 15.73 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008333/0.441, allocations: 1.583 MB / 0.6458 GB, free: 14.12 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003392/0.4414, allocations: 492.8 kB / 0.6463 GB, free: 13.63 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.388e-05/0.4415, allocations: 40 kB / 0.6463 GB, free: 13.59 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.4416, allocations: 373.8 kB / 0.6467 GB, free: 13.22 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008942/0.4425, allocations: 0.5935 MB / 0.6473 GB, free: 12.63 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001122/0.4436, allocations: 1.067 MB / 0.6483 GB, free: 11.36 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001053/0.4447, allocations: 0.7599 MB / 0.6491 GB, free: 10.6 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.863e-06/0.4447, allocations: 4 kB / 0.6491 GB, free: 10.59 MB / 442.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.002596/0.4473, allocations: 1.952 MB / 0.651 GB, free: 8.633 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.4473, allocations: 16.03 kB / 0.651 GB, free: 8.617 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.526e-05/0.4474, allocations: 15.98 kB / 0.651 GB, free: 8.602 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.141e-05/0.4474, allocations: 28 kB / 0.651 GB, free: 8.574 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001152/0.4486, allocations: 347.4 kB / 0.6514 GB, free: 8.234 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.798e-05/0.4486, allocations: 35.86 kB / 0.6514 GB, free: 8.199 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007108/0.4493, allocations: 150.5 kB / 0.6515 GB, free: 8.051 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.752e-05/0.4494, allocations: 79.94 kB / 0.6516 GB, free: 7.973 MB / 442.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 () * Number of clocked 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.001026/0.4504, allocations: 0.6496 MB / 0.6522 GB, free: 7.316 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001986/0.4507, allocations: 173.8 kB / 0.6524 GB, free: 7.145 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003438/0.451, allocations: 202.7 kB / 0.6526 GB, free: 6.941 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.009e-05/0.451, allocations: 16 kB / 0.6526 GB, free: 6.926 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.156e-06/0.451, allocations: 0 / 0.6526 GB, free: 6.926 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.057e-05/0.451, allocations: 7.969 kB / 0.6526 GB, free: 6.918 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004475/0.4555, allocations: 3.96 MB / 0.6565 GB, free: 2.887 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.4555, allocations: 3.984 kB / 0.6565 GB, free: 2.883 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001087/0.4566, allocations: 227.7 kB / 0.6567 GB, free: 2.66 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.586e-05/0.4567, allocations: 8 kB / 0.6567 GB, free: 2.652 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.285e-05/0.4567, allocations: 35.98 kB / 0.6568 GB, free: 2.617 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.37e-06/0.4568, allocations: 4 kB / 0.6568 GB, free: 2.613 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.4568, allocations: 0 / 0.6568 GB, free: 2.613 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002726/0.4595, allocations: 2.163 MB / 0.6589 GB, free: 452 kB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002559/0.4598, allocations: 270.5 kB / 0.6591 GB, free: 160 kB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001509/0.4599, allocations: 43.88 kB / 0.6592 GB, free: 116 kB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005165/0.4604, allocations: 35.98 kB / 0.6592 GB, free: 80 kB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001274/0.4606, allocations: 73.2 kB / 0.6593 GB, free: 8 kB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.293e-05/0.4607, allocations: 36.06 kB / 0.6593 GB, free: 15.97 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001114/0.4618, allocations: 0.9718 MB / 0.6603 GB, free: 15 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4618, allocations: 0 / 0.6603 GB, free: 15 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001086/0.4629, allocations: 0.6323 MB / 0.6609 GB, free: 14.37 MB / 458.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 () * Number of clocked 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.0001721/0.4631, allocations: 151.1 kB / 0.661 GB, free: 14.21 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001938/0.465, allocations: 1.459 MB / 0.6625 GB, free: 12.75 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.465, allocations: 0 / 0.6625 GB, free: 12.75 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008493/0.4659, allocations: 0.6634 MB / 0.6631 GB, free: 12.09 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009077/0.4668, allocations: 294.2 kB / 0.6634 GB, free: 11.8 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006851/0.4736, allocations: 6.402 MB / 0.6696 GB, free: 5.371 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00123/0.4749, allocations: 1.85 MB / 0.6714 GB, free: 3.492 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0006839/0.4756, allocations: 176.5 kB / 0.6716 GB, free: 3.316 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003153/0.4759, allocations: 103.4 kB / 0.6717 GB, free: 3.215 MB / 458.7 MB Notification: Performance of SimCode: time 4.21e-07/0.4759, allocations: 0 / 0.6717 GB, free: 3.215 MB / 458.7 MB Notification: Performance of Templates: time 0.02335/0.4993, allocations: 14.57 MB / 0.6859 GB, free: 4.672 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)