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 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.InventoryForresterSinOneYear,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYear") translateModel(SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYear,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008785/0.0008823, allocations: 172.7 kB / 16.11 MB, free: 5.695 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.137/1.137, allocations: 205.4 MB / 222.3 MB, free: 9.055 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.0007641/0.0007641, allocations: 96.38 kB / 270.6 MB, free: 8.277 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo): time 0.1365/0.1365, allocations: 28.82 MB / 347.7 MB, free: 11.01 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.000315/0.000315, allocations: 16 kB / 413 MB, free: 47.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06809/0.06842, allocations: 54.64 MB / 467.7 MB, free: 8.887 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2221/0.2906, allocations: 81.83 MB / 0.5366 GB, free: 4.668 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001804/0.2908, allocations: 67.97 kB / 0.5367 GB, free: 4.602 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1016/0.3924, allocations: 50.05 MB / 0.5856 GB, free: 2.426 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3924, allocations: 0 / 0.5856 GB, free: 2.426 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002219/0.3927, allocations: 96.14 kB / 0.5857 GB, free: 2.332 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.005013/0.3977, allocations: 3.01 MB / 0.5886 GB, free: 15.25 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.379e-05/0.3977, allocations: 8.031 kB / 0.5886 GB, free: 15.24 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007103/0.3984, allocations: 415.9 kB / 0.589 GB, free: 14.83 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002718/0.4012, allocations: 2.091 MB / 0.591 GB, free: 12.69 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001738/0.4013, allocations: 279.8 kB / 0.5913 GB, free: 12.41 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000469/0.4018, allocations: 380.3 kB / 0.5917 GB, free: 12.04 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0052/0.407, allocations: 3.616 MB / 0.5952 GB, free: 8.203 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.693e-05/0.4071, allocations: 8.125 kB / 0.5952 GB, free: 8.195 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002248/0.4073, allocations: 159.9 kB / 0.5954 GB, free: 8.039 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.845e-05/0.4074, allocations: 99.92 kB / 0.5955 GB, free: 7.941 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003824/0.4112, allocations: 2.279 MB / 0.5977 GB, free: 5.656 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01349/0.4247, allocations: 14.47 MB / 0.6118 GB, free: 6.855 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00217/0.4269, allocations: 1.353 MB / 0.6131 GB, free: 5.496 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008606/0.4278, allocations: 0.6187 MB / 0.6138 GB, free: 4.879 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.852e-05/0.4279, allocations: 13.31 kB / 0.6138 GB, free: 4.863 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.472e-05/0.4279, allocations: 43.88 kB / 0.6138 GB, free: 4.812 MB / 442.7 MB Notification: Performance of pre-optimization done (n=133): time 3.125e-06/0.4279, allocations: 0 / 0.6138 GB, free: 4.812 MB / 442.7 MB Notification: Performance of matching and sorting (n=133): time 0.002703/0.4306, allocations: 1.788 MB / 0.6156 GB, free: 3.02 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.884e-05/0.4307, allocations: 68.72 kB / 0.6156 GB, free: 2.938 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001832/0.4325, allocations: 1.481 MB / 0.6171 GB, free: 1.453 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.111e-05/0.4326, allocations: 49.7 kB / 0.6171 GB, free: 1.398 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008406/0.4335, allocations: 1.579 MB / 0.6187 GB, free: 15.8 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003448/0.4338, allocations: 492.9 kB / 0.6191 GB, free: 15.31 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.295e-05/0.4339, allocations: 36 kB / 0.6192 GB, free: 15.27 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.434, allocations: 377.8 kB / 0.6195 GB, free: 14.9 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009745/0.435, allocations: 0.5896 MB / 0.6201 GB, free: 14.31 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001184/0.4362, allocations: 1.071 MB / 0.6211 GB, free: 13.04 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002205/0.4384, allocations: 1.761 MB / 0.6229 GB, free: 11.07 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-05/0.4385, allocations: 4 kB / 0.6229 GB, free: 11.06 MB / 458.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.002821/0.4413, allocations: 1.952 MB / 0.6248 GB, free: 9.102 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.4413, allocations: 12 kB / 0.6248 GB, free: 9.09 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.629e-05/0.4413, allocations: 16 kB / 0.6248 GB, free: 9.074 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.019e-05/0.4414, allocations: 27.94 kB / 0.6248 GB, free: 9.047 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001177/0.4426, allocations: 347.4 kB / 0.6252 GB, free: 8.707 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.223e-05/0.4426, allocations: 35.86 kB / 0.6252 GB, free: 8.672 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007702/0.4434, allocations: 158.8 kB / 0.6253 GB, free: 8.516 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001006/0.4435, allocations: 68 kB / 0.6254 GB, free: 8.449 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 () * Number of clocked 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.001022/0.4445, allocations: 0.6535 MB / 0.626 GB, free: 7.789 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002182/0.4447, allocations: 173.8 kB / 0.6262 GB, free: 7.617 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003031/0.445, allocations: 206.7 kB / 0.6264 GB, free: 7.41 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.407e-06/0.4451, allocations: 16 kB / 0.6264 GB, free: 7.395 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.4451, allocations: 0 / 0.6264 GB, free: 7.395 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.152e-05/0.4451, allocations: 7.969 kB / 0.6264 GB, free: 7.387 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004778/0.4499, allocations: 3.964 MB / 0.6303 GB, free: 3.355 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.59e-06/0.4499, allocations: 3.938 kB / 0.6303 GB, free: 3.352 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00112/0.451, allocations: 227.7 kB / 0.6305 GB, free: 3.129 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.778e-06/0.451, allocations: 4 kB / 0.6305 GB, free: 3.125 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.162e-05/0.4511, allocations: 35.98 kB / 0.6306 GB, free: 3.09 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.611e-06/0.4511, allocations: 4 kB / 0.6306 GB, free: 3.086 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.4512, allocations: 4 kB / 0.6306 GB, free: 3.082 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002898/0.4541, allocations: 2.155 MB / 0.6327 GB, free: 0.9102 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002637/0.4543, allocations: 282.3 kB / 0.6329 GB, free: 0.6133 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001623/0.4545, allocations: 36 kB / 0.633 GB, free: 0.5781 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005336/0.455, allocations: 35.98 kB / 0.633 GB, free: 0.543 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001445/0.4552, allocations: 81.19 kB / 0.6331 GB, free: 472 kB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.067e-05/0.4553, allocations: 31.98 kB / 0.6331 GB, free: 440 kB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001208/0.4565, allocations: 0.9758 MB / 0.6341 GB, free: 15.46 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4565, allocations: 0 / 0.6341 GB, free: 15.46 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001121/0.4576, allocations: 0.6169 MB / 0.6347 GB, free: 14.84 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 () * Number of clocked 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.0001905/0.4578, allocations: 159 kB / 0.6348 GB, free: 14.68 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002097/0.4599, allocations: 1.455 MB / 0.6362 GB, free: 13.22 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.4599, allocations: 7.938 kB / 0.6363 GB, free: 13.21 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008911/0.4608, allocations: 0.6595 MB / 0.6369 GB, free: 12.56 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001154/0.462, allocations: 313.5 kB / 0.6372 GB, free: 12.25 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007528/0.4695, allocations: 6.418 MB / 0.6435 GB, free: 5.797 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001399/0.4709, allocations: 1.78 MB / 0.6452 GB, free: 3.992 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0007454/0.4717, allocations: 176.5 kB / 0.6454 GB, free: 3.816 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003238/0.472, allocations: 103.4 kB / 0.6455 GB, free: 3.715 MB / 474.7 MB Notification: Performance of SimCode: time 5.11e-07/0.472, allocations: 4 kB / 0.6455 GB, free: 3.711 MB / 474.7 MB Notification: Performance of Templates: time 0.1698/0.6418, allocations: 14.64 MB / 0.6598 GB, free: 122.5 MB / 474.7 MB make -j1 -f SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYear.makefile (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 & ./SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYear -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYear.pipe 2>&1)