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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo", uses=false) Using package SystemDynamics with version 2.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000777/0.000777, allocations: 176 kB / 16.12 MB, free: 5.691 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.113/1.113, allocations: 205.4 MB / 222.3 MB, free: 9.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007504/0.0007504, allocations: 98.3 kB / 270.6 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo): time 0.134/0.134, allocations: 28.83 MB / 347.7 MB, free: 10.98 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002995/0.0002995, allocations: 12 kB / 413 MB, free: 47.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06577/0.06608, allocations: 54.64 MB / 467.7 MB, free: 8.855 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2186/0.2847, allocations: 81.19 MB / 0.536 GB, free: 5.258 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001901/0.2849, allocations: 63.97 kB / 0.5361 GB, free: 5.195 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1018/0.3868, allocations: 49.8 MB / 0.5847 GB, free: 3.273 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3868, allocations: 4 kB / 0.5847 GB, free: 3.27 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002607/0.3871, allocations: 96.14 kB / 0.5848 GB, free: 3.176 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.005493/0.3926, allocations: 2.999 MB / 0.5877 GB, free: 108 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.3926, allocations: 12.03 kB / 0.5877 GB, free: 96 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008411/0.3935, allocations: 416 kB / 0.5881 GB, free: 15.68 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002756/0.3962, allocations: 2.091 MB / 0.5902 GB, free: 13.54 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001677/0.3964, allocations: 283.8 kB / 0.5904 GB, free: 13.26 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003693/0.3968, allocations: 380.3 kB / 0.5908 GB, free: 12.89 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004956/0.4018, allocations: 3.616 MB / 0.5943 GB, free: 9.047 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.674e-05/0.4018, allocations: 12.06 kB / 0.5943 GB, free: 9.035 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002145/0.4021, allocations: 155.9 kB / 0.5945 GB, free: 8.883 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.733e-05/0.4021, allocations: 92 kB / 0.5946 GB, free: 8.793 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003629/0.4058, allocations: 2.279 MB / 0.5968 GB, free: 6.508 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01311/0.4189, allocations: 14.47 MB / 0.6109 GB, free: 7.707 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002069/0.421, allocations: 1.357 MB / 0.6123 GB, free: 6.344 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008322/0.4218, allocations: 0.6187 MB / 0.6129 GB, free: 5.727 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.275e-05/0.4219, allocations: 13.31 kB / 0.6129 GB, free: 5.715 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.661e-05/0.4219, allocations: 47.88 kB / 0.6129 GB, free: 5.66 MB / 442.7 MB Notification: Performance of pre-optimization done (n=133): time 3.356e-06/0.4219, allocations: 4 kB / 0.6129 GB, free: 5.656 MB / 442.7 MB Notification: Performance of matching and sorting (n=133): time 0.002665/0.4246, allocations: 1.788 MB / 0.6147 GB, free: 3.859 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.409e-05/0.4246, allocations: 64.72 kB / 0.6147 GB, free: 3.785 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001651/0.4263, allocations: 1.461 MB / 0.6162 GB, free: 2.32 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.831e-05/0.4264, allocations: 57.7 kB / 0.6162 GB, free: 2.258 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008321/0.4272, allocations: 1.583 MB / 0.6178 GB, free: 0.6523 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000325/0.4276, allocations: 493 kB / 0.6182 GB, free: 168 kB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.935e-05/0.4276, allocations: 36 kB / 0.6183 GB, free: 132 kB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.4278, allocations: 373.9 kB / 0.6186 GB, free: 15.76 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009193/0.4287, allocations: 0.5857 MB / 0.6192 GB, free: 15.17 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001144/0.4298, allocations: 1.075 MB / 0.6202 GB, free: 13.89 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002111/0.432, allocations: 1.754 MB / 0.622 GB, free: 11.93 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.374e-06/0.432, allocations: 4 kB / 0.622 GB, free: 11.93 MB / 458.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.002688/0.4347, allocations: 1.952 MB / 0.6239 GB, free: 9.965 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.949e-05/0.4347, allocations: 12 kB / 0.6239 GB, free: 9.953 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.661e-05/0.4347, allocations: 16 kB / 0.6239 GB, free: 9.938 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.195e-05/0.4348, allocations: 27.94 kB / 0.6239 GB, free: 9.91 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001139/0.4359, allocations: 355.8 kB / 0.6243 GB, free: 9.562 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.537e-05/0.436, allocations: 35.92 kB / 0.6243 GB, free: 9.527 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006921/0.4367, allocations: 146.6 kB / 0.6244 GB, free: 9.383 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.593e-05/0.4368, allocations: 72 kB / 0.6245 GB, free: 9.312 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 () * 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.001133/0.4379, allocations: 0.6457 MB / 0.6251 GB, free: 8.66 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000207/0.4381, allocations: 173.8 kB / 0.6253 GB, free: 8.488 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002987/0.4384, allocations: 210.5 kB / 0.6255 GB, free: 8.277 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.006e-05/0.4384, allocations: 16 kB / 0.6255 GB, free: 8.262 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/0.4384, allocations: 4 kB / 0.6255 GB, free: 8.258 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.888e-06/0.4385, allocations: 3.984 kB / 0.6255 GB, free: 8.254 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004714/0.4432, allocations: 3.956 MB / 0.6294 GB, free: 4.234 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.4432, allocations: 7.938 kB / 0.6294 GB, free: 4.227 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00107/0.4443, allocations: 223.7 kB / 0.6296 GB, free: 4.008 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.174e-06/0.4443, allocations: 4 kB / 0.6296 GB, free: 4.004 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.663e-05/0.4444, allocations: 39.98 kB / 0.6296 GB, free: 3.965 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.27e-05/0.4444, allocations: 4 kB / 0.6297 GB, free: 3.961 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.4444, allocations: 4 kB / 0.6297 GB, free: 3.957 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002837/0.4473, allocations: 2.151 MB / 0.6318 GB, free: 1.785 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002534/0.4475, allocations: 278.3 kB / 0.632 GB, free: 1.492 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001556/0.4477, allocations: 36 kB / 0.6321 GB, free: 1.457 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004959/0.4482, allocations: 35.98 kB / 0.6321 GB, free: 1.422 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001418/0.4483, allocations: 77.2 kB / 0.6322 GB, free: 1.348 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.999e-05/0.4484, allocations: 35.98 kB / 0.6322 GB, free: 1.312 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001189/0.4496, allocations: 0.9678 MB / 0.6331 GB, free: 360 kB / 458.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4496, allocations: 0 / 0.6331 GB, free: 360 kB / 458.7 MB Notification: Performance of remove unused functions: time 0.001193/0.4508, allocations: 0.6207 MB / 0.6338 GB, free: 15.72 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 () * 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.0001806/0.451, allocations: 163 kB / 0.6339 GB, free: 15.55 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002027/0.453, allocations: 1.455 MB / 0.6353 GB, free: 14.11 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.453, allocations: 0 / 0.6353 GB, free: 14.11 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008631/0.4539, allocations: 0.6594 MB / 0.636 GB, free: 13.45 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001146/0.4551, allocations: 313.5 kB / 0.6363 GB, free: 13.14 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007119/0.4622, allocations: 6.398 MB / 0.6425 GB, free: 6.707 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001271/0.4635, allocations: 1.78 MB / 0.6443 GB, free: 4.902 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0007555/0.4642, allocations: 168.5 kB / 0.6444 GB, free: 4.734 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003098/0.4646, allocations: 107.4 kB / 0.6445 GB, free: 4.629 MB / 474.7 MB Notification: Performance of SimCode: time 4.11e-07/0.4646, allocations: 4 kB / 0.6445 GB, free: 4.625 MB / 474.7 MB Notification: Performance of Templates: time 0.171/0.6356, allocations: 14.61 MB / 0.6588 GB, free: 122.1 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)