Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity.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.InventoryForresterSinOneYearCapacity,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity") translateModel(SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001289/0.001289, allocations: 170 kB / 7.646 MB, free: 1.426 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.309/1.309, allocations: 221.5 MB / 229.6 MB, free: 7.582 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.0008851/0.0008854, allocations: 97.8 kB / 280.5 MB, free: 5.309 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1625/0.1625, allocations: 28.84 MB / 360.1 MB, free: 2.207 MB / 250.7 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 1.674e-05/1.676e-05, allocations: 8 kB / 423.8 MB, free: 32.2 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09936/0.09939, allocations: 57.49 MB / 481.3 MB, free: 6.828 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3983/0.4978, allocations: 81.84 MB / 0.5499 GB, free: 10.87 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002005/0.498, allocations: 66.7 kB / 0.55 GB, free: 10.87 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1028/0.6008, allocations: 49.64 MB / 0.5984 GB, free: 13.62 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.6008, allocations: 1.531 kB / 0.5984 GB, free: 13.62 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003659/0.6012, allocations: 91.84 kB / 0.5985 GB, free: 13.53 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.006264/0.6075, allocations: 2.739 MB / 0.6012 GB, free: 10.75 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.6075, allocations: 11.98 kB / 0.6012 GB, free: 10.74 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001112/0.6087, allocations: 422.9 kB / 0.6016 GB, free: 10.32 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002853/0.6115, allocations: 2.012 MB / 0.6036 GB, free: 8.293 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001083/0.6116, allocations: 124 kB / 0.6037 GB, free: 8.172 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003375/0.612, allocations: 227.9 kB / 0.6039 GB, free: 7.949 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003665/0.6157, allocations: 1.878 MB / 0.6058 GB, free: 6.07 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00483/0.6205, allocations: 2.969 MB / 0.6087 GB, free: 2.875 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.994e-05/0.6206, allocations: 15.88 kB / 0.6087 GB, free: 2.859 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001739/0.6208, allocations: 11.98 kB / 0.6087 GB, free: 2.848 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.648e-05/0.6208, allocations: 92 kB / 0.6088 GB, free: 2.758 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01463/0.6355, allocations: 13.88 MB / 0.6223 GB, free: 4.656 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001924/0.6374, allocations: 1.229 MB / 0.6235 GB, free: 3.418 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006929/0.6381, allocations: 0.5359 MB / 0.6241 GB, free: 2.879 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.861e-05/0.6382, allocations: 13.31 kB / 0.6241 GB, free: 2.867 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.371e-05/0.6383, allocations: 51.81 kB / 0.6241 GB, free: 2.805 MB / 410.7 MB Notification: Performance of pre-optimization done (n=133): time 3.497e-06/0.6383, allocations: 3.938 kB / 0.6241 GB, free: 2.801 MB / 410.7 MB Notification: Performance of matching and sorting (n=133): time 0.001758/0.64, allocations: 1.154 MB / 0.6252 GB, free: 1.637 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.407e-05/0.6401, allocations: 68.72 kB / 0.6253 GB, free: 1.559 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001512/0.6416, allocations: 1.195 MB / 0.6265 GB, free: 376 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.832e-05/0.6417, allocations: 29.7 kB / 0.6265 GB, free: 340 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000957/0.6426, allocations: 1.575 MB / 0.628 GB, free: 14.76 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003718/0.643, allocations: 484.8 kB / 0.6285 GB, free: 14.28 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.435e-05/0.6431, allocations: 0 / 0.6285 GB, free: 14.28 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.6432, allocations: 369.9 kB / 0.6289 GB, free: 13.91 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007741/0.644, allocations: 0.5156 MB / 0.6294 GB, free: 13.39 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001041/0.6451, allocations: 0.9853 MB / 0.6303 GB, free: 12.21 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009452/0.646, allocations: 0.6739 MB / 0.631 GB, free: 11.54 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.137e-06/0.646, allocations: 8 kB / 0.631 GB, free: 11.53 MB / 426.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.002394/0.6484, allocations: 1.69 MB / 0.6326 GB, free: 9.828 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.275e-05/0.6485, allocations: 14.38 kB / 0.6327 GB, free: 9.816 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.628e-05/0.6485, allocations: 19.94 kB / 0.6327 GB, free: 9.797 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.727e-05/0.6485, allocations: 28 kB / 0.6327 GB, free: 9.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001294/0.6498, allocations: 347.4 kB / 0.633 GB, free: 9.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.498e-05/0.6499, allocations: 31.92 kB / 0.6331 GB, free: 9.398 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007978/0.6507, allocations: 110.6 kB / 0.6332 GB, free: 9.289 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001092/0.6508, allocations: 76 kB / 0.6332 GB, free: 9.215 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.0002357/0.651, allocations: 188.3 kB / 0.6334 GB, free: 9.027 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002201/0.6513, allocations: 181.8 kB / 0.6336 GB, free: 8.848 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004411/0.6517, allocations: 182.7 kB / 0.6338 GB, free: 8.664 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.758e-06/0.6517, allocations: 12 kB / 0.6338 GB, free: 8.652 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.746e-06/0.6518, allocations: 0 / 0.6338 GB, free: 8.652 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/0.6518, allocations: 3.984 kB / 0.6338 GB, free: 8.648 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004357/0.6561, allocations: 3.401 MB / 0.6371 GB, free: 5.227 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.6561, allocations: 0 / 0.6371 GB, free: 5.227 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001205/0.6574, allocations: 227.7 kB / 0.6373 GB, free: 5.004 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.111e-05/0.6574, allocations: 8 kB / 0.6373 GB, free: 4.996 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.411e-05/0.6575, allocations: 19.98 kB / 0.6373 GB, free: 4.977 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.322e-06/0.6575, allocations: 8 kB / 0.6374 GB, free: 4.969 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.6575, allocations: 0 / 0.6374 GB, free: 4.969 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002479/0.66, allocations: 1.948 MB / 0.6393 GB, free: 3.004 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002571/0.6602, allocations: 274.5 kB / 0.6395 GB, free: 2.715 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001705/0.6604, allocations: 19.98 kB / 0.6395 GB, free: 2.695 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005756/0.661, allocations: 15.98 kB / 0.6396 GB, free: 2.68 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001317/0.6611, allocations: 77.2 kB / 0.6396 GB, free: 2.605 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.464e-05/0.6612, allocations: 35.98 kB / 0.6397 GB, free: 2.57 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001136/0.6624, allocations: 0.8706 MB / 0.6405 GB, free: 1.707 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.6624, allocations: 0 / 0.6405 GB, free: 1.707 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001376/0.6637, allocations: 0.5737 MB / 0.6411 GB, free: 1.129 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.0002049/0.664, allocations: 151 kB / 0.6412 GB, free: 0.9688 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001797/0.6658, allocations: 1.284 MB / 0.6425 GB, free: 15.69 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.6658, allocations: 0 / 0.6425 GB, free: 15.69 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007408/0.6665, allocations: 0.6024 MB / 0.6431 GB, free: 15.09 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001109/0.6676, allocations: 257.7 kB / 0.6433 GB, free: 14.84 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006429/0.6741, allocations: 3.861 MB / 0.6471 GB, free: 10.93 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001386/0.6755, allocations: 1.842 MB / 0.6489 GB, free: 9.055 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0008488/0.6763, allocations: 176.4 kB / 0.649 GB, free: 8.879 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003389/0.6767, allocations: 115.4 kB / 0.6491 GB, free: 8.766 MB / 442.7 MB Notification: Performance of SimCode: time 8.41e-07/0.6767, allocations: 0 / 0.6491 GB, free: 8.766 MB / 442.7 MB Notification: Performance of Templates: time 0.02547/0.7022, allocations: 13.19 MB / 0.662 GB, free: 11.61 MB / 458.7 MB make -j1 -f SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity.makefile (rm -f SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity.pipe ; mkfifo SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity.pipe >> ../files/SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity.sim & ./SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity.pipe 2>&1)