Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterStep.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.InventoryForresterStep,fileNamePrefix="SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterStep,fileNamePrefix="SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterStep",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.007621/0.007621, allocations: 169.6 kB / 15.11 MB, free: 5.988 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.649/1.649, allocations: 223.2 MB / 239 MB, free: 1.789 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.001247/0.001247, allocations: 100.9 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.234/0.234, allocations: 28.85 MB / 370.2 MB, free: 13.93 MB / 314.7 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.0005088/0.0005087, allocations: 11.98 kB / 438.2 MB, free: 70.68 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1348/0.1353, allocations: 57.48 MB / 495.7 MB, free: 13.16 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4284/0.5637, allocations: 82.01 MB / 0.5642 GB, free: 9.914 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002064/0.564, allocations: 67.66 kB / 0.5642 GB, free: 9.879 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1148/0.6788, allocations: 49.82 MB / 0.6129 GB, free: 0.5781 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.358e-06/0.6789, allocations: 0 / 0.6129 GB, free: 0.5781 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002813/0.6792, allocations: 91.98 kB / 0.613 GB, free: 500 kB / 394.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.0073/0.6865, allocations: 3.034 MB / 0.6159 GB, free: 13.39 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.915e-05/0.6866, allocations: 8.031 kB / 0.6159 GB, free: 13.38 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001426/0.688, allocations: 0.5054 MB / 0.6164 GB, free: 12.86 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009289/0.689, allocations: 414.9 kB / 0.6168 GB, free: 12.45 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003556/0.6925, allocations: 2.021 MB / 0.6188 GB, free: 10.38 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002479/0.6928, allocations: 283.5 kB / 0.6191 GB, free: 10.1 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005186/0.6933, allocations: 387.8 kB / 0.6194 GB, free: 9.723 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006595/0.6999, allocations: 3.605 MB / 0.623 GB, free: 5.895 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.451e-05/0.7, allocations: 11.88 kB / 0.623 GB, free: 5.883 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002629/0.7003, allocations: 156 kB / 0.6231 GB, free: 5.73 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.948e-05/0.7004, allocations: 92 kB / 0.6232 GB, free: 5.641 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004715/0.7051, allocations: 2.279 MB / 0.6254 GB, free: 3.355 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02088/0.726, allocations: 14.48 MB / 0.6396 GB, free: 4.543 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002613/0.7286, allocations: 1.353 MB / 0.6409 GB, free: 3.18 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.217e-05/0.7287, allocations: 13.31 kB / 0.6409 GB, free: 3.168 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.509e-05/0.7288, allocations: 47.86 kB / 0.6409 GB, free: 3.113 MB / 426.7 MB Notification: Performance of pre-optimization done (n=133): time 4.188e-06/0.7288, allocations: 0 / 0.6409 GB, free: 3.113 MB / 426.7 MB Notification: Performance of matching and sorting (n=133): time 0.003425/0.7322, allocations: 1.78 MB / 0.6427 GB, free: 1.328 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.225e-05/0.7323, allocations: 72.67 kB / 0.6428 GB, free: 1.246 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002188/0.7345, allocations: 1.285 MB / 0.644 GB, free: 15.96 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001274/0.7346, allocations: 53.7 kB / 0.6441 GB, free: 15.9 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001193/0.7358, allocations: 1.583 MB / 0.6456 GB, free: 14.3 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005216/0.7364, allocations: 0.4929 MB / 0.6461 GB, free: 13.8 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.061e-05/0.7365, allocations: 36 kB / 0.6461 GB, free: 13.76 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001922/0.7367, allocations: 373.9 kB / 0.6465 GB, free: 13.39 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001161/0.7378, allocations: 0.5896 MB / 0.6471 GB, free: 12.8 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00158/0.7394, allocations: 1.063 MB / 0.6481 GB, free: 11.53 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001374/0.7408, allocations: 0.7561 MB / 0.6488 GB, free: 10.78 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.065e-05/0.7408, allocations: 7.938 kB / 0.6488 GB, free: 10.77 MB / 442.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.003947/0.7448, allocations: 1.947 MB / 0.6507 GB, free: 8.812 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.253e-05/0.7448, allocations: 13 kB / 0.6508 GB, free: 8.801 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.345e-05/0.7449, allocations: 16 kB / 0.6508 GB, free: 8.785 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.529e-05/0.7449, allocations: 31.94 kB / 0.6508 GB, free: 8.754 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001329/0.7463, allocations: 355.3 kB / 0.6511 GB, free: 8.406 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.181e-05/0.7463, allocations: 27.94 kB / 0.6512 GB, free: 8.379 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001128/0.7474, allocations: 154.6 kB / 0.6513 GB, free: 8.227 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001101/0.7476, allocations: 71.98 kB / 0.6514 GB, free: 8.156 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.001633/0.7492, allocations: 0.6535 MB / 0.652 GB, free: 7.496 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004091/0.7496, allocations: 177.8 kB / 0.6522 GB, free: 7.32 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004772/0.7501, allocations: 198.6 kB / 0.6524 GB, free: 7.121 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.134e-05/0.7501, allocations: 12 kB / 0.6524 GB, free: 7.109 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.381e-05/0.7501, allocations: 0 / 0.6524 GB, free: 7.109 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.324e-05/0.7501, allocations: 11.91 kB / 0.6524 GB, free: 7.098 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00617/0.7563, allocations: 3.961 MB / 0.6563 GB, free: 3.066 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.421e-06/0.7564, allocations: 0 / 0.6563 GB, free: 3.066 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001277/0.7576, allocations: 227.7 kB / 0.6565 GB, free: 2.844 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.162e-05/0.7577, allocations: 4 kB / 0.6565 GB, free: 2.84 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001073/0.7578, allocations: 43.97 kB / 0.6565 GB, free: 2.797 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.113e-05/0.7578, allocations: 7.938 kB / 0.6565 GB, free: 2.789 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.6e-06/0.7578, allocations: 7.953 kB / 0.6565 GB, free: 2.781 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003605/0.7614, allocations: 2.155 MB / 0.6587 GB, free: 0.6172 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005853/0.762, allocations: 270.5 kB / 0.6589 GB, free: 340 kB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001789/0.7622, allocations: 36 kB / 0.6589 GB, free: 304 kB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005927/0.7628, allocations: 39.92 kB / 0.659 GB, free: 264 kB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00017/0.763, allocations: 77.2 kB / 0.6591 GB, free: 184 kB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.029e-05/0.7631, allocations: 35.94 kB / 0.6591 GB, free: 148 kB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00166/0.7648, allocations: 0.9678 MB / 0.66 GB, free: 15.18 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.7648, allocations: 0 / 0.66 GB, free: 15.18 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001563/0.7663, allocations: 0.6323 MB / 0.6607 GB, free: 14.55 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.003739/0.7701, allocations: 2.762 MB / 0.6634 GB, free: 11.76 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002627/0.7727, allocations: 1.448 MB / 0.6648 GB, free: 10.31 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.7727, allocations: 0 / 0.6648 GB, free: 10.31 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001045/0.7738, allocations: 0.6634 MB / 0.6654 GB, free: 9.648 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001374/0.7752, allocations: 281.8 kB / 0.6657 GB, free: 9.379 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03042/0.8056, allocations: 24.35 MB / 0.6895 GB, free: 15.93 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001744/0.8074, allocations: 1.846 MB / 0.6913 GB, free: 14.05 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.001075/0.8085, allocations: 180.5 kB / 0.6914 GB, free: 13.88 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001707/0.8102, allocations: 1.265 MB / 0.6927 GB, free: 12.61 MB / 490.7 MB Notification: Performance of SimCode: time 3.417e-06/0.8102, allocations: 0 / 0.6927 GB, free: 12.61 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3634/1.174, allocations: 35.14 MB / 0.727 GB, free: 137.7 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001724/1.174, allocations: 196.6 kB / 0.7272 GB, free: 137.5 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.102/4.276, allocations: 0 / 0.7272 GB, free: 137.5 MB / 0.4948 GB (rm -f SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterStep.pipe ; mkfifo SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterStep.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterStep.pipe >> ../files/SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterStep_fmu --startTime=0 --stopTime=90 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterStep.fmu > SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterStep.pipe 2>&1)