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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004744/0.004744, allocations: 172 kB / 15.11 MB, free: 5.98 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.097/1.097, allocations: 223.2 MB / 239 MB, free: 76 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000783/0.0007831, allocations: 99.5 kB / 290.2 MB, free: 4.539 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1283/0.1283, allocations: 28.84 MB / 370.2 MB, free: 52 kB / 298.7 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003111/0.0003112, allocations: 7.5 kB / 438.1 MB, free: 88.29 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0723/0.07262, allocations: 57.49 MB / 495.6 MB, free: 31.74 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2498/0.3224, allocations: 82.57 MB / 0.5646 GB, free: 11.59 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001861/0.3227, allocations: 69.67 kB / 0.5647 GB, free: 11.59 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09261/0.4153, allocations: 50.12 MB / 0.6136 GB, free: 9.742 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.4153, allocations: 0 / 0.6136 GB, free: 9.742 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002067/0.4155, allocations: 87.5 kB / 0.6137 GB, free: 9.734 MB / 394.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.004835/0.4204, allocations: 3.037 MB / 0.6167 GB, free: 7.824 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.531e-05/0.4204, allocations: 11.67 kB / 0.6167 GB, free: 7.82 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006279/0.4211, allocations: 419 kB / 0.6171 GB, free: 7.605 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002756/0.4238, allocations: 2.022 MB / 0.6191 GB, free: 6.371 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001582/0.424, allocations: 284.9 kB / 0.6193 GB, free: 6.242 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004051/0.4244, allocations: 389.5 kB / 0.6197 GB, free: 6.105 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005042/0.4295, allocations: 3.585 MB / 0.6232 GB, free: 3.691 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.422e-05/0.4295, allocations: 7.781 kB / 0.6232 GB, free: 3.688 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002327/0.4298, allocations: 158.8 kB / 0.6234 GB, free: 3.57 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.506e-05/0.4298, allocations: 92.62 kB / 0.6235 GB, free: 3.57 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003543/0.4334, allocations: 2.281 MB / 0.6257 GB, free: 2.07 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01325/0.4466, allocations: 14.46 MB / 0.6398 GB, free: 3.383 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002095/0.4487, allocations: 1.356 MB / 0.6411 GB, free: 2.02 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.478e-05/0.4488, allocations: 17.31 kB / 0.6411 GB, free: 2.004 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.478e-05/0.4488, allocations: 47.88 kB / 0.6412 GB, free: 1.949 MB / 410.7 MB Notification: Performance of pre-optimization done (n=133): time 2.485e-06/0.4488, allocations: 0 / 0.6412 GB, free: 1.949 MB / 410.7 MB Notification: Performance of matching and sorting (n=133): time 0.002606/0.4515, allocations: 1.784 MB / 0.6429 GB, free: 160 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.374e-05/0.4515, allocations: 64.72 kB / 0.643 GB, free: 84 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001559/0.4531, allocations: 1.289 MB / 0.6443 GB, free: 14.79 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.057e-05/0.4532, allocations: 49.7 kB / 0.6443 GB, free: 14.74 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008714/0.454, allocations: 1.582 MB / 0.6458 GB, free: 13.14 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003606/0.4544, allocations: 495.7 kB / 0.6463 GB, free: 12.66 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.521e-05/0.4545, allocations: 40 kB / 0.6464 GB, free: 12.62 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.4546, allocations: 381.8 kB / 0.6467 GB, free: 12.25 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009193/0.4556, allocations: 0.5895 MB / 0.6473 GB, free: 11.66 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001156/0.4567, allocations: 1.071 MB / 0.6483 GB, free: 10.38 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00109/0.4578, allocations: 0.76 MB / 0.6491 GB, free: 9.621 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.783e-06/0.4578, allocations: 4 kB / 0.6491 GB, free: 9.617 MB / 426.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.002739/0.4606, allocations: 1.948 MB / 0.651 GB, free: 7.66 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.4606, allocations: 12 kB / 0.651 GB, free: 7.648 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.681e-05/0.4606, allocations: 16 kB / 0.651 GB, free: 7.633 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.881e-05/0.4607, allocations: 24 kB / 0.651 GB, free: 7.609 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001179/0.4619, allocations: 355.4 kB / 0.6514 GB, free: 7.262 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.903e-05/0.4619, allocations: 35.86 kB / 0.6514 GB, free: 7.227 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007587/0.4627, allocations: 154.9 kB / 0.6516 GB, free: 7.074 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001026/0.4628, allocations: 72 kB / 0.6516 GB, free: 7.004 MB / 426.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.0009848/0.4638, allocations: 0.6457 MB / 0.6523 GB, free: 6.352 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002105/0.464, allocations: 177.8 kB / 0.6524 GB, free: 6.176 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000351/0.4643, allocations: 202.7 kB / 0.6526 GB, free: 5.973 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.787e-06/0.4643, allocations: 12 kB / 0.6526 GB, free: 5.961 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.595e-06/0.4644, allocations: 0 / 0.6526 GB, free: 5.961 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.089e-05/0.4644, allocations: 11.97 kB / 0.6526 GB, free: 5.949 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004661/0.469, allocations: 3.962 MB / 0.6565 GB, free: 1.949 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.4691, allocations: 0 / 0.6565 GB, free: 1.949 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00111/0.4702, allocations: 223.7 kB / 0.6567 GB, free: 1.73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.15e-05/0.4702, allocations: 7.984 kB / 0.6567 GB, free: 1.723 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.32e-05/0.4703, allocations: 43.98 kB / 0.6568 GB, free: 1.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.087e-06/0.4703, allocations: 8 kB / 0.6568 GB, free: 1.672 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.4703, allocations: 0 / 0.6568 GB, free: 1.672 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002769/0.4731, allocations: 2.159 MB / 0.6589 GB, free: 15.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002756/0.4734, allocations: 278.5 kB / 0.6592 GB, free: 15.21 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001606/0.4735, allocations: 32 kB / 0.6592 GB, free: 15.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000528/0.4741, allocations: 39.92 kB / 0.6592 GB, free: 15.14 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001482/0.4742, allocations: 77.2 kB / 0.6593 GB, free: 15.07 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.575e-05/0.4743, allocations: 39.98 kB / 0.6593 GB, free: 15.03 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001147/0.4755, allocations: 0.9679 MB / 0.6603 GB, free: 14.07 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4755, allocations: 0 / 0.6603 GB, free: 14.07 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001081/0.4766, allocations: 0.6245 MB / 0.6609 GB, free: 13.44 MB / 442.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.0001876/0.4767, allocations: 159.1 kB / 0.661 GB, free: 13.27 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001996/0.4788, allocations: 1.455 MB / 0.6625 GB, free: 11.82 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.4788, allocations: 0 / 0.6625 GB, free: 11.82 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008677/0.4796, allocations: 0.6595 MB / 0.6631 GB, free: 11.16 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009424/0.4806, allocations: 295.4 kB / 0.6634 GB, free: 10.87 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00717/0.4878, allocations: 6.405 MB / 0.6696 GB, free: 4.434 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00136/0.4891, allocations: 1.846 MB / 0.6715 GB, free: 2.559 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0006857/0.4898, allocations: 176.5 kB / 0.6716 GB, free: 2.383 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003279/0.4902, allocations: 107.4 kB / 0.6717 GB, free: 2.277 MB / 442.7 MB Notification: Performance of SimCode: time 3.71e-07/0.4902, allocations: 0 / 0.6717 GB, free: 2.277 MB / 442.7 MB Notification: Performance of Templates: time 0.02415/0.5143, allocations: 14.59 MB / 0.686 GB, free: 3.719 MB / 458.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)