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.0009805/0.0009806, allocations: 169 kB / 12.72 MB, free: 2.586 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.195/1.195, allocations: 221.4 MB / 234.6 MB, free: 14.45 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008346/0.0008346, allocations: 104.9 kB / 285.6 MB, free: 12.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2875/0.2875, allocations: 28.82 MB / 365.3 MB, free: 42.06 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 2.385e-05/2.391e-05, allocations: 4 kB / 430.7 MB, free: 4.426 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09644/0.09647, allocations: 57.48 MB / 488.1 MB, free: 10.88 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3285/0.425, allocations: 82.5 MB / 0.5573 GB, free: 23.21 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001817/0.4252, allocations: 70.97 kB / 0.5573 GB, free: 23.18 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1015/0.5268, allocations: 50.12 MB / 0.6063 GB, free: 1.051 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.5268, allocations: 0 / 0.6063 GB, free: 1.051 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002095/0.527, allocations: 91.94 kB / 0.6064 GB, free: 0.9609 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.004414/0.5315, allocations: 2.734 MB / 0.609 GB, free: 14.43 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.5315, allocations: 11.97 kB / 0.6091 GB, free: 14.42 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000663/0.5322, allocations: 422.8 kB / 0.6095 GB, free: 14 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002836/0.535, allocations: 2.019 MB / 0.6114 GB, free: 12.11 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002095/0.5352, allocations: 283.4 kB / 0.6117 GB, free: 11.84 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004538/0.5357, allocations: 379.9 kB / 0.6121 GB, free: 11.46 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005707/0.5414, allocations: 3.502 MB / 0.6155 GB, free: 7.734 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.733e-05/0.5415, allocations: 11.94 kB / 0.6155 GB, free: 7.723 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002491/0.5418, allocations: 152 kB / 0.6156 GB, free: 7.574 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.124e-05/0.5418, allocations: 96 kB / 0.6157 GB, free: 7.48 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003694/0.5455, allocations: 2.151 MB / 0.6178 GB, free: 5.324 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01504/0.5606, allocations: 14.46 MB / 0.632 GB, free: 6.527 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002062/0.5627, allocations: 1.284 MB / 0.6332 GB, free: 5.23 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008264/0.5635, allocations: 0.5789 MB / 0.6338 GB, free: 4.648 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.99e-05/0.5636, allocations: 13.31 kB / 0.6338 GB, free: 4.637 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.969e-05/0.5636, allocations: 51.81 kB / 0.6338 GB, free: 4.578 MB / 442.7 MB Notification: Performance of pre-optimization done (n=133): time 3.326e-06/0.5636, allocations: 3.938 kB / 0.6338 GB, free: 4.574 MB / 442.7 MB Notification: Performance of matching and sorting (n=133): time 0.001909/0.5656, allocations: 1.228 MB / 0.635 GB, free: 3.336 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.09e-05/0.5656, allocations: 64.72 kB / 0.6351 GB, free: 3.258 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001722/0.5673, allocations: 1.277 MB / 0.6363 GB, free: 1.98 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.237e-05/0.5674, allocations: 49.7 kB / 0.6364 GB, free: 1.926 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008963/0.5684, allocations: 1.583 MB / 0.6379 GB, free: 328 kB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003839/0.5687, allocations: 497 kB / 0.6384 GB, free: 15.82 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.221e-05/0.5688, allocations: 36 kB / 0.6384 GB, free: 15.79 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.569, allocations: 377.7 kB / 0.6388 GB, free: 15.42 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000872/0.5699, allocations: 0.5508 MB / 0.6393 GB, free: 14.87 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001103/0.571, allocations: 1.02 MB / 0.6403 GB, free: 13.65 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00106/0.572, allocations: 0.7272 MB / 0.6411 GB, free: 12.92 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.566e-06/0.5721, allocations: 4 kB / 0.6411 GB, free: 12.92 MB / 458.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.002675/0.5747, allocations: 1.869 MB / 0.6429 GB, free: 11.04 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.609e-05/0.5748, allocations: 15.94 kB / 0.6429 GB, free: 11.02 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.74e-05/0.5748, allocations: 16 kB / 0.6429 GB, free: 11.01 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.411e-05/0.5748, allocations: 24 kB / 0.6429 GB, free: 10.98 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0013/0.5761, allocations: 356.1 kB / 0.6433 GB, free: 10.64 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.1e-05/0.5762, allocations: 31.92 kB / 0.6433 GB, free: 10.61 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008493/0.577, allocations: 146.6 kB / 0.6434 GB, free: 10.46 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001068/0.5772, allocations: 75.94 kB / 0.6435 GB, free: 10.39 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 () * 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.0002577/0.5774, allocations: 240.3 kB / 0.6437 GB, free: 10.15 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002202/0.5777, allocations: 177.8 kB / 0.6439 GB, free: 9.973 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004718/0.5781, allocations: 206.7 kB / 0.6441 GB, free: 9.766 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.148e-05/0.5782, allocations: 12 kB / 0.6441 GB, free: 9.754 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.081e-05/0.5782, allocations: 4 kB / 0.6441 GB, free: 9.75 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.018e-05/0.5782, allocations: 3.984 kB / 0.6441 GB, free: 9.746 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005028/0.5832, allocations: 3.882 MB / 0.6479 GB, free: 5.797 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.5832, allocations: 3.984 kB / 0.6479 GB, free: 5.793 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001185/0.5844, allocations: 231.7 kB / 0.6481 GB, free: 5.566 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-05/0.5845, allocations: 12 kB / 0.6482 GB, free: 5.555 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.856e-05/0.5846, allocations: 35.98 kB / 0.6482 GB, free: 5.52 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.751e-06/0.5846, allocations: 4 kB / 0.6482 GB, free: 5.516 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.5846, allocations: 0 / 0.6482 GB, free: 5.516 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00276/0.5873, allocations: 2.042 MB / 0.6502 GB, free: 3.461 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003293/0.5877, allocations: 278.4 kB / 0.6505 GB, free: 3.168 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001656/0.5879, allocations: 36 kB / 0.6505 GB, free: 3.133 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006021/0.5885, allocations: 39.98 kB / 0.6505 GB, free: 3.094 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001662/0.5886, allocations: 69.2 kB / 0.6506 GB, free: 3.027 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.989e-05/0.5887, allocations: 43.86 kB / 0.6506 GB, free: 2.984 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001391/0.5901, allocations: 0.9559 MB / 0.6516 GB, free: 2.035 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5901, allocations: 3.938 kB / 0.6516 GB, free: 2.031 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001552/0.5917, allocations: 0.6245 MB / 0.6522 GB, free: 1.402 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 () * 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.0002394/0.5919, allocations: 170.9 kB / 0.6523 GB, free: 1.227 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002096/0.594, allocations: 1.369 MB / 0.6537 GB, free: 15.86 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.5941, allocations: 0 / 0.6537 GB, free: 15.86 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008336/0.5949, allocations: 0.6283 MB / 0.6543 GB, free: 15.23 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001141/0.5961, allocations: 278.2 kB / 0.6546 GB, free: 14.96 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006323/0.6024, allocations: 3.924 MB / 0.6584 GB, free: 10.99 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001377/0.6038, allocations: 1.842 MB / 0.6602 GB, free: 9.121 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0008348/0.6046, allocations: 176.5 kB / 0.6604 GB, free: 8.945 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003444/0.605, allocations: 103.4 kB / 0.6605 GB, free: 8.844 MB / 474.7 MB Notification: Performance of SimCode: time 1.393e-06/0.605, allocations: 0 / 0.6605 GB, free: 8.844 MB / 474.7 MB Notification: Performance of Templates: time 0.02679/0.6318, allocations: 14.62 MB / 0.6747 GB, free: 10.25 MB / 490.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)