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.0009803/0.0009804, allocations: 175 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.212/1.212, allocations: 221.4 MB / 234.6 MB, free: 14.44 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.0008409/0.0008409, allocations: 87.52 kB / 285.6 MB, free: 12.97 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3127/0.3127, allocations: 28.82 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.47e-05/2.482e-05, allocations: 4 kB / 430.7 MB, free: 4.406 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09692/0.09696, allocations: 57.48 MB / 488.1 MB, free: 10.86 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3242/0.4212, allocations: 81.94 MB / 0.5567 GB, free: 23.62 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001732/0.4215, allocations: 66.95 kB / 0.5568 GB, free: 23.6 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09794/0.5194, allocations: 49.83 MB / 0.6054 GB, free: 1.777 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.5195, allocations: 0 / 0.6054 GB, free: 1.777 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000193/0.5197, allocations: 95.92 kB / 0.6055 GB, free: 1.684 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.004005/0.5237, allocations: 2.731 MB / 0.6082 GB, free: 15.14 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.5237, allocations: 8.031 kB / 0.6082 GB, free: 15.13 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005686/0.5243, allocations: 414.9 kB / 0.6086 GB, free: 14.72 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002656/0.527, allocations: 2.017 MB / 0.6106 GB, free: 12.95 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002288/0.5272, allocations: 287.4 kB / 0.6109 GB, free: 12.66 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004277/0.5276, allocations: 387.8 kB / 0.6112 GB, free: 12.29 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005457/0.5331, allocations: 3.494 MB / 0.6146 GB, free: 8.562 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.831e-05/0.5332, allocations: 11.88 kB / 0.6146 GB, free: 8.551 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002563/0.5334, allocations: 156 kB / 0.6148 GB, free: 8.398 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.516e-05/0.5335, allocations: 92 kB / 0.6149 GB, free: 8.309 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003774/0.5373, allocations: 2.151 MB / 0.617 GB, free: 6.152 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01637/0.5537, allocations: 14.46 MB / 0.6311 GB, free: 7.363 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002239/0.556, allocations: 1.288 MB / 0.6324 GB, free: 6.062 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008478/0.5568, allocations: 0.5828 MB / 0.6329 GB, free: 5.477 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.749e-05/0.5569, allocations: 13.31 kB / 0.6329 GB, free: 5.465 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.936e-05/0.5569, allocations: 43.88 kB / 0.633 GB, free: 5.41 MB / 442.7 MB Notification: Performance of pre-optimization done (n=133): time 3.487e-06/0.557, allocations: 0 / 0.633 GB, free: 5.41 MB / 442.7 MB Notification: Performance of matching and sorting (n=133): time 0.002102/0.5591, allocations: 1.228 MB / 0.6342 GB, free: 4.172 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.557e-05/0.5591, allocations: 68.72 kB / 0.6343 GB, free: 4.094 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001818/0.561, allocations: 1.265 MB / 0.6355 GB, free: 2.828 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001008/0.5611, allocations: 53.7 kB / 0.6355 GB, free: 2.77 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001144/0.5622, allocations: 1.59 MB / 0.6371 GB, free: 1.156 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004395/0.5627, allocations: 492.9 kB / 0.6376 GB, free: 0.668 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.911e-05/0.5628, allocations: 36 kB / 0.6376 GB, free: 0.6328 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001918/0.563, allocations: 377.8 kB / 0.638 GB, free: 264 kB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009089/0.5639, allocations: 0.5469 MB / 0.6385 GB, free: 15.71 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001173/0.565, allocations: 1.02 MB / 0.6395 GB, free: 14.49 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001076/0.5661, allocations: 0.7194 MB / 0.6402 GB, free: 13.77 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/0.5661, allocations: 4 kB / 0.6402 GB, free: 13.77 MB / 458.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.002711/0.5689, allocations: 1.866 MB / 0.642 GB, free: 11.89 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.455e-05/0.5689, allocations: 11.94 kB / 0.642 GB, free: 11.88 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.999e-05/0.5689, allocations: 16 kB / 0.642 GB, free: 11.87 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.528e-05/0.569, allocations: 28 kB / 0.6421 GB, free: 11.84 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00128/0.5703, allocations: 355.9 kB / 0.6424 GB, free: 11.49 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.64e-05/0.5703, allocations: 35.92 kB / 0.6424 GB, free: 11.46 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008395/0.5711, allocations: 146.5 kB / 0.6426 GB, free: 11.31 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001198/0.5713, allocations: 76 kB / 0.6427 GB, free: 11.24 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.0002628/0.5715, allocations: 244.3 kB / 0.6429 GB, free: 11 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002207/0.5718, allocations: 173.8 kB / 0.6431 GB, free: 10.82 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004339/0.5722, allocations: 202.6 kB / 0.6432 GB, free: 10.62 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.741e-05/0.5722, allocations: 20 kB / 0.6433 GB, free: 10.6 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.06e-05/0.5723, allocations: 0 / 0.6433 GB, free: 10.6 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.174e-05/0.5723, allocations: 7.969 kB / 0.6433 GB, free: 10.59 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005051/0.5773, allocations: 3.878 MB / 0.6471 GB, free: 6.645 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.5773, allocations: 4 kB / 0.6471 GB, free: 6.641 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001183/0.5785, allocations: 223.7 kB / 0.6473 GB, free: 6.422 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.011e-05/0.5786, allocations: 4 kB / 0.6473 GB, free: 6.418 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.149e-05/0.5786, allocations: 40 kB / 0.6473 GB, free: 6.379 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.422e-06/0.5787, allocations: 8 kB / 0.6473 GB, free: 6.371 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.5787, allocations: 3.938 kB / 0.6473 GB, free: 6.367 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002783/0.5815, allocations: 2.042 MB / 0.6493 GB, free: 4.316 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003143/0.5818, allocations: 274.6 kB / 0.6496 GB, free: 4.027 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001722/0.582, allocations: 32 kB / 0.6496 GB, free: 3.996 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005859/0.5826, allocations: 39.98 kB / 0.6497 GB, free: 3.957 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000156/0.5827, allocations: 73.2 kB / 0.6497 GB, free: 3.887 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.501e-05/0.5828, allocations: 31.94 kB / 0.6498 GB, free: 3.855 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00132/0.5841, allocations: 0.9596 MB / 0.6507 GB, free: 2.902 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.5841, allocations: 0 / 0.6507 GB, free: 2.902 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001324/0.5855, allocations: 0.6245 MB / 0.6513 GB, free: 2.273 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.000218/0.5857, allocations: 163 kB / 0.6515 GB, free: 2.102 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001986/0.5877, allocations: 1.381 MB / 0.6528 GB, free: 0.7227 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.5877, allocations: 0 / 0.6528 GB, free: 0.7227 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008369/0.5885, allocations: 0.6244 MB / 0.6534 GB, free: 100 kB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00109/0.5896, allocations: 276.7 kB / 0.6537 GB, free: 15.83 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006638/0.5963, allocations: 3.933 MB / 0.6575 GB, free: 11.86 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001516/0.5978, allocations: 1.838 MB / 0.6593 GB, free: 9.992 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0007914/0.5986, allocations: 176.5 kB / 0.6595 GB, free: 9.816 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003409/0.599, allocations: 107.4 kB / 0.6596 GB, free: 9.711 MB / 474.7 MB Notification: Performance of SimCode: time 4.71e-07/0.599, allocations: 0 / 0.6596 GB, free: 9.711 MB / 474.7 MB Notification: Performance of Templates: time 0.02864/0.6276, allocations: 14.58 MB / 0.6738 GB, free: 11.14 MB / 490.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)