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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001569/0.001569, allocations: 174.8 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.506/1.506, allocations: 221.4 MB / 234.6 MB, free: 14.39 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.0008444/0.0008444, allocations: 90.23 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.4837/0.4837, allocations: 28.82 MB / 365.3 MB, free: 42.07 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 3.531e-05/3.535e-05, allocations: 4 kB / 430.8 MB, free: 4.344 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1433/0.1433, allocations: 57.48 MB / 488.2 MB, free: 10.8 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5127/0.6561, allocations: 82.52 MB / 0.5574 GB, free: 23.19 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002066/0.6564, allocations: 67.08 kB / 0.5574 GB, free: 23.17 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.111/0.7674, allocations: 50.12 MB / 0.6064 GB, free: 1.008 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.7674, allocations: 0 / 0.6064 GB, free: 1.008 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002318/0.7676, allocations: 91.94 kB / 0.6065 GB, free: 0.918 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.004909/0.7726, allocations: 2.739 MB / 0.6091 GB, free: 14.37 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.137e-05/0.7726, allocations: 12.03 kB / 0.6092 GB, free: 14.36 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008249/0.7734, allocations: 0.5036 MB / 0.6096 GB, free: 14.04 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007428/0.7742, allocations: 418.9 kB / 0.61 GB, free: 13.62 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0029/0.7771, allocations: 2.021 MB / 0.612 GB, free: 11.55 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001968/0.7773, allocations: 283.5 kB / 0.6123 GB, free: 11.27 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004643/0.7778, allocations: 391.8 kB / 0.6127 GB, free: 10.89 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006006/0.7838, allocations: 3.511 MB / 0.6161 GB, free: 7.148 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.828e-05/0.7839, allocations: 7.938 kB / 0.6161 GB, free: 7.141 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002516/0.7841, allocations: 156 kB / 0.6162 GB, free: 6.988 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.273e-05/0.7842, allocations: 92 kB / 0.6163 GB, free: 6.898 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004018/0.7883, allocations: 2.163 MB / 0.6184 GB, free: 4.73 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01888/0.8071, allocations: 14.48 MB / 0.6326 GB, free: 5.914 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004052/0.8112, allocations: 1.281 MB / 0.6338 GB, free: 4.621 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001567/0.8128, allocations: 0.5906 MB / 0.6344 GB, free: 4.027 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001139/0.813, allocations: 21.3 kB / 0.6344 GB, free: 4.008 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.21e-05/0.8131, allocations: 43.88 kB / 0.6345 GB, free: 3.957 MB / 442.7 MB Notification: Performance of pre-optimization done (n=133): time 5.13e-06/0.8131, allocations: 0 / 0.6345 GB, free: 3.957 MB / 442.7 MB Notification: Performance of matching and sorting (n=133): time 0.003768/0.8169, allocations: 1.232 MB / 0.6357 GB, free: 2.715 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.874e-05/0.8169, allocations: 68.66 kB / 0.6358 GB, free: 2.633 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003399/0.8204, allocations: 1.273 MB / 0.637 GB, free: 1.359 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000243/0.8206, allocations: 53.7 kB / 0.637 GB, free: 1.301 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001626/0.8223, allocations: 1.591 MB / 0.6386 GB, free: 15.69 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007219/0.823, allocations: 496.8 kB / 0.6391 GB, free: 15.2 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001336/0.8232, allocations: 36 kB / 0.6391 GB, free: 15.16 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002245/0.8234, allocations: 373.9 kB / 0.6395 GB, free: 14.79 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001737/0.8252, allocations: 0.5469 MB / 0.64 GB, free: 14.25 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002109/0.8273, allocations: 1.02 MB / 0.641 GB, free: 13.02 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001994/0.8293, allocations: 0.7272 MB / 0.6417 GB, free: 12.3 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.544e-05/0.8293, allocations: 4 kB / 0.6417 GB, free: 12.29 MB / 458.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.005515/0.8349, allocations: 1.866 MB / 0.6435 GB, free: 10.42 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.995e-05/0.8349, allocations: 11.94 kB / 0.6435 GB, free: 10.41 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.514e-05/0.835, allocations: 16 kB / 0.6436 GB, free: 10.39 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.623e-05/0.8351, allocations: 28 kB / 0.6436 GB, free: 10.36 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002571/0.8377, allocations: 351.4 kB / 0.6439 GB, free: 10.02 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.833e-05/0.8377, allocations: 40.19 kB / 0.644 GB, free: 9.98 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002088/0.8398, allocations: 146.6 kB / 0.6441 GB, free: 9.836 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000198/0.8401, allocations: 76 kB / 0.6442 GB, free: 9.762 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.0004917/0.8406, allocations: 232.4 kB / 0.6444 GB, free: 9.531 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004627/0.841, allocations: 177.7 kB / 0.6446 GB, free: 9.355 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008404/0.8419, allocations: 210.7 kB / 0.6448 GB, free: 9.145 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-05/0.8419, allocations: 12 kB / 0.6448 GB, free: 9.133 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.41e-05/0.842, allocations: 4 kB / 0.6448 GB, free: 9.129 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.145e-05/0.842, allocations: 11.92 kB / 0.6448 GB, free: 9.117 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009909/0.8519, allocations: 3.89 MB / 0.6486 GB, free: 5.16 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.956e-06/0.852, allocations: 0 / 0.6486 GB, free: 5.16 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002429/0.8544, allocations: 227.7 kB / 0.6488 GB, free: 4.938 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.025e-05/0.8545, allocations: 8 kB / 0.6488 GB, free: 4.93 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001668/0.8547, allocations: 32 kB / 0.6488 GB, free: 4.898 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.521e-05/0.8547, allocations: 7.953 kB / 0.6488 GB, free: 4.891 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/0.8547, allocations: 8 kB / 0.6489 GB, free: 4.883 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005959/0.8607, allocations: 2.046 MB / 0.6509 GB, free: 2.824 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001028/0.8618, allocations: 274.5 kB / 0.6511 GB, free: 2.535 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003198/0.8621, allocations: 36 kB / 0.6512 GB, free: 2.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001139/0.8633, allocations: 35.98 kB / 0.6512 GB, free: 2.465 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002667/0.8636, allocations: 81.16 kB / 0.6513 GB, free: 2.387 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001177/0.8637, allocations: 31.94 kB / 0.6513 GB, free: 2.355 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002747/0.8665, allocations: 0.9598 MB / 0.6522 GB, free: 1.402 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.8665, allocations: 0 / 0.6522 GB, free: 1.402 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002631/0.8691, allocations: 0.6323 MB / 0.6528 GB, free: 0.7656 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.005541/0.8747, allocations: 2.653 MB / 0.6554 GB, free: 14.08 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003548/0.8783, allocations: 1.372 MB / 0.6568 GB, free: 12.71 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.8783, allocations: 0 / 0.6568 GB, free: 12.71 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001358/0.8796, allocations: 0.63 MB / 0.6574 GB, free: 12.08 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002169/0.8818, allocations: 292.7 kB / 0.6577 GB, free: 11.8 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01389/0.8957, allocations: 4.452 MB / 0.662 GB, free: 7.297 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002656/0.8984, allocations: 1.846 MB / 0.6638 GB, free: 5.426 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.00183/0.9003, allocations: 176.5 kB / 0.664 GB, free: 5.25 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002768/0.9031, allocations: 1.265 MB / 0.6652 GB, free: 3.984 MB / 474.7 MB Notification: Performance of SimCode: time 1.944e-06/0.9032, allocations: 0 / 0.6652 GB, free: 3.984 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3743/1.277, allocations: 35.43 MB / 0.6998 GB, free: 95.77 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001676/1.278, allocations: 177.9 kB / 0.7 GB, free: 95.55 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.703/3.98, allocations: 4 kB / 0.7 GB, free: 95.54 MB / 490.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)