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: "" <> buildModelFMU(SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterNormalNoise,fileNamePrefix="SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterNormalNoise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterNormalNoise,fileNamePrefix="SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterNormalNoise",fmuType="me",version="2.0",platforms={"static"}) [: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.003118/0.003118, allocations: 184 kB / 7.462 MB, free: 2.5 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.222/1.222, allocations: 221.4 MB / 229.3 MB, free: 3.016 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.001014/0.001013, allocations: 96.03 kB / 280.1 MB, free: 1.227 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1635/0.1635, allocations: 28.83 MB / 359.7 MB, free: 1.547 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2011/0.3647, allocations: 63.6 MB / 423.3 MB, free: 44.11 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.4741, allocations: 57.47 MB / 480.8 MB, free: 2.57 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2795/0.7537, allocations: 80.95 MB / 0.5486 GB, free: 8.57 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002438/0.754, allocations: 63.97 kB / 0.5486 GB, free: 8.508 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.1306/0.8846, allocations: 51.92 MB / 0.5993 GB, free: 4.398 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.293e-05/0.8847, allocations: 12 kB / 0.5993 GB, free: 4.387 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001102/0.8858, allocations: 418.8 kB / 0.5997 GB, free: 3.973 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003459/0.8893, allocations: 2.018 MB / 0.6017 GB, free: 1.902 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001253/0.8894, allocations: 120 kB / 0.6018 GB, free: 1.785 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004098/0.8899, allocations: 235.8 kB / 0.6021 GB, free: 1.555 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004205/0.8941, allocations: 1.874 MB / 0.6039 GB, free: 15.68 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005253/0.8993, allocations: 2.978 MB / 0.6068 GB, free: 12.47 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.96e-05/0.8994, allocations: 11.88 kB / 0.6068 GB, free: 12.46 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001956/0.8996, allocations: 8 kB / 0.6068 GB, free: 12.45 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.848e-05/0.8997, allocations: 95.94 kB / 0.6069 GB, free: 12.36 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01974/0.9195, allocations: 13.79 MB / 0.6204 GB, free: 14.25 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002084/0.9216, allocations: 0.8416 MB / 0.6212 GB, free: 13.4 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009127/0.9226, allocations: 0.549 MB / 0.6217 GB, free: 12.84 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.884e-05/0.9226, allocations: 13.31 kB / 0.6217 GB, free: 12.83 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001032/0.9237, allocations: 0.5771 MB / 0.6223 GB, free: 12.24 MB / 458.7 MB Notification: Performance of pre-optimization done (n=135): time 4.488e-06/0.9237, allocations: 4 kB / 0.6223 GB, free: 12.24 MB / 458.7 MB Notification: Performance of matching and sorting (n=135): time 0.002308/0.926, allocations: 1.163 MB / 0.6234 GB, free: 11.06 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.322e-05/0.9261, allocations: 68.62 kB / 0.6235 GB, free: 10.98 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002061/0.9281, allocations: 1.191 MB / 0.6247 GB, free: 9.793 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000129/0.9283, allocations: 25.7 kB / 0.6247 GB, free: 9.762 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001309/0.9296, allocations: 1.282 MB / 0.626 GB, free: 8.457 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006062/0.9302, allocations: 476.9 kB / 0.6264 GB, free: 7.984 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.082e-05/0.9303, allocations: 0 / 0.6264 GB, free: 7.984 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002041/0.9305, allocations: 381.9 kB / 0.6268 GB, free: 7.605 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009622/0.9315, allocations: 0.5117 MB / 0.6273 GB, free: 7.094 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001304/0.9328, allocations: 0.9958 MB / 0.6282 GB, free: 5.883 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001209/0.934, allocations: 0.6872 MB / 0.6289 GB, free: 5.199 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.043e-05/0.934, allocations: 7.938 kB / 0.6289 GB, free: 5.191 MB / 458.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003327/0.9374, allocations: 1.715 MB / 0.6306 GB, free: 3.469 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/0.9374, allocations: 4 kB / 0.6306 GB, free: 3.465 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.151e-05/0.9374, allocations: 16 kB / 0.6306 GB, free: 3.449 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.087e-05/0.9375, allocations: 28 kB / 0.6306 GB, free: 3.422 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001386/0.9389, allocations: 355.4 kB / 0.631 GB, free: 3.074 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.36e-05/0.9389, allocations: 32.14 kB / 0.631 GB, free: 3.043 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001127/0.94, allocations: 114.5 kB / 0.6311 GB, free: 2.93 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001326/0.9402, allocations: 76 kB / 0.6312 GB, free: 2.855 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.000375/0.9406, allocations: 192.3 kB / 0.6314 GB, free: 2.668 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002967/0.9409, allocations: 177.8 kB / 0.6315 GB, free: 2.492 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005318/0.9414, allocations: 182.8 kB / 0.6317 GB, free: 2.309 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.421e-05/0.9414, allocations: 12 kB / 0.6317 GB, free: 2.297 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.811e-05/0.9415, allocations: 7.906 kB / 0.6317 GB, free: 2.289 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.338e-05/0.9415, allocations: 11.91 kB / 0.6318 GB, free: 2.277 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00559/0.9471, allocations: 3.394 MB / 0.6351 GB, free: 14.83 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.9471, allocations: 0 / 0.6351 GB, free: 14.83 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001411/0.9485, allocations: 231.7 kB / 0.6353 GB, free: 14.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.398e-05/0.9486, allocations: 8 kB / 0.6353 GB, free: 14.59 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001037/0.9487, allocations: 27.92 kB / 0.6353 GB, free: 14.57 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.706e-06/0.9487, allocations: 4 kB / 0.6353 GB, free: 14.56 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.9487, allocations: 0 / 0.6353 GB, free: 14.56 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00343/0.9521, allocations: 1.969 MB / 0.6372 GB, free: 12.58 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0066/0.9588, allocations: 4.355 MB / 0.6415 GB, free: 8.211 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006406/0.9594, allocations: 274.4 kB / 0.6418 GB, free: 7.922 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000236/0.9597, allocations: 15.98 kB / 0.6418 GB, free: 7.906 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000839/0.9605, allocations: 8 kB / 0.6418 GB, free: 7.898 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001969/0.9607, allocations: 73.19 kB / 0.6419 GB, free: 7.828 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.363e-05/0.9608, allocations: 36 kB / 0.6419 GB, free: 7.793 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.001913/0.9628, allocations: 0.8743 MB / 0.6427 GB, free: 6.926 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002668/0.9654, allocations: 0.5737 MB / 0.6433 GB, free: 6.348 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.0004209/0.9659, allocations: 145.2 kB / 0.6434 GB, free: 6.199 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002515/0.9684, allocations: 1.309 MB / 0.6447 GB, free: 4.891 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.9684, allocations: 0 / 0.6447 GB, free: 4.891 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009111/0.9693, allocations: 0.614 MB / 0.6453 GB, free: 4.277 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00132/0.9706, allocations: 267.9 kB / 0.6456 GB, free: 4.02 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009338/0.98, allocations: 3.915 MB / 0.6494 GB, free: 40 kB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2275/1.208, allocations: 2.047 MB / 0.6514 GB, free: 172.3 MB / 474.7 MB Notification: Performance of SimCode: time 1.403e-06/1.208, allocations: 3.625 kB / 0.6514 GB, free: 172.3 MB / 474.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterNormalNoise_fmu --startTime=0 --stopTime=520 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterNormalNoise.fmu > SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterNormalNoise.pipe 2>&1)