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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00112/0.00112, allocations: 115.2 kB / 16.42 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001113/0.001113, allocations: 183.9 kB / 17.35 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.341/1.341, allocations: 222.9 MB / 241.1 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1879/0.1879, allocations: 28.79 MB / 320 MB, free: 1.895 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.001706/0.001706, allocations: 63.91 kB / 444.9 MB, free: 2.598 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1084, allocations: 56.42 MB / 0.4896 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterStep): time 0.0175/0.126, allocations: 11.71 MB / 0.5011 GB, free: 14.34 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009686/0.1357, allocations: 3.261 MB / 0.5042 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005273/0.141, allocations: 59.69 kB / 0.5043 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003043/0.1442, allocations: 0.5295 MB / 0.5048 GB, free: 10.48 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004192/0.1484, allocations: 411.9 kB / 0.5052 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005022/0.1534, allocations: 1.717 MB / 0.5069 GB, free: 8.355 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.008583/0.1621, allocations: 4.204 MB / 0.511 GB, free: 4.141 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007161/0.1693, allocations: 2.778 MB / 0.5137 GB, free: 1.285 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2765/0.4458, allocations: 1.403 MB / 0.5151 GB, free: 10.13 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00173/0.4475, allocations: 1.547 MB / 0.5166 GB, free: 9.996 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001313/0.4489, allocations: 0.5453 MB / 0.5171 GB, free: 9.992 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006356/0.4495, allocations: 0.548 MB / 0.5176 GB, free: 9.992 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000606/0.4501, allocations: 0.9862 MB / 0.5186 GB, free: 9.848 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001657/0.4518, allocations: 1.949 MB / 0.5205 GB, free: 9.262 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006936/0.4587, allocations: 5.252 MB / 0.5256 GB, free: 8.539 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.4588, allocations: 1.438 kB / 0.5256 GB, free: 8.539 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.346e-06/0.4588, allocations: 0.5625 kB / 0.5256 GB, free: 8.539 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001695/0.4589, allocations: 4.594 kB / 0.5256 GB, free: 8.535 MB / 398.1 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.007547/0.4665, allocations: 3.738 MB / 0.5293 GB, free: 7.027 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.462e-05/0.4666, allocations: 8.531 kB / 0.5293 GB, free: 7.027 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007718/0.4673, allocations: 417.5 kB / 0.5297 GB, free: 6.816 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003557/0.4709, allocations: 2.153 MB / 0.5318 GB, free: 6.281 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003092/0.4712, allocations: 285.2 kB / 0.5321 GB, free: 6.273 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005916/0.4718, allocations: 388.7 kB / 0.5324 GB, free: 6.262 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006835/0.4787, allocations: 3.625 MB / 0.536 GB, free: 5.285 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.713e-05/0.4788, allocations: 12.81 kB / 0.536 GB, free: 5.285 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000275/0.479, allocations: 161.6 kB / 0.5362 GB, free: 5.164 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.781e-05/0.4791, allocations: 92.94 kB / 0.5362 GB, free: 5.164 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004617/0.4838, allocations: 2.262 MB / 0.5385 GB, free: 4.293 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01612/0.4999, allocations: 14.25 MB / 0.5524 GB, free: 9.859 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002599/0.5025, allocations: 1.351 MB / 0.5537 GB, free: 9.156 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00103/0.5036, allocations: 0.6158 MB / 0.5543 GB, free: 8.836 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.289e-05/0.5037, allocations: 14 kB / 0.5543 GB, free: 8.836 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.237e-05/0.5037, allocations: 45.47 kB / 0.5543 GB, free: 8.789 MB / 414.1 MB Notification: Performance of pre-optimization done (n=133): time 3.837e-06/0.5037, allocations: 0 / 0.5543 GB, free: 8.789 MB / 414.1 MB Notification: Performance of matching and sorting (n=133): time 0.003648/0.5074, allocations: 1.769 MB / 0.5561 GB, free: 7.875 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.486e-05/0.5074, allocations: 66.12 kB / 0.5561 GB, free: 7.812 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002327/0.5098, allocations: 1.493 MB / 0.5576 GB, free: 6.992 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001408/0.5099, allocations: 51.2 kB / 0.5576 GB, free: 6.941 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001163/0.5111, allocations: 1.584 MB / 0.5592 GB, free: 5.551 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005581/0.5117, allocations: 493.5 kB / 0.5597 GB, free: 5.129 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005292/0.5122, allocations: 322.5 kB / 0.56 GB, free: 4.934 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.5123, allocations: 301.1 kB / 0.5603 GB, free: 4.637 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001107/0.5135, allocations: 0.5902 MB / 0.5608 GB, free: 4.328 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001421/0.5149, allocations: 1.08 MB / 0.5619 GB, free: 3.395 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002477/0.5174, allocations: 1.756 MB / 0.5636 GB, free: 2.137 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.578e-06/0.5174, allocations: 5.656 kB / 0.5636 GB, free: 2.137 MB / 414.1 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.003357/0.5208, allocations: 1.946 MB / 0.5655 GB, free: 1.223 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.95e-05/0.5208, allocations: 12.84 kB / 0.5655 GB, free: 1.223 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.22e-05/0.5208, allocations: 14.78 kB / 0.5655 GB, free: 1.223 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.953e-05/0.5209, allocations: 33.09 kB / 0.5656 GB, free: 1.215 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001315/0.5222, allocations: 348.2 kB / 0.5659 GB, free: 1.164 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.978e-05/0.5223, allocations: 39.17 kB / 0.5659 GB, free: 1.156 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001126/0.5234, allocations: 170.2 kB / 0.5661 GB, free: 1.035 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000116/0.5235, allocations: 72.62 kB / 0.5662 GB, free: 1.02 MB / 414.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001425/0.5249, allocations: 0.6514 MB / 0.5668 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003435/0.5253, allocations: 178.7 kB / 0.567 GB, free: 0.5 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004353/0.5257, allocations: 205.3 kB / 0.5672 GB, free: 344 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.327e-05/0.5258, allocations: 7.922 kB / 0.5672 GB, free: 336 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.5258, allocations: 0 / 0.5672 GB, free: 336 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003481/0.5261, allocations: 274.6 kB / 0.5674 GB, free: 88 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001915/0.5263, allocations: 32.53 kB / 0.5675 GB, free: 64 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006074/0.5269, allocations: 30.39 kB / 0.5675 GB, free: 44 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001908/0.5271, allocations: 78.08 kB / 0.5676 GB, free: 4 kB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003524/0.5307, allocations: 1.578 MB / 0.5691 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003821/0.5345, allocations: 2.391 MB / 0.5715 GB, free: 13.36 MB / 430.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0009198/0.5354, allocations: 0.6623 MB / 0.5721 GB, free: 12.7 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001414/0.5369, allocations: 0.9795 MB / 0.5731 GB, free: 11.72 MB / 430.1 MB Notification: Performance of Backend: time 3.71e-07/0.5369, allocations: 4 kB / 0.5731 GB, free: 11.72 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002263/0.5391, allocations: 1.072 MB / 0.5741 GB, free: 10.7 MB / 430.1 MB Notification: Performance of SimCode: time 0.008356/0.5475, allocations: 5.422 MB / 0.5794 GB, free: 5.266 MB / 430.1 MB Notification: Performance of Templates: time 0.0421/0.5896, allocations: 22.14 MB / 0.601 GB, free: 15.29 MB / 462.1 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)