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.001134/0.001134, allocations: 174.8 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.211/1.211, 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.0008333/0.0008333, allocations: 96.03 kB / 285.6 MB, free: 12.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3138/0.3138, allocations: 28.83 MB / 365.3 MB, free: 42.07 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.891e-05/1.891e-05, allocations: 0 / 430.7 MB, free: 4.422 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09852/0.09855, allocations: 57.47 MB / 488.1 MB, free: 10.88 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.312/0.4105, allocations: 81.69 MB / 0.5565 GB, free: 23.8 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002047/0.4108, allocations: 60.7 kB / 0.5565 GB, free: 23.79 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1031/0.5139, allocations: 49.88 MB / 0.6052 GB, free: 2.07 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.514, allocations: 0 / 0.6052 GB, free: 2.07 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003513/0.5143, allocations: 91.94 kB / 0.6053 GB, free: 1.98 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.00674/0.5211, allocations: 2.737 MB / 0.608 GB, free: 15.43 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/0.5212, allocations: 12.03 kB / 0.608 GB, free: 15.42 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001347/0.5225, allocations: 418.9 kB / 0.6084 GB, free: 15 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00395/0.5265, allocations: 2.02 MB / 0.6104 GB, free: 13.18 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002689/0.5268, allocations: 283.4 kB / 0.6106 GB, free: 12.9 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000834/0.5276, allocations: 383.9 kB / 0.611 GB, free: 12.52 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008034/0.5357, allocations: 3.503 MB / 0.6144 GB, free: 8.789 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.758e-05/0.5358, allocations: 11.88 kB / 0.6144 GB, free: 8.777 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004394/0.5362, allocations: 156 kB / 0.6146 GB, free: 8.625 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.782e-05/0.5363, allocations: 92 kB / 0.6147 GB, free: 8.535 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004777/0.5411, allocations: 2.147 MB / 0.6168 GB, free: 6.383 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01949/0.5606, allocations: 14.46 MB / 0.6309 GB, free: 7.59 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002898/0.5635, allocations: 1.292 MB / 0.6322 GB, free: 6.285 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001141/0.5647, allocations: 0.5768 MB / 0.6327 GB, free: 5.703 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.032e-05/0.5648, allocations: 13.31 kB / 0.6327 GB, free: 5.688 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001342/0.5662, allocations: 0.6342 MB / 0.6334 GB, free: 5.043 MB / 442.7 MB Notification: Performance of pre-optimization done (n=135): time 4.809e-06/0.5662, allocations: 0 / 0.6334 GB, free: 5.043 MB / 442.7 MB Notification: Performance of matching and sorting (n=135): time 0.002645/0.5688, allocations: 1.236 MB / 0.6346 GB, free: 3.797 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.94e-05/0.5689, allocations: 68.72 kB / 0.6346 GB, free: 3.719 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002592/0.5715, allocations: 1.269 MB / 0.6359 GB, free: 2.449 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001348/0.5717, allocations: 53.7 kB / 0.6359 GB, free: 2.391 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001476/0.5731, allocations: 1.579 MB / 0.6375 GB, free: 0.7891 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005056/0.5737, allocations: 496.8 kB / 0.6379 GB, free: 304 kB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001145/0.5738, allocations: 40 kB / 0.638 GB, free: 264 kB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001831/0.574, allocations: 381.8 kB / 0.6383 GB, free: 15.88 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001001/0.575, allocations: 0.5507 MB / 0.6389 GB, free: 15.33 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001282/0.5763, allocations: 1.035 MB / 0.6399 GB, free: 14.09 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001224/0.5775, allocations: 0.7379 MB / 0.6406 GB, free: 13.35 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.314e-05/0.5775, allocations: 8 kB / 0.6406 GB, free: 13.34 MB / 458.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.00329/0.5808, allocations: 1.894 MB / 0.6425 GB, free: 11.44 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.756e-05/0.5809, allocations: 12 kB / 0.6425 GB, free: 11.43 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.277e-05/0.5809, allocations: 19.94 kB / 0.6425 GB, free: 11.41 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.533e-05/0.581, allocations: 24 kB / 0.6425 GB, free: 11.39 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001329/0.5823, allocations: 355.9 kB / 0.6429 GB, free: 11.04 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.084e-05/0.5824, allocations: 35.92 kB / 0.6429 GB, free: 11 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001089/0.5834, allocations: 150.6 kB / 0.643 GB, free: 10.86 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001271/0.5836, allocations: 72 kB / 0.6431 GB, free: 10.79 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.0003596/0.584, allocations: 256.2 kB / 0.6433 GB, free: 10.53 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003964/0.5844, allocations: 177.7 kB / 0.6435 GB, free: 10.36 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000572/0.5849, allocations: 206.7 kB / 0.6437 GB, free: 10.15 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.434e-05/0.585, allocations: 20 kB / 0.6437 GB, free: 10.13 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.327e-06/0.585, allocations: 0 / 0.6437 GB, free: 10.13 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.297e-05/0.585, allocations: 3.984 kB / 0.6437 GB, free: 10.12 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006652/0.5916, allocations: 3.897 MB / 0.6475 GB, free: 6.156 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.661e-06/0.5917, allocations: 0 / 0.6475 GB, free: 6.156 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001291/0.593, allocations: 223.7 kB / 0.6478 GB, free: 5.938 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.99e-05/0.593, allocations: 8 kB / 0.6478 GB, free: 5.93 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001219/0.5931, allocations: 39.98 kB / 0.6478 GB, free: 5.891 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.808e-06/0.5932, allocations: 12 kB / 0.6478 GB, free: 5.879 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.5932, allocations: 0 / 0.6478 GB, free: 5.879 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003001/0.5962, allocations: 2.06 MB / 0.6498 GB, free: 3.809 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004759/0.5967, allocations: 274.5 kB / 0.6501 GB, free: 3.52 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002732/0.5969, allocations: 36 kB / 0.6501 GB, free: 3.484 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007262/0.5977, allocations: 35.98 kB / 0.6502 GB, free: 3.449 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001818/0.5979, allocations: 77.2 kB / 0.6502 GB, free: 3.371 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.267e-05/0.598, allocations: 32 kB / 0.6503 GB, free: 3.34 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001867/0.5998, allocations: 0.9556 MB / 0.6512 GB, free: 2.391 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5998, allocations: 0 / 0.6512 GB, free: 2.391 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001902/0.6018, allocations: 0.6362 MB / 0.6518 GB, free: 1.75 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 () * 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.0003496/0.6021, allocations: 173.1 kB / 0.652 GB, free: 1.574 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002465/0.6046, allocations: 1.38 MB / 0.6533 GB, free: 196 kB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.6046, allocations: 0 / 0.6533 GB, free: 196 kB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009125/0.6055, allocations: 0.6339 MB / 0.6539 GB, free: 15.56 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001209/0.6067, allocations: 290.4 kB / 0.6542 GB, free: 15.28 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007509/0.6143, allocations: 3.92 MB / 0.6581 GB, free: 11.32 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001891/0.6162, allocations: 1.842 MB / 0.6599 GB, free: 9.453 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001006/0.6172, allocations: 180.5 kB / 0.66 GB, free: 9.273 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004247/0.6176, allocations: 107.4 kB / 0.6601 GB, free: 9.168 MB / 474.7 MB Notification: Performance of SimCode: time 1.182e-06/0.6176, allocations: 0 / 0.6601 GB, free: 9.168 MB / 474.7 MB Notification: Performance of Templates: time 0.02922/0.6469, allocations: 14.72 MB / 0.6745 GB, free: 10.48 MB / 490.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)