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.0009997/0.0009997, allocations: 175.2 kB / 12.73 MB, free: 2.59 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.182/1.182, 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.0008098/0.0008099, allocations: 89.03 kB / 285.6 MB, free: 12.99 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.286/0.286, allocations: 28.83 MB / 365.3 MB, free: 42.02 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 2.399e-05/2.403e-05, allocations: 4 kB / 430.7 MB, free: 4.41 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09556/0.09559, allocations: 57.47 MB / 488.1 MB, free: 10.87 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3193/0.415, allocations: 82.51 MB / 0.5573 GB, free: 23.25 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002172/0.4152, allocations: 69.22 kB / 0.5573 GB, free: 23.23 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1023/0.5176, allocations: 50.11 MB / 0.6063 GB, free: 1.047 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.5176, allocations: 0 / 0.6063 GB, free: 1.047 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000311/0.5179, allocations: 91.94 kB / 0.6064 GB, free: 0.957 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.006045/0.524, allocations: 2.728 MB / 0.609 GB, free: 14.42 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.524, allocations: 20.02 kB / 0.609 GB, free: 14.4 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001223/0.5253, allocations: 418.8 kB / 0.6094 GB, free: 13.98 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003818/0.5291, allocations: 2.016 MB / 0.6114 GB, free: 12.1 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003474/0.5295, allocations: 283.4 kB / 0.6117 GB, free: 11.82 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001048/0.5305, allocations: 383.9 kB / 0.6121 GB, free: 11.45 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007537/0.5381, allocations: 3.499 MB / 0.6155 GB, free: 7.719 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.326e-05/0.5382, allocations: 15.88 kB / 0.6155 GB, free: 7.703 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003853/0.5386, allocations: 156 kB / 0.6156 GB, free: 7.551 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.644e-05/0.5387, allocations: 92 kB / 0.6157 GB, free: 7.461 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004136/0.5428, allocations: 2.155 MB / 0.6178 GB, free: 5.301 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01656/0.5594, allocations: 14.46 MB / 0.6319 GB, free: 6.512 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002177/0.5616, allocations: 1.284 MB / 0.6332 GB, free: 5.215 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000814/0.5624, allocations: 0.5789 MB / 0.6338 GB, free: 4.633 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.608e-05/0.5625, allocations: 13.31 kB / 0.6338 GB, free: 4.621 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.525e-05/0.5626, allocations: 47.88 kB / 0.6338 GB, free: 4.566 MB / 442.7 MB Notification: Performance of pre-optimization done (n=133): time 3.206e-06/0.5626, allocations: 0 / 0.6338 GB, free: 4.566 MB / 442.7 MB Notification: Performance of matching and sorting (n=133): time 0.002054/0.5647, allocations: 1.235 MB / 0.635 GB, free: 3.32 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.851e-05/0.5647, allocations: 68.66 kB / 0.6351 GB, free: 3.238 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001764/0.5665, allocations: 1.273 MB / 0.6363 GB, free: 1.965 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001154/0.5666, allocations: 49.7 kB / 0.6364 GB, free: 1.91 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001004/0.5676, allocations: 1.579 MB / 0.6379 GB, free: 316 kB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004414/0.5681, allocations: 497 kB / 0.6384 GB, free: 15.81 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.704e-05/0.5682, allocations: 36 kB / 0.6384 GB, free: 15.78 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001725/0.5683, allocations: 385.7 kB / 0.6388 GB, free: 15.4 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009073/0.5692, allocations: 0.543 MB / 0.6393 GB, free: 14.86 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001209/0.5705, allocations: 1.024 MB / 0.6403 GB, free: 13.63 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001142/0.5716, allocations: 0.7233 MB / 0.641 GB, free: 12.91 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.236e-06/0.5716, allocations: 8 kB / 0.641 GB, free: 12.9 MB / 458.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.002857/0.5745, allocations: 1.87 MB / 0.6429 GB, free: 11.02 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.466e-05/0.5745, allocations: 15.94 kB / 0.6429 GB, free: 11.01 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.66e-05/0.5746, allocations: 16 kB / 0.6429 GB, free: 10.99 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.704e-05/0.5746, allocations: 24 kB / 0.6429 GB, free: 10.97 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00132/0.576, allocations: 351.4 kB / 0.6433 GB, free: 10.62 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.108e-05/0.576, allocations: 31.92 kB / 0.6433 GB, free: 10.59 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000939/0.5769, allocations: 154.7 kB / 0.6434 GB, free: 10.44 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001161/0.5771, allocations: 75.97 kB / 0.6435 GB, free: 10.37 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.0002739/0.5774, allocations: 232.4 kB / 0.6437 GB, free: 10.14 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002429/0.5776, allocations: 177.8 kB / 0.6439 GB, free: 9.961 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000533/0.5781, allocations: 202.7 kB / 0.6441 GB, free: 9.758 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.446e-05/0.5782, allocations: 12 kB / 0.6441 GB, free: 9.746 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.414e-05/0.5782, allocations: 0 / 0.6441 GB, free: 9.746 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.227e-05/0.5782, allocations: 15.91 kB / 0.6441 GB, free: 9.73 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005338/0.5835, allocations: 3.894 MB / 0.6479 GB, free: 5.77 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/0.5836, allocations: 0 / 0.6479 GB, free: 5.77 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001206/0.5848, allocations: 219.7 kB / 0.6481 GB, free: 5.555 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.08e-05/0.5848, allocations: 4 kB / 0.6481 GB, free: 5.551 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001028/0.5849, allocations: 47.97 kB / 0.6482 GB, free: 5.504 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.384e-06/0.5849, allocations: 7.938 kB / 0.6482 GB, free: 5.496 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.5849, allocations: 0 / 0.6482 GB, free: 5.496 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002891/0.5878, allocations: 2.046 MB / 0.6502 GB, free: 3.438 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003658/0.5882, allocations: 274.4 kB / 0.6505 GB, free: 3.148 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000169/0.5884, allocations: 36 kB / 0.6505 GB, free: 3.113 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005979/0.589, allocations: 31.98 kB / 0.6505 GB, free: 3.082 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001576/0.5892, allocations: 77.2 kB / 0.6506 GB, free: 3.008 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.874e-05/0.5892, allocations: 39.92 kB / 0.6506 GB, free: 2.969 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001412/0.5907, allocations: 0.9559 MB / 0.6516 GB, free: 2.02 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.5907, allocations: 3.938 kB / 0.6516 GB, free: 2.016 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001412/0.5921, allocations: 0.6323 MB / 0.6522 GB, free: 1.379 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.0002077/0.5923, allocations: 163 kB / 0.6523 GB, free: 1.211 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002068/0.5944, allocations: 1.366 MB / 0.6537 GB, free: 15.84 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.5944, allocations: 0.5 kB / 0.6537 GB, free: 15.84 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008717/0.5953, allocations: 0.64 MB / 0.6543 GB, free: 15.2 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001136/0.5964, allocations: 279.8 kB / 0.6546 GB, free: 14.93 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006836/0.6033, allocations: 3.921 MB / 0.6584 GB, free: 10.97 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001454/0.6047, allocations: 1.838 MB / 0.6602 GB, free: 9.105 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0009111/0.6057, allocations: 172.5 kB / 0.6604 GB, free: 8.934 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003476/0.606, allocations: 103.4 kB / 0.6605 GB, free: 8.832 MB / 474.7 MB Notification: Performance of SimCode: time 8.42e-07/0.606, allocations: 4 kB / 0.6605 GB, free: 8.828 MB / 474.7 MB Notification: Performance of Templates: time 0.02865/0.6347, allocations: 14.6 MB / 0.6747 GB, free: 10.27 MB / 490.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)