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.009396/0.009396, allocations: 169.3 kB / 15.11 MB, free: 5.582 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.497/1.497, allocations: 223.2 MB / 239 MB, free: 1.797 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.001091/0.001091, allocations: 97.95 kB / 290.2 MB, free: 13.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2303/0.2303, allocations: 28.84 MB / 370.1 MB, free: 13.94 MB / 314.7 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003441/0.0003443, allocations: 8 kB / 438.2 MB, free: 70.69 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1237/0.124, allocations: 57.48 MB / 495.7 MB, free: 13.17 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4776/0.6018, allocations: 82.58 MB / 0.5647 GB, free: 9.449 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002178/0.6021, allocations: 70.09 kB / 0.5648 GB, free: 9.414 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1202/0.7223, allocations: 50.1 MB / 0.6137 GB, free: 15.73 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.795e-06/0.7223, allocations: 0 / 0.6137 GB, free: 15.73 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004676/0.7228, allocations: 87.98 kB / 0.6138 GB, free: 15.64 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.009111/0.7319, allocations: 3.045 MB / 0.6168 GB, free: 12.53 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.139e-05/0.732, allocations: 8.031 kB / 0.6168 GB, free: 12.52 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001909/0.7339, allocations: 0.4937 MB / 0.6172 GB, free: 12.02 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001538/0.7355, allocations: 418.9 kB / 0.6176 GB, free: 11.6 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004121/0.7396, allocations: 2.029 MB / 0.6196 GB, free: 9.52 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000245/0.7399, allocations: 283.5 kB / 0.6199 GB, free: 9.242 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005218/0.7404, allocations: 391.8 kB / 0.6203 GB, free: 8.859 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006694/0.7471, allocations: 3.596 MB / 0.6238 GB, free: 5.043 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.987e-05/0.7472, allocations: 15.88 kB / 0.6238 GB, free: 5.027 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002679/0.7475, allocations: 160 kB / 0.624 GB, free: 4.871 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.421e-05/0.7475, allocations: 92 kB / 0.624 GB, free: 4.781 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004619/0.7522, allocations: 2.279 MB / 0.6263 GB, free: 2.496 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02027/0.7725, allocations: 14.49 MB / 0.6404 GB, free: 3.68 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002619/0.7751, allocations: 1.357 MB / 0.6417 GB, free: 2.312 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.44e-05/0.7752, allocations: 17.31 kB / 0.6418 GB, free: 2.297 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.668e-05/0.7753, allocations: 47.88 kB / 0.6418 GB, free: 2.242 MB / 426.7 MB Notification: Performance of pre-optimization done (n=133): time 3.516e-06/0.7753, allocations: 0 / 0.6418 GB, free: 2.242 MB / 426.7 MB Notification: Performance of matching and sorting (n=133): time 0.003341/0.7786, allocations: 1.784 MB / 0.6435 GB, free: 460 kB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.765e-05/0.7787, allocations: 68.67 kB / 0.6436 GB, free: 380 kB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002068/0.7808, allocations: 1.289 MB / 0.6449 GB, free: 15.08 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001329/0.7809, allocations: 57.7 kB / 0.6449 GB, free: 15.02 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001203/0.7821, allocations: 1.583 MB / 0.6465 GB, free: 13.41 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004925/0.7826, allocations: 492.8 kB / 0.6469 GB, free: 12.93 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.396e-05/0.7827, allocations: 40 kB / 0.647 GB, free: 12.89 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001917/0.7829, allocations: 373.9 kB / 0.6473 GB, free: 12.52 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00111/0.784, allocations: 0.5935 MB / 0.6479 GB, free: 11.92 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001458/0.7855, allocations: 1.063 MB / 0.649 GB, free: 10.66 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001263/0.7868, allocations: 0.7638 MB / 0.6497 GB, free: 9.891 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.107e-06/0.7868, allocations: 8 kB / 0.6497 GB, free: 9.883 MB / 442.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.003509/0.7903, allocations: 1.948 MB / 0.6516 GB, free: 7.926 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.974e-05/0.7904, allocations: 12 kB / 0.6516 GB, free: 7.914 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.323e-05/0.7904, allocations: 16 kB / 0.6516 GB, free: 7.898 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.719e-05/0.7904, allocations: 24.78 kB / 0.6517 GB, free: 7.875 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001357/0.7918, allocations: 355.4 kB / 0.652 GB, free: 7.527 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.455e-05/0.7918, allocations: 31.92 kB / 0.652 GB, free: 7.496 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001112/0.793, allocations: 150.6 kB / 0.6522 GB, free: 7.348 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001189/0.7931, allocations: 72 kB / 0.6522 GB, free: 7.277 MB / 442.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.001875/0.795, allocations: 0.6458 MB / 0.6529 GB, free: 6.625 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003881/0.7954, allocations: 181.8 kB / 0.653 GB, free: 6.445 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004771/0.7959, allocations: 206.7 kB / 0.6532 GB, free: 6.238 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.614e-05/0.7959, allocations: 12 kB / 0.6533 GB, free: 6.227 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.335e-05/0.7959, allocations: 3.938 kB / 0.6533 GB, free: 6.223 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.528e-05/0.7959, allocations: 7.969 kB / 0.6533 GB, free: 6.215 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006627/0.8025, allocations: 3.972 MB / 0.6571 GB, free: 2.172 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.691e-06/0.8026, allocations: 0 / 0.6571 GB, free: 2.172 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001275/0.8039, allocations: 227.7 kB / 0.6574 GB, free: 1.949 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.622e-05/0.8039, allocations: 8 kB / 0.6574 GB, free: 1.941 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001024/0.804, allocations: 36 kB / 0.6574 GB, free: 1.906 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.784e-06/0.804, allocations: 7.938 kB / 0.6574 GB, free: 1.898 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.082e-06/0.804, allocations: 3.953 kB / 0.6574 GB, free: 1.895 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003808/0.8079, allocations: 2.155 MB / 0.6595 GB, free: 15.73 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009173/0.8088, allocations: 274.4 kB / 0.6598 GB, free: 15.44 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001941/0.809, allocations: 43.98 kB / 0.6598 GB, free: 15.39 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006364/0.8097, allocations: 31.98 kB / 0.6599 GB, free: 15.36 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000202/0.8099, allocations: 77.2 kB / 0.6599 GB, free: 15.29 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.731e-05/0.8099, allocations: 35.95 kB / 0.66 GB, free: 15.25 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001827/0.8118, allocations: 0.9718 MB / 0.6609 GB, free: 14.29 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.31e-07/0.8118, allocations: 0 / 0.6609 GB, free: 14.29 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001824/0.8136, allocations: 0.6284 MB / 0.6615 GB, free: 13.66 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 () * 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.003855/0.8175, allocations: 2.774 MB / 0.6642 GB, free: 10.85 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002709/0.8202, allocations: 1.452 MB / 0.6657 GB, free: 9.402 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.125e-06/0.8202, allocations: 4 kB / 0.6657 GB, free: 9.398 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001073/0.8213, allocations: 0.6595 MB / 0.6663 GB, free: 8.738 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001431/0.8227, allocations: 287.2 kB / 0.6666 GB, free: 8.461 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03061/0.8534, allocations: 24.39 MB / 0.6904 GB, free: 14.96 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001885/0.8553, allocations: 1.85 MB / 0.6922 GB, free: 13.09 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.001037/0.8564, allocations: 172.5 kB / 0.6924 GB, free: 12.91 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001693/0.8581, allocations: 1.269 MB / 0.6936 GB, free: 11.64 MB / 490.7 MB Notification: Performance of SimCode: time 1.343e-06/0.8581, allocations: 0 / 0.6936 GB, free: 11.64 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3275/1.186, allocations: 35.2 MB / 0.728 GB, free: 138.2 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001658/1.186, allocations: 209.8 kB / 0.7282 GB, free: 137.9 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.203/4.389, allocations: 2.656 kB / 0.7282 GB, free: 137.9 MB / 0.4948 GB (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)