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.001411/0.001411, 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.292/1.292, allocations: 221.5 MB / 229.6 MB, free: 3.117 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.0009307/0.0009307, allocations: 91.78 kB / 280.5 MB, free: 1.125 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1677/0.1677, allocations: 28.85 MB / 360.1 MB, free: 1.41 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.183e-05/1.181e-05, allocations: 0 / 423.8 MB, free: 43.83 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1046, allocations: 57.48 MB / 481.2 MB, free: 2.293 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3362/0.4408, allocations: 81.03 MB / 0.5491 GB, free: 8.191 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002419/0.4411, allocations: 67.97 kB / 0.5492 GB, free: 8.125 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1063/0.5475, allocations: 49.38 MB / 0.5974 GB, free: 6.621 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.178e-06/0.5475, allocations: 3.984 kB / 0.5974 GB, free: 6.617 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001986/0.5477, allocations: 91.98 kB / 0.5975 GB, free: 6.527 MB / 426.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.004153/0.5519, allocations: 2.744 MB / 0.6002 GB, free: 3.723 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/0.5519, allocations: 11.98 kB / 0.6002 GB, free: 3.711 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005403/0.5525, allocations: 414.9 kB / 0.6006 GB, free: 3.301 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002598/0.5551, allocations: 2.017 MB / 0.6025 GB, free: 1.23 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001105/0.5552, allocations: 120 kB / 0.6027 GB, free: 1.113 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003383/0.5556, allocations: 239.8 kB / 0.6029 GB, free: 0.8789 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003318/0.5589, allocations: 1.874 MB / 0.6047 GB, free: 15 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004606/0.5635, allocations: 2.966 MB / 0.6076 GB, free: 11.8 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.889e-05/0.5636, allocations: 15.88 kB / 0.6076 GB, free: 11.79 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001691/0.5638, allocations: 8 kB / 0.6076 GB, free: 11.78 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.563e-05/0.5638, allocations: 92 kB / 0.6077 GB, free: 11.69 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01659/0.5804, allocations: 13.88 MB / 0.6213 GB, free: 13.5 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002285/0.5828, allocations: 1.237 MB / 0.6225 GB, free: 12.25 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007979/0.5836, allocations: 0.5458 MB / 0.623 GB, free: 11.7 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.06e-05/0.5837, allocations: 17.31 kB / 0.623 GB, free: 11.69 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001029/0.5847, allocations: 0.5849 MB / 0.6236 GB, free: 11.09 MB / 458.7 MB Notification: Performance of pre-optimization done (n=135): time 5.17e-06/0.5847, allocations: 0 / 0.6236 GB, free: 11.09 MB / 458.7 MB Notification: Performance of matching and sorting (n=135): time 0.002032/0.5868, allocations: 1.169 MB / 0.6247 GB, free: 9.91 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.399e-05/0.5868, allocations: 64.72 kB / 0.6248 GB, free: 9.836 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001629/0.5885, allocations: 1.187 MB / 0.626 GB, free: 8.648 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 8.812e-05/0.5886, allocations: 29.64 kB / 0.626 GB, free: 8.613 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001333/0.5899, allocations: 1.579 MB / 0.6275 GB, free: 7.012 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004307/0.5904, allocations: 480.9 kB / 0.628 GB, free: 6.535 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.096e-05/0.5904, allocations: 0 / 0.628 GB, free: 6.535 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001756/0.5906, allocations: 377.8 kB / 0.6284 GB, free: 6.16 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007943/0.5914, allocations: 0.5156 MB / 0.6289 GB, free: 5.645 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001096/0.5925, allocations: 0.9876 MB / 0.6298 GB, free: 4.445 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001023/0.5936, allocations: 0.6989 MB / 0.6305 GB, free: 3.75 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.727e-06/0.5936, allocations: 4 kB / 0.6305 GB, free: 3.746 MB / 458.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.002525/0.5961, allocations: 1.718 MB / 0.6322 GB, free: 2.02 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.65e-05/0.5961, allocations: 15.94 kB / 0.6322 GB, free: 2.004 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.835e-05/0.5962, allocations: 16 kB / 0.6322 GB, free: 1.988 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.964e-05/0.5962, allocations: 24 kB / 0.6322 GB, free: 1.965 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001305/0.5975, allocations: 348 kB / 0.6326 GB, free: 1.625 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.194e-05/0.5976, allocations: 39.86 kB / 0.6326 GB, free: 1.586 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008404/0.5984, allocations: 110.6 kB / 0.6327 GB, free: 1.477 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001212/0.5985, allocations: 75.98 kB / 0.6328 GB, free: 1.402 MB / 458.7 MB Warning: Assuming fixed start value for the following 1 variables: NoiseNormal1.y:DISCRETE(fixed = false ) 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 () * 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.0003175/0.5989, allocations: 194.7 kB / 0.633 GB, free: 1.211 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002207/0.5991, allocations: 181.7 kB / 0.6331 GB, free: 1.031 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004992/0.5996, allocations: 182.8 kB / 0.6333 GB, free: 0.8477 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.598e-06/0.5996, allocations: 16 kB / 0.6333 GB, free: 0.832 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.085e-05/0.5996, allocations: 0 / 0.6333 GB, free: 0.832 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.232e-05/0.5997, allocations: 7.969 kB / 0.6333 GB, free: 0.8242 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004498/0.6042, allocations: 3.409 MB / 0.6367 GB, free: 13.36 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/0.6042, allocations: 0 / 0.6367 GB, free: 13.36 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001223/0.6054, allocations: 219.7 kB / 0.6369 GB, free: 13.15 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.234e-05/0.6054, allocations: 4 kB / 0.6369 GB, free: 13.14 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.712e-05/0.6055, allocations: 23.98 kB / 0.6369 GB, free: 13.12 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.282e-06/0.6055, allocations: 8 kB / 0.6369 GB, free: 13.11 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.6055, allocations: 0 / 0.6369 GB, free: 13.11 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002626/0.6082, allocations: 1.974 MB / 0.6388 GB, free: 11.12 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003214/0.6085, allocations: 270.5 kB / 0.6391 GB, free: 10.84 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001788/0.6087, allocations: 15.98 kB / 0.6391 GB, free: 10.82 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005817/0.6093, allocations: 12 kB / 0.6391 GB, free: 10.81 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001533/0.6094, allocations: 85.19 kB / 0.6392 GB, free: 10.73 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.562e-05/0.6095, allocations: 31.94 kB / 0.6392 GB, free: 10.7 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001282/0.6108, allocations: 0.8743 MB / 0.6401 GB, free: 9.828 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6108, allocations: 0 / 0.6401 GB, free: 9.828 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001419/0.6122, allocations: 0.5737 MB / 0.6407 GB, free: 9.25 MB / 474.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 () * 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.0003264/0.6126, allocations: 150.5 kB / 0.6408 GB, free: 9.098 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002019/0.6146, allocations: 1.297 MB / 0.6421 GB, free: 7.805 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.6146, allocations: 4.125 kB / 0.6421 GB, free: 7.801 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007742/0.6154, allocations: 0.6023 MB / 0.6427 GB, free: 7.199 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001166/0.6166, allocations: 276.6 kB / 0.6429 GB, free: 6.93 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006476/0.6231, allocations: 3.865 MB / 0.6467 GB, free: 3.016 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001369/0.6245, allocations: 1.842 MB / 0.6485 GB, free: 1.145 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0009337/0.6254, allocations: 176.5 kB / 0.6487 GB, free: 0.9688 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000329/0.6257, allocations: 107.4 kB / 0.6488 GB, free: 0.8633 MB / 474.7 MB Notification: Performance of SimCode: time 5.91e-07/0.6258, allocations: 4 kB / 0.6488 GB, free: 0.8594 MB / 474.7 MB Notification: Performance of Templates: time 0.2698/0.8955, allocations: 13.3 MB / 0.6618 GB, free: 115.2 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)