Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYear.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.InventoryForresterSinOneYear,fileNamePrefix="SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterSinOneYear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYear,fileNamePrefix="SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterSinOneYear",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.004278/0.004278, allocations: 183.2 kB / 7.459 MB, free: 2.512 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.4 MB / 229.3 MB, free: 3.055 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.001071/0.001071, allocations: 101 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.1944/0.1944, allocations: 28.84 MB / 359.7 MB, free: 1.523 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.1915/0.386, allocations: 63.6 MB / 423.3 MB, free: 44.08 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.4894, allocations: 57.46 MB / 480.8 MB, free: 2.555 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3034/0.7928, allocations: 81.77 MB / 0.5494 GB, free: 7.715 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002367/0.7931, allocations: 71.95 kB / 0.5494 GB, free: 7.645 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.1231/0.9162, allocations: 52.16 MB / 0.6004 GB, free: 3.297 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.9163, allocations: 12 kB / 0.6004 GB, free: 3.285 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001189/0.9175, allocations: 418.9 kB / 0.6008 GB, free: 2.871 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004378/0.9219, allocations: 2.021 MB / 0.6028 GB, free: 0.7969 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001948/0.9221, allocations: 123.9 kB / 0.6029 GB, free: 0.6758 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009064/0.923, allocations: 227.8 kB / 0.6031 GB, free: 464 kB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005432/0.9285, allocations: 1.878 MB / 0.6049 GB, free: 14.57 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007724/0.9362, allocations: 2.97 MB / 0.6078 GB, free: 11.38 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001046/0.9364, allocations: 11.88 kB / 0.6078 GB, free: 11.37 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004747/0.9369, allocations: 4 kB / 0.6079 GB, free: 11.37 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.445e-05/0.937, allocations: 96 kB / 0.6079 GB, free: 11.27 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01952/0.9565, allocations: 13.79 MB / 0.6214 GB, free: 13.17 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001999/0.9585, allocations: 0.8338 MB / 0.6222 GB, free: 12.33 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000944/0.9595, allocations: 0.5554 MB / 0.6228 GB, free: 11.77 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.056e-05/0.9596, allocations: 17.3 kB / 0.6228 GB, free: 11.75 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.388e-05/0.9597, allocations: 47.88 kB / 0.6228 GB, free: 11.7 MB / 458.7 MB Notification: Performance of pre-optimization done (n=133): time 3.978e-06/0.9597, allocations: 0 / 0.6228 GB, free: 11.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=133): time 0.002559/0.9623, allocations: 1.155 MB / 0.624 GB, free: 10.53 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.76e-05/0.9623, allocations: 64.72 kB / 0.624 GB, free: 10.46 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002669/0.965, allocations: 1.195 MB / 0.6252 GB, free: 9.262 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001486/0.9652, allocations: 29.7 kB / 0.6252 GB, free: 9.227 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00119/0.9664, allocations: 1.282 MB / 0.6265 GB, free: 7.922 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006255/0.967, allocations: 480.8 kB / 0.6269 GB, free: 7.445 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001151/0.9671, allocations: 0 / 0.6269 GB, free: 7.445 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001967/0.9673, allocations: 373.9 kB / 0.6273 GB, free: 7.074 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001061/0.9684, allocations: 0.5117 MB / 0.6278 GB, free: 6.562 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001238/0.9697, allocations: 0.9817 MB / 0.6287 GB, free: 5.375 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00121/0.9709, allocations: 0.6817 MB / 0.6294 GB, free: 4.695 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.338e-05/0.9709, allocations: 4 kB / 0.6294 GB, free: 4.691 MB / 458.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.003356/0.9743, allocations: 1.692 MB / 0.6311 GB, free: 2.992 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/0.9743, allocations: 4 kB / 0.6311 GB, free: 2.988 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.416e-05/0.9743, allocations: 16 kB / 0.6311 GB, free: 2.973 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.404e-05/0.9744, allocations: 28 kB / 0.6311 GB, free: 2.945 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001505/0.9759, allocations: 355.9 kB / 0.6315 GB, free: 2.598 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.334e-05/0.976, allocations: 35.86 kB / 0.6315 GB, free: 2.562 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001195/0.9772, allocations: 110.6 kB / 0.6316 GB, free: 2.453 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001427/0.9773, allocations: 68 kB / 0.6317 GB, free: 2.387 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 33 (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 (232): * Single equations (assignments): 232 * 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.0003237/0.9776, allocations: 192.3 kB / 0.6318 GB, free: 2.195 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005197/0.9782, allocations: 173.8 kB / 0.632 GB, free: 2.023 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005924/0.9788, allocations: 186.7 kB / 0.6322 GB, free: 1.836 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.516e-05/0.9788, allocations: 16 kB / 0.6322 GB, free: 1.82 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.256e-05/0.9788, allocations: 3.938 kB / 0.6322 GB, free: 1.816 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.29e-05/0.9788, allocations: 3.984 kB / 0.6322 GB, free: 1.812 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005752/0.9846, allocations: 3.395 MB / 0.6355 GB, free: 14.36 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.9846, allocations: 0 / 0.6355 GB, free: 14.36 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001364/0.986, allocations: 231.7 kB / 0.6357 GB, free: 14.13 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.778e-05/0.986, allocations: 4 kB / 0.6357 GB, free: 14.13 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001077/0.9861, allocations: 19.98 kB / 0.6358 GB, free: 14.11 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.915e-06/0.9861, allocations: 7.906 kB / 0.6358 GB, free: 14.1 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.9862, allocations: 4 kB / 0.6358 GB, free: 14.1 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002984/0.9891, allocations: 1.966 MB / 0.6377 GB, free: 12.12 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005839/0.995, allocations: 4.318 MB / 0.6419 GB, free: 7.781 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005107/0.9955, allocations: 278.5 kB / 0.6422 GB, free: 7.488 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003065/0.9959, allocations: 12 kB / 0.6422 GB, free: 7.477 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007527/0.9966, allocations: 19.98 kB / 0.6422 GB, free: 7.457 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001667/0.9968, allocations: 69.11 kB / 0.6423 GB, free: 7.391 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.74e-05/0.9969, allocations: 31.98 kB / 0.6423 GB, free: 7.359 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.001597/0.9985, allocations: 0.8784 MB / 0.6432 GB, free: 6.488 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002282/1.001, allocations: 0.5698 MB / 0.6437 GB, free: 5.914 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 133 * 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 Backend phase and start with SimCode phase: time 0.0002396/1.001, allocations: 143 kB / 0.6439 GB, free: 5.766 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00223/1.003, allocations: 1.298 MB / 0.6451 GB, free: 4.469 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/1.003, allocations: 256 / 0.6451 GB, free: 4.469 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008591/1.004, allocations: 0.6101 MB / 0.6457 GB, free: 3.863 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001464/1.006, allocations: 267.8 kB / 0.646 GB, free: 3.605 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2169/1.223, allocations: 3.909 MB / 0.6498 GB, free: 172.4 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004134/1.227, allocations: 2.052 MB / 0.6518 GB, free: 171.7 MB / 474.7 MB Notification: Performance of SimCode: time 2.014e-06/1.227, allocations: 0 / 0.6518 GB, free: 171.7 MB / 474.7 MB (rm -f SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYear.pipe ; mkfifo SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYear.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYear.pipe >> ../files/SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYear.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterSinOneYear_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterSinOneYear.fmu > SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYear.pipe 2>&1)