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 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.InventoryForresterSinOneYearCapacity,fileNamePrefix="SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterSinOneYearCapacity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity,fileNamePrefix="SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterSinOneYearCapacity",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001429/0.001428, allocations: 174.7 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.571/1.571, allocations: 221.4 MB / 234.6 MB, free: 14.45 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009689/0.0009689, allocations: 99.48 kB / 285.6 MB, free: 12.99 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.4846/0.4846, allocations: 28.82 MB / 365.3 MB, free: 42.03 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 3.936e-05/3.94e-05, allocations: 4 kB / 430.8 MB, free: 4.336 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1468/0.1469, allocations: 57.48 MB / 488.2 MB, free: 10.79 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5045/0.6515, allocations: 82.51 MB / 0.5574 GB, free: 23.15 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002842/0.6518, allocations: 66.05 kB / 0.5574 GB, free: 23.12 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1075/0.7594, allocations: 50.11 MB / 0.6064 GB, free: 0.9805 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.7594, allocations: 0 / 0.6064 GB, free: 0.9805 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000253/0.7597, allocations: 99.92 kB / 0.6065 GB, free: 0.8828 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.005113/0.7648, allocations: 2.734 MB / 0.6091 GB, free: 14.34 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/0.7649, allocations: 16.03 kB / 0.6091 GB, free: 14.32 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008405/0.7657, allocations: 0.5001 MB / 0.6096 GB, free: 14.02 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007906/0.7665, allocations: 414.9 kB / 0.61 GB, free: 13.61 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003097/0.7696, allocations: 2.018 MB / 0.612 GB, free: 11.54 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002/0.7698, allocations: 287.5 kB / 0.6123 GB, free: 11.26 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000424/0.7703, allocations: 387.8 kB / 0.6126 GB, free: 10.88 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005851/0.7761, allocations: 3.511 MB / 0.6161 GB, free: 7.145 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.712e-05/0.7762, allocations: 7.938 kB / 0.6161 GB, free: 7.137 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002397/0.7764, allocations: 156 kB / 0.6162 GB, free: 6.984 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.996e-05/0.7765, allocations: 96 kB / 0.6163 GB, free: 6.891 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004051/0.7806, allocations: 2.159 MB / 0.6184 GB, free: 4.727 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01802/0.7986, allocations: 14.5 MB / 0.6326 GB, free: 5.898 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002333/0.801, allocations: 1.284 MB / 0.6338 GB, free: 4.602 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000855/0.8019, allocations: 0.575 MB / 0.6344 GB, free: 4.023 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.127e-05/0.802, allocations: 25.31 kB / 0.6344 GB, free: 4 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.733e-05/0.802, allocations: 43.88 kB / 0.6345 GB, free: 3.949 MB / 442.7 MB Notification: Performance of pre-optimization done (n=133): time 2.605e-06/0.802, allocations: 0 / 0.6345 GB, free: 3.949 MB / 442.7 MB Notification: Performance of matching and sorting (n=133): time 0.002261/0.8043, allocations: 1.232 MB / 0.6357 GB, free: 2.707 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.959e-05/0.8043, allocations: 68.72 kB / 0.6357 GB, free: 2.625 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002076/0.8064, allocations: 1.277 MB / 0.637 GB, free: 1.348 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001311/0.8066, allocations: 49.7 kB / 0.637 GB, free: 1.293 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001062/0.8076, allocations: 1.591 MB / 0.6386 GB, free: 15.68 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004624/0.8081, allocations: 0.489 MB / 0.6391 GB, free: 15.18 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.302e-05/0.8082, allocations: 36 kB / 0.6391 GB, free: 15.14 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.8084, allocations: 369.9 kB / 0.6395 GB, free: 14.78 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009487/0.8093, allocations: 0.5469 MB / 0.64 GB, free: 14.23 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001213/0.8105, allocations: 1.024 MB / 0.641 GB, free: 13.01 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001141/0.8117, allocations: 0.7233 MB / 0.6417 GB, free: 12.29 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.127e-06/0.8117, allocations: 4 kB / 0.6417 GB, free: 12.28 MB / 458.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.003147/0.8149, allocations: 1.866 MB / 0.6435 GB, free: 10.41 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.157e-05/0.8149, allocations: 17.97 kB / 0.6435 GB, free: 10.39 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.718e-05/0.8149, allocations: 12 kB / 0.6435 GB, free: 10.38 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.543e-05/0.815, allocations: 28 kB / 0.6436 GB, free: 10.35 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001308/0.8163, allocations: 351.4 kB / 0.6439 GB, free: 10.01 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.927e-05/0.8163, allocations: 39.64 kB / 0.6439 GB, free: 9.973 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001043/0.8174, allocations: 150.9 kB / 0.6441 GB, free: 9.824 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001174/0.8175, allocations: 72 kB / 0.6442 GB, free: 9.754 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.0003067/0.8178, allocations: 238.5 kB / 0.6444 GB, free: 9.52 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002765/0.8181, allocations: 181.7 kB / 0.6446 GB, free: 9.34 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005472/0.8187, allocations: 202.7 kB / 0.6448 GB, free: 9.137 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.224e-05/0.8187, allocations: 12 kB / 0.6448 GB, free: 9.125 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.715e-05/0.8187, allocations: 3.953 kB / 0.6448 GB, free: 9.121 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.315e-05/0.8187, allocations: 11.97 kB / 0.6448 GB, free: 9.109 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006145/0.8249, allocations: 3.89 MB / 0.6486 GB, free: 5.152 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.521e-06/0.8249, allocations: 0 / 0.6486 GB, free: 5.152 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001253/0.8262, allocations: 231.7 kB / 0.6488 GB, free: 4.926 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.691e-05/0.8262, allocations: 4 kB / 0.6488 GB, free: 4.922 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001136/0.8263, allocations: 36 kB / 0.6488 GB, free: 4.887 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.201e-05/0.8264, allocations: 7.953 kB / 0.6488 GB, free: 4.879 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.8264, allocations: 4 kB / 0.6488 GB, free: 4.875 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003153/0.8295, allocations: 2.046 MB / 0.6508 GB, free: 2.816 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004104/0.83, allocations: 274.5 kB / 0.6511 GB, free: 2.527 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001801/0.8301, allocations: 36 kB / 0.6511 GB, free: 2.492 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000602/0.8308, allocations: 35.98 kB / 0.6512 GB, free: 2.457 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001887/0.831, allocations: 77.16 kB / 0.6513 GB, free: 2.383 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.709e-05/0.831, allocations: 39.94 kB / 0.6513 GB, free: 2.344 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001479/0.8325, allocations: 0.9559 MB / 0.6522 GB, free: 1.395 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.8325, allocations: 0 / 0.6522 GB, free: 1.395 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001525/0.8341, allocations: 0.6323 MB / 0.6528 GB, free: 0.7578 MB / 458.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.003155/0.8372, allocations: 2.664 MB / 0.6554 GB, free: 14.06 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002365/0.8396, allocations: 1.368 MB / 0.6568 GB, free: 12.7 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.8396, allocations: 0 / 0.6568 GB, free: 12.7 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008418/0.8405, allocations: 0.6283 MB / 0.6574 GB, free: 12.07 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001369/0.8419, allocations: 286.2 kB / 0.6577 GB, free: 11.79 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008105/0.85, allocations: 4.45 MB / 0.662 GB, free: 7.293 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001411/0.8514, allocations: 1.846 MB / 0.6638 GB, free: 5.418 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0009105/0.8523, allocations: 176.5 kB / 0.664 GB, free: 5.242 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001672/0.854, allocations: 1.269 MB / 0.6652 GB, free: 3.973 MB / 474.7 MB Notification: Performance of SimCode: time 9.12e-07/0.854, allocations: 0 / 0.6652 GB, free: 3.973 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.327/1.181, allocations: 35.43 MB / 0.6998 GB, free: 95.56 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001952/1.181, allocations: 184.4 kB / 0.7 GB, free: 95.34 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.647/3.829, allocations: 4.812 kB / 0.7 GB, free: 95.34 MB / 490.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterSinOneYearCapacity_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterSinOneYearCapacity.fmu > SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity.pipe 2>&1)