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.0009798/0.0009798, allocations: 173.9 kB / 7.648 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.29/1.29, allocations: 221.5 MB / 229.6 MB, free: 7.586 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.0009477/0.0009477, allocations: 105.8 kB / 280.5 MB, free: 5.336 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1624/0.1624, allocations: 28.84 MB / 360.1 MB, free: 2.238 MB / 250.7 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 1.381e-05/1.383e-05, allocations: 4 kB / 423.8 MB, free: 32.22 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09867/0.0987, allocations: 57.49 MB / 481.3 MB, free: 6.859 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4323/0.5311, allocations: 81.84 MB / 0.5499 GB, free: 10.82 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001839/0.5313, allocations: 70.83 kB / 0.55 GB, free: 10.82 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1053/0.6366, allocations: 49.63 MB / 0.5984 GB, free: 13.61 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.315e-06/0.6367, allocations: 0 / 0.5984 GB, free: 13.61 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004227/0.6371, allocations: 103.7 kB / 0.5985 GB, free: 13.51 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.008434/0.6456, allocations: 2.731 MB / 0.6012 GB, free: 10.74 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.59e-05/0.6457, allocations: 15.98 kB / 0.6012 GB, free: 10.72 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00236/0.648, allocations: 418.9 kB / 0.6016 GB, free: 10.31 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006158/0.6542, allocations: 2.02 MB / 0.6036 GB, free: 8.273 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002183/0.6545, allocations: 120 kB / 0.6037 GB, free: 8.156 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001092/0.6556, allocations: 231.9 kB / 0.6039 GB, free: 7.93 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00585/0.6614, allocations: 1.878 MB / 0.6058 GB, free: 6.051 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008342/0.6698, allocations: 2.965 MB / 0.6087 GB, free: 2.859 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001047/0.6699, allocations: 15.88 kB / 0.6087 GB, free: 2.844 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005235/0.6705, allocations: 8 kB / 0.6087 GB, free: 2.836 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.758e-05/0.6706, allocations: 92 kB / 0.6088 GB, free: 2.746 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0208/0.6914, allocations: 13.88 MB / 0.6223 GB, free: 4.648 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002365/0.6938, allocations: 1.232 MB / 0.6235 GB, free: 3.41 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008786/0.6947, allocations: 0.5398 MB / 0.6241 GB, free: 2.867 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.215e-05/0.6948, allocations: 13.31 kB / 0.6241 GB, free: 2.855 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.331e-05/0.6949, allocations: 51.88 kB / 0.6241 GB, free: 2.793 MB / 410.7 MB Notification: Performance of pre-optimization done (n=133): time 3.526e-06/0.6949, allocations: 0 / 0.6241 GB, free: 2.793 MB / 410.7 MB Notification: Performance of matching and sorting (n=133): time 0.002246/0.6971, allocations: 1.154 MB / 0.6252 GB, free: 1.629 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.044e-05/0.6972, allocations: 68.72 kB / 0.6253 GB, free: 1.551 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002325/0.6995, allocations: 1.192 MB / 0.6265 GB, free: 368 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001057/0.6996, allocations: 25.7 kB / 0.6265 GB, free: 336 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001291/0.7009, allocations: 1.584 MB / 0.628 GB, free: 14.78 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004819/0.7014, allocations: 484.8 kB / 0.6285 GB, free: 14.3 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.706e-05/0.7015, allocations: 4 kB / 0.6285 GB, free: 14.29 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001743/0.7017, allocations: 373.9 kB / 0.6289 GB, free: 13.92 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009161/0.7026, allocations: 0.5156 MB / 0.6294 GB, free: 13.41 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001185/0.7038, allocations: 0.9736 MB / 0.6303 GB, free: 12.23 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00116/0.705, allocations: 0.6856 MB / 0.631 GB, free: 11.55 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.349e-05/0.705, allocations: 8 kB / 0.631 GB, free: 11.54 MB / 426.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.003178/0.7082, allocations: 1.691 MB / 0.6326 GB, free: 9.84 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.844e-05/0.7083, allocations: 12 kB / 0.6327 GB, free: 9.828 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.706e-05/0.7083, allocations: 20 kB / 0.6327 GB, free: 9.809 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.295e-05/0.7083, allocations: 24 kB / 0.6327 GB, free: 9.785 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001431/0.7098, allocations: 351.4 kB / 0.633 GB, free: 9.441 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.592e-05/0.7098, allocations: 35.86 kB / 0.6331 GB, free: 9.406 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001197/0.711, allocations: 114.8 kB / 0.6332 GB, free: 9.293 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001483/0.7112, allocations: 72 kB / 0.6332 GB, free: 9.223 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.0002948/0.7115, allocations: 180.4 kB / 0.6334 GB, free: 9.043 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004839/0.712, allocations: 177.7 kB / 0.6336 GB, free: 8.867 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006105/0.7126, allocations: 186.7 kB / 0.6338 GB, free: 8.68 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.79e-05/0.7126, allocations: 16 kB / 0.6338 GB, free: 8.664 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-05/0.7127, allocations: 0 / 0.6338 GB, free: 8.664 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.419e-05/0.7127, allocations: 3.984 kB / 0.6338 GB, free: 8.66 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006382/0.7191, allocations: 3.402 MB / 0.6371 GB, free: 5.238 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.7191, allocations: 0 / 0.6371 GB, free: 5.238 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001309/0.7204, allocations: 223.7 kB / 0.6373 GB, free: 5.02 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.653e-05/0.7205, allocations: 4 kB / 0.6373 GB, free: 5.016 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001089/0.7206, allocations: 23.98 kB / 0.6373 GB, free: 4.992 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.826e-06/0.7206, allocations: 4 kB / 0.6374 GB, free: 4.988 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.7206, allocations: 0 / 0.6374 GB, free: 4.988 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002972/0.7236, allocations: 1.968 MB / 0.6393 GB, free: 3.004 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005456/0.7242, allocations: 270.5 kB / 0.6395 GB, free: 2.719 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003399/0.7245, allocations: 15.94 kB / 0.6395 GB, free: 2.703 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007546/0.7253, allocations: 15.98 kB / 0.6396 GB, free: 2.688 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001617/0.7254, allocations: 73.2 kB / 0.6396 GB, free: 2.617 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.371e-05/0.7255, allocations: 35.98 kB / 0.6397 GB, free: 2.582 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001889/0.7274, allocations: 0.8823 MB / 0.6405 GB, free: 1.707 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7274, allocations: 0 / 0.6405 GB, free: 1.707 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002023/0.7294, allocations: 0.5698 MB / 0.6411 GB, free: 1.133 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.0002962/0.7298, allocations: 135 kB / 0.6412 GB, free: 0.9883 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002767/0.7326, allocations: 1.286 MB / 0.6425 GB, free: 15.71 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.7326, allocations: 0 / 0.6425 GB, free: 15.71 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009469/0.7335, allocations: 0.6023 MB / 0.6431 GB, free: 15.11 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001489/0.735, allocations: 269.6 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.008796/0.7438, allocations: 3.86 MB / 0.6471 GB, free: 10.93 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002308/0.7462, allocations: 1.842 MB / 0.6489 GB, free: 9.062 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001201/0.7474, allocations: 180.5 kB / 0.6491 GB, free: 8.883 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005231/0.7479, allocations: 103.4 kB / 0.6492 GB, free: 8.781 MB / 442.7 MB Notification: Performance of SimCode: time 1.012e-06/0.7479, allocations: 0 / 0.6492 GB, free: 8.781 MB / 442.7 MB Notification: Performance of Templates: time 0.02955/0.7775, allocations: 13.2 MB / 0.662 GB, free: 11.61 MB / 458.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)