Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterNormalNoise.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.InventoryForresterNormalNoise,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterNormalNoise") translateModel(SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterNormalNoise,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterNormalNoise") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003812/0.003812, allocations: 169.9 kB / 15.11 MB, free: 6.039 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.125/1.125, allocations: 223.2 MB / 239 MB, free: 1.797 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.0008548/0.0008548, allocations: 93.92 kB / 290.2 MB, free: 13.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1269/0.1269, allocations: 28.84 MB / 370.2 MB, free: 13.93 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002568/0.0002569, allocations: 12 kB / 438.1 MB, free: 70.79 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06984/0.07011, allocations: 57.47 MB / 495.6 MB, free: 13.29 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2391/0.3093, allocations: 81.76 MB / 0.5638 GB, free: 10.31 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001737/0.3095, allocations: 67.47 kB / 0.5639 GB, free: 10.27 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09168/0.4012, allocations: 49.85 MB / 0.6126 GB, free: 0.918 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.4012, allocations: 0 / 0.6126 GB, free: 0.918 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001755/0.4014, allocations: 87.94 kB / 0.6126 GB, free: 0.832 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.003894/0.4053, allocations: 3.04 MB / 0.6156 GB, free: 13.72 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.611e-05/0.4054, allocations: 12.03 kB / 0.6156 GB, free: 13.71 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004394/0.4058, allocations: 414.9 kB / 0.616 GB, free: 13.3 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002368/0.4082, allocations: 2.025 MB / 0.618 GB, free: 11.22 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001613/0.4084, allocations: 283.4 kB / 0.6183 GB, free: 10.95 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003564/0.4087, allocations: 387.9 kB / 0.6186 GB, free: 10.57 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004569/0.4133, allocations: 3.593 MB / 0.6221 GB, free: 6.75 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.49e-05/0.4134, allocations: 7.938 kB / 0.6222 GB, free: 6.742 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002155/0.4136, allocations: 156 kB / 0.6223 GB, free: 6.59 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.627e-05/0.4136, allocations: 92 kB / 0.6224 GB, free: 6.5 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003361/0.417, allocations: 2.263 MB / 0.6246 GB, free: 4.23 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01259/0.4296, allocations: 14.46 MB / 0.6387 GB, free: 5.445 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002047/0.4317, allocations: 1.353 MB / 0.64 GB, free: 4.082 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.072e-05/0.4318, allocations: 13.31 kB / 0.6401 GB, free: 4.07 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009668/0.4327, allocations: 0.6576 MB / 0.6407 GB, free: 3.398 MB / 426.7 MB Notification: Performance of pre-optimization done (n=135): time 3.376e-06/0.4327, allocations: 0 / 0.6407 GB, free: 3.398 MB / 426.7 MB Notification: Performance of matching and sorting (n=135): time 0.002574/0.4353, allocations: 1.776 MB / 0.6424 GB, free: 1.617 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.406e-05/0.4354, allocations: 72.66 kB / 0.6425 GB, free: 1.535 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001452/0.4368, allocations: 1.285 MB / 0.6438 GB, free: 256 kB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.036e-05/0.4369, allocations: 49.7 kB / 0.6438 GB, free: 200 kB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009408/0.4379, allocations: 1.587 MB / 0.6454 GB, free: 14.59 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003357/0.4382, allocations: 496.8 kB / 0.6458 GB, free: 14.09 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.291e-05/0.4383, allocations: 40 kB / 0.6459 GB, free: 14.05 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.4384, allocations: 381.8 kB / 0.6462 GB, free: 13.68 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008912/0.4393, allocations: 0.5779 MB / 0.6468 GB, free: 13.1 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001151/0.4405, allocations: 1.081 MB / 0.6478 GB, free: 11.8 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001105/0.4416, allocations: 0.7654 MB / 0.6486 GB, free: 11.04 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.066e-06/0.4416, allocations: 4 kB / 0.6486 GB, free: 11.04 MB / 442.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.002698/0.4443, allocations: 1.964 MB / 0.6505 GB, free: 9.066 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.765e-05/0.4444, allocations: 21.11 kB / 0.6505 GB, free: 9.047 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.774e-05/0.4444, allocations: 16 kB / 0.6506 GB, free: 9.031 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.755e-05/0.4444, allocations: 27.94 kB / 0.6506 GB, free: 9.004 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001231/0.4457, allocations: 351.4 kB / 0.6509 GB, free: 8.66 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.897e-05/0.4457, allocations: 31.92 kB / 0.6509 GB, free: 8.629 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008181/0.4465, allocations: 154.5 kB / 0.6511 GB, free: 8.477 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001108/0.4467, allocations: 75.94 kB / 0.6512 GB, free: 8.402 MB / 442.7 MB Warning: Assuming fixed start value for the following 1 variables: NoiseNormal1.y:DISCRETE(fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 36 ($whenCondition1,$PRE.NoiseNormal1.y,NoiseNormal1.y,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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (235): * Single equations (assignments): 235 * 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.001728/0.4484, allocations: 0.6574 MB / 0.6518 GB, free: 7.738 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002284/0.4486, allocations: 177.8 kB / 0.652 GB, free: 7.562 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003931/0.449, allocations: 198.8 kB / 0.6522 GB, free: 7.363 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.08e-05/0.4491, allocations: 12 kB / 0.6522 GB, free: 7.352 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/0.4491, allocations: 0 / 0.6522 GB, free: 7.352 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.2e-05/0.4491, allocations: 11.97 kB / 0.6522 GB, free: 7.34 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004787/0.4539, allocations: 3.96 MB / 0.6561 GB, free: 3.309 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/0.4539, allocations: 7.984 kB / 0.6561 GB, free: 3.301 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001108/0.455, allocations: 227.7 kB / 0.6563 GB, free: 3.078 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.007e-06/0.455, allocations: 4 kB / 0.6563 GB, free: 3.074 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.132e-05/0.4551, allocations: 39.98 kB / 0.6563 GB, free: 3.035 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.042e-06/0.4551, allocations: 4 kB / 0.6563 GB, free: 3.031 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.4551, allocations: 0 / 0.6563 GB, free: 3.031 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002793/0.4579, allocations: 2.158 MB / 0.6584 GB, free: 0.8594 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002935/0.4582, allocations: 270.5 kB / 0.6587 GB, free: 0.5742 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001578/0.4584, allocations: 39.92 kB / 0.6587 GB, free: 0.5352 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005341/0.4589, allocations: 40 kB / 0.6588 GB, free: 0.4961 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001428/0.4591, allocations: 77.14 kB / 0.6588 GB, free: 432 kB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.285e-05/0.4592, allocations: 31.98 kB / 0.6589 GB, free: 400 kB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001276/0.4605, allocations: 0.9678 MB / 0.6598 GB, free: 15.43 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4605, allocations: 0 / 0.6598 GB, free: 15.43 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001305/0.4618, allocations: 0.6324 MB / 0.6604 GB, free: 14.79 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: 2 ($whenCondition1,NoiseNormal1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (135): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0002758/0.462, allocations: 174.7 kB / 0.6606 GB, free: 14.62 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002023/0.4641, allocations: 1.456 MB / 0.662 GB, free: 13.16 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.4641, allocations: 0 / 0.662 GB, free: 13.16 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008325/0.4649, allocations: 0.6595 MB / 0.6627 GB, free: 12.5 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009817/0.4659, allocations: 293.6 kB / 0.6629 GB, free: 12.22 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007269/0.4732, allocations: 6.389 MB / 0.6692 GB, free: 5.797 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00127/0.4745, allocations: 1.846 MB / 0.671 GB, free: 3.926 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0008051/0.4753, allocations: 172.6 kB / 0.6712 GB, free: 3.754 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003217/0.4756, allocations: 107.4 kB / 0.6713 GB, free: 3.648 MB / 458.7 MB Notification: Performance of SimCode: time 5.91e-07/0.4757, allocations: 3.938 kB / 0.6713 GB, free: 3.645 MB / 458.7 MB Notification: Performance of Templates: time 0.02519/0.5009, allocations: 14.69 MB / 0.6856 GB, free: 4.977 MB / 474.7 MB make -j1 -f SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterNormalNoise.makefile (rm -f SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterNormalNoise.pipe ; mkfifo SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterNormalNoise.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterNormalNoise.pipe >> ../files/SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterNormalNoise.sim & ./SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterNormalNoise -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterNormalNoise.pipe 2>&1)