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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo", uses=false) Using package SystemDynamics with version 2.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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 3.2.3+maint.om/package.mo): time 0.0008686/0.0008687, allocations: 179.9 kB / 16.12 MB, free: 5.57 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.177/1.177, allocations: 205.4 MB / 222.3 MB, free: 13.74 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006987/0.0006988, allocations: 90.23 kB / 270.6 MB, free: 13.25 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo): time 0.1378/0.1378, allocations: 28.83 MB / 347.7 MB, free: 9.879 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003156/0.0003156, allocations: 8 kB / 413 MB, free: 35.58 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07189/0.07221, allocations: 54.66 MB / 467.7 MB, free: 12.88 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2427/0.315, allocations: 80.97 MB / 0.5358 GB, free: 16.66 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001701/0.3152, allocations: 65.88 kB / 0.5359 GB, free: 16.66 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08611/0.4013, allocations: 49.83 MB / 0.5845 GB, free: 11.7 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.4014, allocations: 0 / 0.5845 GB, free: 11.7 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001715/0.4015, allocations: 88.16 kB / 0.5846 GB, free: 11.61 MB / 378.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.004094/0.4056, allocations: 3.014 MB / 0.5875 GB, free: 8.723 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.4057, allocations: 12.03 kB / 0.5876 GB, free: 8.711 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004642/0.4062, allocations: 415.9 kB / 0.588 GB, free: 8.301 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002437/0.4086, allocations: 2.086 MB / 0.59 GB, free: 6.199 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001798/0.4088, allocations: 283.8 kB / 0.5903 GB, free: 5.922 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003681/0.4092, allocations: 384.3 kB / 0.5906 GB, free: 5.547 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00488/0.4141, allocations: 3.613 MB / 0.5942 GB, free: 1.707 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.837e-05/0.4141, allocations: 12.06 kB / 0.5942 GB, free: 1.695 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000228/0.4144, allocations: 163.9 kB / 0.5943 GB, free: 1.535 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.828e-05/0.4144, allocations: 99.94 kB / 0.5944 GB, free: 1.438 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003611/0.4181, allocations: 2.257 MB / 0.5966 GB, free: 15.18 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01313/0.4312, allocations: 14.47 MB / 0.6108 GB, free: 480 kB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002178/0.4334, allocations: 1.353 MB / 0.6121 GB, free: 15.11 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008611/0.4343, allocations: 0.6261 MB / 0.6127 GB, free: 14.48 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.433e-05/0.4344, allocations: 13.31 kB / 0.6127 GB, free: 14.47 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001076/0.4354, allocations: 0.669 MB / 0.6134 GB, free: 13.79 MB / 410.7 MB Notification: Performance of pre-optimization done (n=135): time 3.707e-06/0.4355, allocations: 3.938 kB / 0.6134 GB, free: 13.79 MB / 410.7 MB Notification: Performance of matching and sorting (n=135): time 0.002677/0.4381, allocations: 1.776 MB / 0.6151 GB, free: 12 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.176e-05/0.4382, allocations: 64.72 kB / 0.6152 GB, free: 11.93 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001689/0.4399, allocations: 1.465 MB / 0.6166 GB, free: 10.46 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.076e-05/0.44, allocations: 53.7 kB / 0.6166 GB, free: 10.4 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009579/0.4409, allocations: 1.586 MB / 0.6182 GB, free: 8.801 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003422/0.4413, allocations: 492 kB / 0.6187 GB, free: 8.324 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.532e-05/0.4414, allocations: 36 kB / 0.6187 GB, free: 8.289 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.4415, allocations: 381.9 kB / 0.6191 GB, free: 7.91 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000917/0.4424, allocations: 0.5779 MB / 0.6196 GB, free: 7.332 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001182/0.4436, allocations: 1.089 MB / 0.6207 GB, free: 6.035 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005841/0.4495, allocations: 3.089 MB / 0.6237 GB, free: 2.738 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.057e-06/0.4495, allocations: 12 kB / 0.6237 GB, free: 2.727 MB / 410.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.00274/0.4522, allocations: 1.964 MB / 0.6256 GB, free: 0.7539 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.028e-05/0.4523, allocations: 8 kB / 0.6256 GB, free: 0.7461 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.756e-05/0.4523, allocations: 16 kB / 0.6256 GB, free: 0.7305 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.902e-05/0.4523, allocations: 31.88 kB / 0.6257 GB, free: 0.6992 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00113/0.4535, allocations: 352 kB / 0.626 GB, free: 364 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.957e-05/0.4535, allocations: 35.92 kB / 0.626 GB, free: 328 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006934/0.4542, allocations: 146.6 kB / 0.6262 GB, free: 180 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.757e-05/0.4543, allocations: 75.94 kB / 0.6263 GB, free: 104 kB / 410.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.00111/0.4554, allocations: 0.6574 MB / 0.6269 GB, free: 15.44 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002057/0.4556, allocations: 177.8 kB / 0.6271 GB, free: 15.26 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003373/0.456, allocations: 202.7 kB / 0.6273 GB, free: 15.05 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.057e-05/0.456, allocations: 16 kB / 0.6273 GB, free: 15.04 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.456, allocations: 0 / 0.6273 GB, free: 15.04 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.237e-05/0.456, allocations: 7.969 kB / 0.6273 GB, free: 15.03 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004682/0.4607, allocations: 3.966 MB / 0.6312 GB, free: 11.03 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.4607, allocations: 3.938 kB / 0.6312 GB, free: 11.02 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001098/0.4618, allocations: 227.7 kB / 0.6314 GB, free: 10.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.612e-06/0.4619, allocations: 7.938 kB / 0.6314 GB, free: 10.79 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.457e-05/0.462, allocations: 35.98 kB / 0.6314 GB, free: 10.76 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.921e-06/0.462, allocations: 8 kB / 0.6314 GB, free: 10.75 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.462, allocations: 0 / 0.6314 GB, free: 10.75 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002851/0.4648, allocations: 2.158 MB / 0.6335 GB, free: 8.578 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002525/0.4651, allocations: 274.5 kB / 0.6338 GB, free: 8.289 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001601/0.4653, allocations: 39.98 kB / 0.6338 GB, free: 8.25 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000505/0.4658, allocations: 28 kB / 0.6339 GB, free: 8.223 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001383/0.4659, allocations: 77.14 kB / 0.6339 GB, free: 8.148 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.588e-05/0.466, allocations: 35.98 kB / 0.634 GB, free: 8.113 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001178/0.4672, allocations: 0.9717 MB / 0.6349 GB, free: 7.148 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4672, allocations: 0 / 0.6349 GB, free: 7.148 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001128/0.4683, allocations: 0.6285 MB / 0.6355 GB, free: 6.516 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: 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.0002597/0.4686, allocations: 176.2 kB / 0.6357 GB, free: 6.336 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001974/0.4706, allocations: 1.456 MB / 0.6371 GB, free: 4.883 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.4706, allocations: 0 / 0.6371 GB, free: 4.883 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008566/0.4714, allocations: 0.6635 MB / 0.6378 GB, free: 4.219 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001154/0.4726, allocations: 305.6 kB / 0.6381 GB, free: 3.918 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007032/0.4796, allocations: 6.392 MB / 0.6443 GB, free: 13.49 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001269/0.4809, allocations: 1.776 MB / 0.646 GB, free: 11.68 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0007392/0.4817, allocations: 180.5 kB / 0.6462 GB, free: 11.5 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003075/0.482, allocations: 103.4 kB / 0.6463 GB, free: 11.4 MB / 442.7 MB Notification: Performance of SimCode: time 4.11e-07/0.482, allocations: 0 / 0.6463 GB, free: 11.4 MB / 442.7 MB Notification: Performance of Templates: time 0.02462/0.5066, allocations: 14.76 MB / 0.6607 GB, free: 12.63 MB / 458.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)