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.00137/0.001371, allocations: 177 kB / 7.649 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.359/1.359, allocations: 221.5 MB / 229.6 MB, free: 7.52 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.0008759/0.0008759, allocations: 100.3 kB / 280.5 MB, free: 5.258 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1566/0.1566, allocations: 28.84 MB / 360.1 MB, free: 2.199 MB / 250.7 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 1.125e-05/1.128e-05, allocations: 0 / 423.8 MB, free: 32.19 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1161, allocations: 57.48 MB / 481.3 MB, free: 6.836 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3566/0.4727, allocations: 81.28 MB / 0.5494 GB, free: 10.88 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000204/0.473, allocations: 67.73 kB / 0.5494 GB, free: 10.88 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09718/0.5701, allocations: 49.36 MB / 0.5976 GB, free: 14.31 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.5702, allocations: 0 / 0.5976 GB, free: 14.31 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002177/0.5704, allocations: 91.69 kB / 0.5977 GB, free: 14.23 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.00513/0.5756, allocations: 2.735 MB / 0.6004 GB, free: 11.45 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.187e-05/0.5756, allocations: 11.98 kB / 0.6004 GB, free: 11.43 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008524/0.5765, allocations: 414.9 kB / 0.6008 GB, free: 11.02 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003093/0.5796, allocations: 2.014 MB / 0.6028 GB, free: 8.992 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000123/0.5797, allocations: 123.9 kB / 0.6029 GB, free: 8.871 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003744/0.5801, allocations: 231.8 kB / 0.6031 GB, free: 8.645 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003983/0.5841, allocations: 1.878 MB / 0.6049 GB, free: 6.766 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005202/0.5893, allocations: 2.961 MB / 0.6078 GB, free: 3.578 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.871e-05/0.5894, allocations: 11.88 kB / 0.6078 GB, free: 3.566 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000189/0.5896, allocations: 8 kB / 0.6078 GB, free: 3.559 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.291e-05/0.5897, allocations: 96 kB / 0.6079 GB, free: 3.465 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01656/0.6062, allocations: 13.88 MB / 0.6215 GB, free: 5.363 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002107/0.6084, allocations: 1.233 MB / 0.6227 GB, free: 4.125 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007738/0.6092, allocations: 0.5437 MB / 0.6232 GB, free: 3.578 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.446e-05/0.6093, allocations: 17.31 kB / 0.6232 GB, free: 3.559 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.111e-05/0.6093, allocations: 47.88 kB / 0.6233 GB, free: 3.504 MB / 410.7 MB Notification: Performance of pre-optimization done (n=133): time 3.366e-06/0.6093, allocations: 0 / 0.6233 GB, free: 3.504 MB / 410.7 MB Notification: Performance of matching and sorting (n=133): time 0.001902/0.6112, allocations: 1.154 MB / 0.6244 GB, free: 2.34 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.01e-05/0.6113, allocations: 64.72 kB / 0.6245 GB, free: 2.266 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001701/0.613, allocations: 1.187 MB / 0.6256 GB, free: 1.078 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001009/0.6131, allocations: 25.7 kB / 0.6257 GB, free: 1.047 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001189/0.6143, allocations: 1.578 MB / 0.6272 GB, free: 15.45 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000472/0.6148, allocations: 472.9 kB / 0.6276 GB, free: 14.98 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.458e-05/0.6149, allocations: 0 / 0.6276 GB, free: 14.98 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002103/0.6151, allocations: 385.8 kB / 0.628 GB, free: 14.6 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008841/0.616, allocations: 0.5117 MB / 0.6285 GB, free: 14.09 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001168/0.6171, allocations: 0.9775 MB / 0.6295 GB, free: 12.91 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001029/0.6182, allocations: 0.6817 MB / 0.6301 GB, free: 12.23 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.656e-06/0.6182, allocations: 4 kB / 0.6301 GB, free: 12.23 MB / 426.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.002731/0.6209, allocations: 1.683 MB / 0.6318 GB, free: 10.54 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.531e-05/0.621, allocations: 16.03 kB / 0.6318 GB, free: 10.52 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.074e-05/0.621, allocations: 16 kB / 0.6318 GB, free: 10.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.922e-05/0.621, allocations: 24 kB / 0.6318 GB, free: 10.48 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00137/0.6224, allocations: 347.4 kB / 0.6322 GB, free: 10.14 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.919e-05/0.6225, allocations: 35.86 kB / 0.6322 GB, free: 10.11 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008611/0.6233, allocations: 114.5 kB / 0.6323 GB, free: 9.992 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001211/0.6235, allocations: 80 kB / 0.6324 GB, free: 9.914 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 () * 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.0002645/0.6237, allocations: 188.2 kB / 0.6326 GB, free: 9.727 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002283/0.624, allocations: 173.8 kB / 0.6327 GB, free: 9.555 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004976/0.6245, allocations: 190.6 kB / 0.6329 GB, free: 9.363 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-05/0.6245, allocations: 12 kB / 0.6329 GB, free: 9.352 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.118e-06/0.6245, allocations: 0 / 0.6329 GB, free: 9.352 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.6245, allocations: 3.984 kB / 0.6329 GB, free: 9.348 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004805/0.6293, allocations: 3.386 MB / 0.6362 GB, free: 5.941 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.6293, allocations: 8 kB / 0.6362 GB, free: 5.934 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001269/0.6306, allocations: 227.7 kB / 0.6365 GB, free: 5.711 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.229e-05/0.6306, allocations: 4 kB / 0.6365 GB, free: 5.707 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.448e-05/0.6307, allocations: 20 kB / 0.6365 GB, free: 5.688 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.891e-06/0.6308, allocations: 4 kB / 0.6365 GB, free: 5.684 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.429e-06/0.6308, allocations: 0 / 0.6365 GB, free: 5.684 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002816/0.6336, allocations: 1.956 MB / 0.6384 GB, free: 3.711 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003416/0.6339, allocations: 270.6 kB / 0.6387 GB, free: 3.426 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001662/0.6341, allocations: 8 kB / 0.6387 GB, free: 3.418 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005867/0.6347, allocations: 19.98 kB / 0.6387 GB, free: 3.398 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001468/0.6349, allocations: 81.12 kB / 0.6388 GB, free: 3.316 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.482e-05/0.6349, allocations: 28 kB / 0.6388 GB, free: 3.289 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001271/0.6362, allocations: 0.8743 MB / 0.6396 GB, free: 2.422 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.6362, allocations: 4 kB / 0.6396 GB, free: 2.418 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001411/0.6376, allocations: 0.5737 MB / 0.6402 GB, free: 1.84 MB / 426.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 () * 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.0002128/0.6379, allocations: 139 kB / 0.6403 GB, free: 1.695 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00192/0.6398, allocations: 1.277 MB / 0.6416 GB, free: 432 kB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.6398, allocations: 4 kB / 0.6416 GB, free: 428 kB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008099/0.6406, allocations: 0.6005 MB / 0.6422 GB, free: 15.82 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001177/0.6418, allocations: 265.6 kB / 0.6424 GB, free: 15.56 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006862/0.6487, allocations: 3.861 MB / 0.6462 GB, free: 11.65 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001521/0.6502, allocations: 1.842 MB / 0.648 GB, free: 9.777 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0009133/0.6512, allocations: 176.5 kB / 0.6482 GB, free: 9.602 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003323/0.6515, allocations: 103.4 kB / 0.6483 GB, free: 9.5 MB / 442.7 MB Notification: Performance of SimCode: time 9.51e-07/0.6515, allocations: 0 / 0.6483 GB, free: 9.5 MB / 442.7 MB Notification: Performance of Templates: time 0.02608/0.6776, allocations: 13.18 MB / 0.6611 GB, free: 12.35 MB / 458.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)