Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity.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.InventoryForresterSinOneYearCapacity,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity") translateModel(SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008822/0.0008823, allocations: 174.9 kB / 16.11 MB, free: 5.699 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.131/1.131, allocations: 205.4 MB / 222.3 MB, free: 9.02 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.0007689/0.0007689, allocations: 90.34 kB / 270.6 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo): time 0.1378/0.1378, allocations: 28.83 MB / 347.7 MB, free: 10.99 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003068/0.0003069, allocations: 15.98 kB / 413 MB, free: 47.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06672/0.06704, allocations: 54.64 MB / 467.7 MB, free: 8.867 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2209/0.288, allocations: 81.82 MB / 0.5366 GB, free: 4.652 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001744/0.2882, allocations: 75.03 kB / 0.5367 GB, free: 4.582 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1004/0.3887, allocations: 50.06 MB / 0.5856 GB, free: 2.398 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3887, allocations: 0 / 0.5856 GB, free: 2.398 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000232/0.389, allocations: 92.16 kB / 0.5857 GB, free: 2.309 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.004961/0.3939, allocations: 3.003 MB / 0.5886 GB, free: 15.23 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.358e-05/0.394, allocations: 8.031 kB / 0.5886 GB, free: 15.23 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006996/0.3947, allocations: 419.9 kB / 0.589 GB, free: 14.81 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002705/0.3974, allocations: 2.091 MB / 0.591 GB, free: 12.67 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001789/0.3976, allocations: 287.8 kB / 0.5913 GB, free: 12.39 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004438/0.398, allocations: 384.2 kB / 0.5917 GB, free: 12.01 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004917/0.403, allocations: 3.616 MB / 0.5952 GB, free: 8.172 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.653e-05/0.4031, allocations: 8.125 kB / 0.5952 GB, free: 8.164 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002156/0.4033, allocations: 159.9 kB / 0.5954 GB, free: 8.008 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.836e-05/0.4033, allocations: 92 kB / 0.5955 GB, free: 7.918 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003636/0.407, allocations: 2.279 MB / 0.5977 GB, free: 5.633 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01293/0.4199, allocations: 14.47 MB / 0.6118 GB, free: 6.832 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002081/0.422, allocations: 1.353 MB / 0.6131 GB, free: 5.473 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008629/0.4229, allocations: 0.6226 MB / 0.6138 GB, free: 4.852 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.779e-05/0.423, allocations: 13.31 kB / 0.6138 GB, free: 4.836 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.561e-05/0.423, allocations: 43.88 kB / 0.6138 GB, free: 4.785 MB / 442.7 MB Notification: Performance of pre-optimization done (n=133): time 3.126e-06/0.423, allocations: 0 / 0.6138 GB, free: 4.785 MB / 442.7 MB Notification: Performance of matching and sorting (n=133): time 0.002647/0.4257, allocations: 1.784 MB / 0.6156 GB, free: 2.996 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.729e-05/0.4257, allocations: 68.72 kB / 0.6156 GB, free: 2.914 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001655/0.4274, allocations: 1.477 MB / 0.6171 GB, free: 1.434 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.681e-05/0.4275, allocations: 53.7 kB / 0.6171 GB, free: 1.375 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008196/0.4283, allocations: 1.579 MB / 0.6187 GB, free: 15.77 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003286/0.4286, allocations: 496.8 kB / 0.6191 GB, free: 15.28 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.168e-05/0.4287, allocations: 36 kB / 0.6192 GB, free: 15.24 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.4288, allocations: 373.9 kB / 0.6195 GB, free: 14.87 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009327/0.4298, allocations: 0.5936 MB / 0.6201 GB, free: 14.28 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00117/0.431, allocations: 1.063 MB / 0.6211 GB, free: 13.01 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002131/0.4331, allocations: 1.765 MB / 0.6229 GB, free: 11.04 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.214e-06/0.4331, allocations: 4 kB / 0.6229 GB, free: 11.04 MB / 458.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.002717/0.4358, allocations: 1.948 MB / 0.6248 GB, free: 9.078 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/0.4359, allocations: 12 kB / 0.6248 GB, free: 9.066 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.688e-05/0.4359, allocations: 28.05 kB / 0.6248 GB, free: 9.039 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.995e-05/0.4359, allocations: 31.92 kB / 0.6248 GB, free: 9.008 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001168/0.4371, allocations: 347.4 kB / 0.6252 GB, free: 8.668 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.949e-05/0.4371, allocations: 35.86 kB / 0.6252 GB, free: 8.633 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006995/0.4378, allocations: 146.6 kB / 0.6253 GB, free: 8.488 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.945e-05/0.438, allocations: 72 kB / 0.6254 GB, free: 8.418 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.001071/0.439, allocations: 0.6418 MB / 0.626 GB, free: 7.77 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001952/0.4392, allocations: 177.8 kB / 0.6262 GB, free: 7.594 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003118/0.4396, allocations: 206.7 kB / 0.6264 GB, free: 7.387 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/0.4396, allocations: 12 kB / 0.6264 GB, free: 7.375 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.315e-06/0.4396, allocations: 4 kB / 0.6264 GB, free: 7.371 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.918e-06/0.4396, allocations: 3.984 kB / 0.6264 GB, free: 7.367 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004597/0.4442, allocations: 3.96 MB / 0.6303 GB, free: 3.34 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.7e-06/0.4442, allocations: 11.92 kB / 0.6303 GB, free: 3.328 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00109/0.4453, allocations: 227.7 kB / 0.6305 GB, free: 3.105 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.012e-06/0.4453, allocations: 4 kB / 0.6305 GB, free: 3.102 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.273e-05/0.4454, allocations: 40 kB / 0.6306 GB, free: 3.062 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.29e-06/0.4454, allocations: 4 kB / 0.6306 GB, free: 3.059 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.4454, allocations: 0 / 0.6306 GB, free: 3.059 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002844/0.4483, allocations: 2.167 MB / 0.6327 GB, free: 0.875 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002417/0.4485, allocations: 278.4 kB / 0.6329 GB, free: 0.582 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001539/0.4487, allocations: 36 kB / 0.633 GB, free: 0.5469 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000495/0.4492, allocations: 31.98 kB / 0.633 GB, free: 0.5156 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000135/0.4493, allocations: 73.2 kB / 0.6331 GB, free: 452 kB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.955e-05/0.4494, allocations: 32 kB / 0.6331 GB, free: 420 kB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001161/0.4506, allocations: 0.9757 MB / 0.6341 GB, free: 15.44 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4506, allocations: 4 kB / 0.6341 GB, free: 15.44 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001106/0.4517, allocations: 0.6246 MB / 0.6347 GB, free: 14.81 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.0001709/0.4519, allocations: 151 kB / 0.6348 GB, free: 14.65 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002008/0.4539, allocations: 1.458 MB / 0.6362 GB, free: 13.2 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.4539, allocations: 3.938 kB / 0.6363 GB, free: 13.19 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008805/0.4548, allocations: 0.6604 MB / 0.6369 GB, free: 12.54 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001155/0.456, allocations: 317.5 kB / 0.6372 GB, free: 12.22 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006984/0.4629, allocations: 6.417 MB / 0.6435 GB, free: 5.77 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001244/0.4642, allocations: 1.776 MB / 0.6452 GB, free: 3.969 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0007311/0.4649, allocations: 176.5 kB / 0.6454 GB, free: 3.793 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003057/0.4653, allocations: 107.4 kB / 0.6455 GB, free: 3.688 MB / 474.7 MB Notification: Performance of SimCode: time 2.81e-07/0.4653, allocations: 0 / 0.6455 GB, free: 3.688 MB / 474.7 MB Notification: Performance of Templates: time 0.1676/0.6329, allocations: 14.62 MB / 0.6597 GB, free: 122.6 MB / 474.7 MB make -j1 -f SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity.makefile (rm -f SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity.pipe ; mkfifo SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity.pipe >> ../files/SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity.sim & ./SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity.pipe 2>&1)