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 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.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 4.0.0+maint.om/package.mo): time 0.004823/0.004823, allocations: 172.1 kB / 15.12 MB, free: 5.973 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.11/1.11, allocations: 223.2 MB / 239 MB, free: 1.801 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.000886/0.000886, allocations: 104.7 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.1289/0.1289, 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.0002545/0.0002545, allocations: 8 kB / 438.1 MB, free: 70.8 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07363/0.0739, allocations: 57.47 MB / 495.6 MB, free: 13.29 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2416/0.3156, allocations: 82.02 MB / 0.5641 GB, free: 10.07 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001498/0.3158, allocations: 68.03 kB / 0.5641 GB, free: 10.04 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09521/0.411, allocations: 49.82 MB / 0.6128 GB, free: 0.7148 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.411, allocations: 0 / 0.6128 GB, free: 0.7148 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002028/0.4112, allocations: 88 kB / 0.6129 GB, free: 0.6289 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.004759/0.416, allocations: 3.026 MB / 0.6158 GB, free: 13.54 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.136e-05/0.416, allocations: 8.031 kB / 0.6158 GB, free: 13.53 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004615/0.4165, allocations: 414.9 kB / 0.6162 GB, free: 13.12 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002443/0.4189, allocations: 2.029 MB / 0.6182 GB, free: 11.04 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001746/0.4191, allocations: 283.4 kB / 0.6185 GB, free: 10.76 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003663/0.4195, allocations: 383.9 kB / 0.6189 GB, free: 10.38 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004635/0.4241, allocations: 3.588 MB / 0.6224 GB, free: 6.57 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.13e-05/0.4242, allocations: 11.94 kB / 0.6224 GB, free: 6.559 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002185/0.4244, allocations: 156 kB / 0.6225 GB, free: 6.406 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.381e-05/0.4245, allocations: 92 kB / 0.6226 GB, free: 6.316 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00347/0.428, allocations: 2.279 MB / 0.6248 GB, free: 4.031 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01255/0.4405, allocations: 14.45 MB / 0.6389 GB, free: 5.25 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00206/0.4426, allocations: 1.357 MB / 0.6403 GB, free: 3.883 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.985e-05/0.4427, allocations: 13.31 kB / 0.6403 GB, free: 3.871 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.356e-05/0.4427, allocations: 43.88 kB / 0.6403 GB, free: 3.82 MB / 426.7 MB Notification: Performance of pre-optimization done (n=133): time 2.805e-06/0.4427, allocations: 0 / 0.6403 GB, free: 3.82 MB / 426.7 MB Notification: Performance of matching and sorting (n=133): time 0.002576/0.4453, allocations: 1.78 MB / 0.6421 GB, free: 2.035 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.637e-05/0.4453, allocations: 64.72 kB / 0.6421 GB, free: 1.961 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001482/0.4468, allocations: 1.289 MB / 0.6434 GB, free: 0.6719 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.768e-05/0.4469, allocations: 53.7 kB / 0.6434 GB, free: 0.6133 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008577/0.4478, allocations: 1.583 MB / 0.645 GB, free: 15.01 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003255/0.4481, allocations: 492.9 kB / 0.6454 GB, free: 14.52 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.521e-05/0.4482, allocations: 36 kB / 0.6455 GB, free: 14.48 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.4483, allocations: 373.8 kB / 0.6458 GB, free: 14.11 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008956/0.4492, allocations: 0.5935 MB / 0.6464 GB, free: 13.52 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001132/0.4504, allocations: 1.067 MB / 0.6475 GB, free: 12.25 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001057/0.4514, allocations: 0.7522 MB / 0.6482 GB, free: 11.5 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.023e-06/0.4514, allocations: 4 kB / 0.6482 GB, free: 11.49 MB / 442.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.0026/0.4541, allocations: 1.952 MB / 0.6501 GB, free: 9.531 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.108e-05/0.4541, allocations: 16.03 kB / 0.6501 GB, free: 9.516 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.883e-05/0.4541, allocations: 23.88 kB / 0.6501 GB, free: 9.492 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.828e-05/0.4541, allocations: 24 kB / 0.6502 GB, free: 9.469 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001165/0.4553, allocations: 355.4 kB / 0.6505 GB, free: 9.121 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.679e-05/0.4554, allocations: 35.86 kB / 0.6505 GB, free: 9.086 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006873/0.456, allocations: 146.6 kB / 0.6507 GB, free: 8.941 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.829e-05/0.4561, allocations: 76 kB / 0.6507 GB, free: 8.867 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.0009629/0.4571, allocations: 0.6535 MB / 0.6514 GB, free: 8.207 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002043/0.4573, allocations: 173.8 kB / 0.6516 GB, free: 8.035 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003464/0.4577, allocations: 202.6 kB / 0.6517 GB, free: 7.832 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.458e-06/0.4577, allocations: 16 kB / 0.6518 GB, free: 7.816 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.792e-06/0.4577, allocations: 0 / 0.6518 GB, free: 7.816 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.053e-05/0.4577, allocations: 3.984 kB / 0.6518 GB, free: 7.812 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004537/0.4623, allocations: 3.956 MB / 0.6556 GB, free: 3.785 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.4623, allocations: 0 / 0.6556 GB, free: 3.785 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001122/0.4634, allocations: 227.7 kB / 0.6558 GB, free: 3.562 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.643e-06/0.4634, allocations: 4 kB / 0.6559 GB, free: 3.559 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.546e-05/0.4635, allocations: 39.98 kB / 0.6559 GB, free: 3.52 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/0.4635, allocations: 4 kB / 0.6559 GB, free: 3.516 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.4635, allocations: 3.984 kB / 0.6559 GB, free: 3.512 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002773/0.4663, allocations: 2.159 MB / 0.658 GB, free: 1.344 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002831/0.4666, allocations: 270.5 kB / 0.6583 GB, free: 1.059 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001563/0.4668, allocations: 43.94 kB / 0.6583 GB, free: 1.016 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005184/0.4673, allocations: 39.98 kB / 0.6583 GB, free: 0.9766 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001363/0.4674, allocations: 73.2 kB / 0.6584 GB, free: 0.9023 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.241e-05/0.4675, allocations: 31.98 kB / 0.6584 GB, free: 0.8711 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001157/0.4687, allocations: 0.9755 MB / 0.6594 GB, free: 15.9 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4687, allocations: 0 / 0.6594 GB, free: 15.9 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001118/0.4698, allocations: 0.6284 MB / 0.66 GB, free: 15.27 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.0001894/0.47, allocations: 147.1 kB / 0.6601 GB, free: 15.12 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002022/0.472, allocations: 1.455 MB / 0.6616 GB, free: 13.66 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.472, allocations: 0 / 0.6616 GB, free: 13.66 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000871/0.4729, allocations: 0.6595 MB / 0.6622 GB, free: 13 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009479/0.4739, allocations: 299 kB / 0.6625 GB, free: 12.71 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006702/0.4806, allocations: 6.374 MB / 0.6687 GB, free: 6.309 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001255/0.4818, allocations: 1.842 MB / 0.6705 GB, free: 4.438 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.000659/0.4825, allocations: 176.5 kB / 0.6707 GB, free: 4.262 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003103/0.4828, allocations: 107.4 kB / 0.6708 GB, free: 4.156 MB / 458.7 MB Notification: Performance of SimCode: time 2.21e-07/0.4828, allocations: 7.938 kB / 0.6708 GB, free: 4.148 MB / 458.7 MB Notification: Performance of Templates: time 0.02371/0.5066, allocations: 14.57 MB / 0.685 GB, free: 5.602 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)