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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003555/0.003555, allocations: 174.2 kB / 7.458 MB, free: 2.16 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.317/1.317, allocations: 221.4 MB / 229.3 MB, free: 3.258 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.0009726/0.0009726, allocations: 91.7 kB / 280.1 MB, free: 1.273 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2041/0.2041, allocations: 28.83 MB / 359.7 MB, free: 1.559 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.344e-06/7.374e-06, allocations: 0 / 423.2 MB, free: 44.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.1369, allocations: 57.47 MB / 480.7 MB, free: 2.664 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3774/0.5144, allocations: 80.95 MB / 0.5485 GB, free: 8.727 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002865/0.5148, allocations: 63.97 kB / 0.5485 GB, free: 8.664 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.1163/0.631, allocations: 49.04 MB / 0.5964 GB, free: 7.496 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002498/0.6314, allocations: 87.98 kB / 0.5965 GB, free: 7.41 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.006122/0.6375, allocations: 2.793 MB / 0.5992 GB, free: 4.555 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.497e-05/0.6376, allocations: 8.031 kB / 0.5992 GB, free: 4.547 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001222/0.6388, allocations: 418.8 kB / 0.5996 GB, free: 4.133 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003763/0.6426, allocations: 2.025 MB / 0.6016 GB, free: 2.055 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001271/0.6427, allocations: 116 kB / 0.6017 GB, free: 1.941 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004069/0.6431, allocations: 235.8 kB / 0.602 GB, free: 1.711 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004517/0.6476, allocations: 1.878 MB / 0.6038 GB, free: 15.83 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005187/0.6529, allocations: 2.966 MB / 0.6067 GB, free: 12.64 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.095e-05/0.653, allocations: 15.88 kB / 0.6067 GB, free: 12.62 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001821/0.6531, allocations: 12 kB / 0.6067 GB, free: 12.61 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.32e-05/0.6532, allocations: 92 kB / 0.6068 GB, free: 12.52 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01817/0.6714, allocations: 13.79 MB / 0.6203 GB, free: 14.41 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001869/0.6733, allocations: 0.8416 MB / 0.6211 GB, free: 13.57 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008544/0.6742, allocations: 0.5491 MB / 0.6216 GB, free: 13.01 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.144e-05/0.6743, allocations: 21.25 kB / 0.6217 GB, free: 12.99 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009328/0.6752, allocations: 0.5732 MB / 0.6222 GB, free: 12.41 MB / 458.7 MB Notification: Performance of pre-optimization done (n=135): time 4.298e-06/0.6752, allocations: 4 kB / 0.6222 GB, free: 12.4 MB / 458.7 MB Notification: Performance of matching and sorting (n=135): time 0.002223/0.6775, allocations: 1.159 MB / 0.6233 GB, free: 11.23 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.199e-05/0.6775, allocations: 68.62 kB / 0.6234 GB, free: 11.15 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002074/0.6796, allocations: 1.203 MB / 0.6246 GB, free: 9.949 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001158/0.6798, allocations: 25.7 kB / 0.6246 GB, free: 9.918 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0015/0.6813, allocations: 1.278 MB / 0.6259 GB, free: 8.617 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006074/0.6819, allocations: 476.9 kB / 0.6263 GB, free: 8.145 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.83e-05/0.6819, allocations: 0 / 0.6263 GB, free: 8.145 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002466/0.6822, allocations: 381.9 kB / 0.6267 GB, free: 7.766 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009951/0.6832, allocations: 0.5117 MB / 0.6272 GB, free: 7.254 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001391/0.6846, allocations: 0.9881 MB / 0.6281 GB, free: 6.051 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001159/0.6858, allocations: 0.6949 MB / 0.6288 GB, free: 5.359 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.696e-06/0.6858, allocations: 8 kB / 0.6288 GB, free: 5.352 MB / 458.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003074/0.6889, allocations: 1.711 MB / 0.6305 GB, free: 3.633 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.6889, allocations: 4 kB / 0.6305 GB, free: 3.629 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.261e-05/0.6889, allocations: 16 kB / 0.6305 GB, free: 3.613 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.641e-05/0.689, allocations: 28 kB / 0.6305 GB, free: 3.586 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001387/0.6904, allocations: 355.4 kB / 0.6309 GB, free: 3.238 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.899e-05/0.6904, allocations: 35.86 kB / 0.6309 GB, free: 3.203 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001058/0.6915, allocations: 122.7 kB / 0.631 GB, free: 3.082 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001205/0.6916, allocations: 72 kB / 0.6311 GB, free: 3.012 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.0003637/0.692, allocations: 180.4 kB / 0.6313 GB, free: 2.832 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000245/0.6922, allocations: 177.8 kB / 0.6314 GB, free: 2.656 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005212/0.6928, allocations: 186.7 kB / 0.6316 GB, free: 2.469 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.365e-05/0.6928, allocations: 19.94 kB / 0.6316 GB, free: 2.449 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.688e-05/0.6928, allocations: 3.906 kB / 0.6316 GB, free: 2.445 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.35e-05/0.6928, allocations: 7.969 kB / 0.6317 GB, free: 2.438 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005178/0.698, allocations: 3.395 MB / 0.635 GB, free: 14.98 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.513e-06/0.6981, allocations: 0 / 0.635 GB, free: 14.98 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001295/0.6994, allocations: 231.7 kB / 0.6352 GB, free: 14.76 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.346e-05/0.6994, allocations: 7.984 kB / 0.6352 GB, free: 14.75 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.561e-05/0.6995, allocations: 16 kB / 0.6352 GB, free: 14.73 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.682e-06/0.6995, allocations: 4 kB / 0.6352 GB, free: 14.73 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.6995, allocations: 0 / 0.6352 GB, free: 14.73 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003046/0.7026, allocations: 1.977 MB / 0.6371 GB, free: 12.74 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004709/0.703, allocations: 282.4 kB / 0.6374 GB, free: 12.45 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002062/0.7033, allocations: 16 kB / 0.6374 GB, free: 12.43 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006191/0.7039, allocations: 19.92 kB / 0.6375 GB, free: 12.41 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001629/0.7041, allocations: 69.14 kB / 0.6375 GB, free: 12.34 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.682e-05/0.7041, allocations: 28 kB / 0.6375 GB, free: 12.32 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.001515/0.7057, allocations: 0.8743 MB / 0.6384 GB, free: 11.45 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001806/0.7075, allocations: 0.5737 MB / 0.639 GB, free: 10.87 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.0004152/0.7079, allocations: 152.1 kB / 0.6391 GB, free: 10.71 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00227/0.7102, allocations: 1.311 MB / 0.6404 GB, free: 9.406 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.7102, allocations: 0 / 0.6404 GB, free: 9.406 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000871/0.7111, allocations: 0.614 MB / 0.641 GB, free: 8.789 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001296/0.7124, allocations: 264.3 kB / 0.6412 GB, free: 8.535 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008824/0.7212, allocations: 3.778 MB / 0.6449 GB, free: 4.699 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002307/0.7236, allocations: 1.966 MB / 0.6468 GB, free: 2.703 MB / 474.7 MB Notification: Performance of SimCode: time 1.373e-06/0.7236, allocations: 0 / 0.6468 GB, free: 2.703 MB / 474.7 MB Notification: Performance of Templates: time 0.2556/0.9792, allocations: 16.31 MB / 0.6628 GB, free: 171.6 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)