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.009798/0.009798, allocations: 172.2 kB / 15.12 MB, free: 5.973 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.57/1.57, allocations: 223.2 MB / 239 MB, free: 48 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001033/0.001033, allocations: 102.7 kB / 290.2 MB, free: 4.578 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2285/0.2285, allocations: 28.84 MB / 370.1 MB, free: 32 kB / 298.7 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.000376/0.000376, allocations: 12.19 kB / 438.2 MB, free: 88.27 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1389/0.1393, allocations: 57.48 MB / 495.7 MB, free: 31.61 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4624/0.6018, allocations: 82.58 MB / 0.5647 GB, free: 11.66 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002117/0.602, allocations: 68.67 kB / 0.5648 GB, free: 11.66 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1097/0.7118, allocations: 50.11 MB / 0.6137 GB, free: 9.75 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.7118, allocations: 0 / 0.6137 GB, free: 9.75 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000244/0.7121, allocations: 92.3 kB / 0.6138 GB, free: 9.738 MB / 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.006369/0.7184, allocations: 3.03 MB / 0.6168 GB, free: 7.832 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.156e-05/0.7185, allocations: 11.72 kB / 0.6168 GB, free: 7.832 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001102/0.7196, allocations: 0.5002 MB / 0.6173 GB, free: 7.668 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007009/0.7203, allocations: 419.5 kB / 0.6177 GB, free: 7.453 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003242/0.7236, allocations: 2.038 MB / 0.6196 GB, free: 5.984 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002147/0.7238, allocations: 286.1 kB / 0.6199 GB, free: 5.855 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004356/0.7242, allocations: 385 kB / 0.6203 GB, free: 5.723 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005861/0.7301, allocations: 3.601 MB / 0.6238 GB, free: 3.305 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.854e-05/0.7302, allocations: 11.69 kB / 0.6238 GB, free: 3.297 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002557/0.7304, allocations: 154.5 kB / 0.624 GB, free: 3.184 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.885e-05/0.7305, allocations: 92.56 kB / 0.624 GB, free: 3.184 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004672/0.7352, allocations: 2.286 MB / 0.6263 GB, free: 1.449 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01985/0.7551, allocations: 14.49 MB / 0.6404 GB, free: 2.723 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002703/0.7578, allocations: 1.349 MB / 0.6417 GB, free: 1.363 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.77e-05/0.7579, allocations: 17.31 kB / 0.6418 GB, free: 1.348 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.289e-05/0.758, allocations: 51.81 kB / 0.6418 GB, free: 1.289 MB / 410.7 MB Notification: Performance of pre-optimization done (n=133): time 3.486e-06/0.758, allocations: 4 kB / 0.6418 GB, free: 1.285 MB / 410.7 MB Notification: Performance of matching and sorting (n=133): time 0.003518/0.7615, allocations: 1.776 MB / 0.6435 GB, free: 15.5 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.716e-05/0.7616, allocations: 68.67 kB / 0.6436 GB, free: 15.42 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002086/0.7637, allocations: 1.293 MB / 0.6449 GB, free: 14.13 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001333/0.7638, allocations: 49.7 kB / 0.6449 GB, free: 14.07 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001196/0.765, allocations: 1.586 MB / 0.6465 GB, free: 12.48 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004994/0.7655, allocations: 0.4918 MB / 0.647 GB, free: 11.99 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.221e-05/0.7656, allocations: 36 kB / 0.647 GB, free: 11.95 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.7658, allocations: 373.8 kB / 0.6473 GB, free: 11.58 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001065/0.7669, allocations: 0.5896 MB / 0.6479 GB, free: 10.99 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001371/0.7682, allocations: 1.067 MB / 0.649 GB, free: 9.723 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001262/0.7695, allocations: 0.7561 MB / 0.6497 GB, free: 8.965 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.726e-06/0.7695, allocations: 4 kB / 0.6497 GB, free: 8.961 MB / 426.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.003419/0.773, allocations: 1.956 MB / 0.6516 GB, free: 6.996 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.786e-05/0.773, allocations: 12 kB / 0.6516 GB, free: 6.984 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.179e-05/0.773, allocations: 19.94 kB / 0.6516 GB, free: 6.965 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.305e-05/0.7731, allocations: 28 kB / 0.6517 GB, free: 6.938 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001303/0.7744, allocations: 351.4 kB / 0.652 GB, free: 6.594 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.07e-05/0.7744, allocations: 40.23 kB / 0.652 GB, free: 6.555 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00111/0.7756, allocations: 150.6 kB / 0.6522 GB, free: 6.406 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000119/0.7757, allocations: 75.98 kB / 0.6523 GB, free: 6.332 MB / 426.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.001804/0.7775, allocations: 0.6341 MB / 0.6529 GB, free: 5.691 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003621/0.7779, allocations: 177.8 kB / 0.653 GB, free: 5.516 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004509/0.7783, allocations: 202.7 kB / 0.6532 GB, free: 5.316 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-05/0.7784, allocations: 15.98 kB / 0.6533 GB, free: 5.301 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.422e-05/0.7784, allocations: 4 kB / 0.6533 GB, free: 5.297 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.224e-05/0.7784, allocations: 7.984 kB / 0.6533 GB, free: 5.289 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006087/0.7845, allocations: 3.968 MB / 0.6571 GB, free: 1.281 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/0.7845, allocations: 3.984 kB / 0.6571 GB, free: 1.277 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001278/0.7858, allocations: 227.7 kB / 0.6574 GB, free: 1.055 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.394e-05/0.7858, allocations: 4 kB / 0.6574 GB, free: 1.051 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001073/0.7859, allocations: 39.98 kB / 0.6574 GB, free: 1.012 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.053e-05/0.786, allocations: 4 kB / 0.6574 GB, free: 1.008 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.786, allocations: 7.891 kB / 0.6574 GB, free: 1 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003502/0.7895, allocations: 2.152 MB / 0.6595 GB, free: 14.84 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000521/0.79, allocations: 278.4 kB / 0.6598 GB, free: 14.55 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001747/0.7902, allocations: 32 kB / 0.6598 GB, free: 14.52 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006141/0.7908, allocations: 43.98 kB / 0.6599 GB, free: 14.47 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001675/0.791, allocations: 77.2 kB / 0.6599 GB, free: 14.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.178e-05/0.7911, allocations: 43.88 kB / 0.66 GB, free: 14.36 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001725/0.7928, allocations: 0.9679 MB / 0.6609 GB, free: 13.39 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.7928, allocations: 0 / 0.6609 GB, free: 13.39 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001773/0.7946, allocations: 0.6284 MB / 0.6615 GB, free: 12.76 MB / 442.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.003689/0.7983, allocations: 2.763 MB / 0.6642 GB, free: 9.969 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002727/0.801, allocations: 1.458 MB / 0.6657 GB, free: 8.512 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.8011, allocations: 1.062 kB / 0.6657 GB, free: 8.512 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001075/0.8021, allocations: 0.6634 MB / 0.6663 GB, free: 7.848 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002129/0.8043, allocations: 284.1 kB / 0.6666 GB, free: 7.574 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0411/0.8454, allocations: 24.4 MB / 0.6904 GB, free: 14.07 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003747/0.8492, allocations: 1.846 MB / 0.6922 GB, free: 12.2 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001491/0.8508, allocations: 176.5 kB / 0.6924 GB, free: 12.02 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002644/0.8534, allocations: 1.265 MB / 0.6936 GB, free: 10.75 MB / 474.7 MB Notification: Performance of SimCode: time 2.074e-06/0.8535, allocations: 0 / 0.6936 GB, free: 10.75 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07862/0.9321, allocations: 35.21 MB / 0.728 GB, free: 7.734 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001963/0.9323, allocations: 200.2 kB / 0.7282 GB, free: 7.5 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.164/4.097, allocations: 7.812 kB / 0.7282 GB, free: 7.496 MB / 0.4948 GB (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)