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.001277/0.001277, allocations: 173.9 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.355/1.355, allocations: 221.5 MB / 229.6 MB, free: 7.574 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.0009472/0.0009474, allocations: 91.61 kB / 280.5 MB, free: 5.332 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1903/0.1903, allocations: 28.83 MB / 360.1 MB, free: 2.223 MB / 250.7 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 1.792e-05/1.794e-05, allocations: 0 / 423.9 MB, free: 32.11 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1247, allocations: 57.49 MB / 481.4 MB, free: 6.738 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3652/0.49, allocations: 81.84 MB / 0.55 GB, free: 10.65 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001758/0.4902, allocations: 70.38 kB / 0.5501 GB, free: 10.65 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.104/0.5943, allocations: 49.64 MB / 0.5986 GB, free: 13.46 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.063e-06/0.5943, allocations: 4 kB / 0.5986 GB, free: 13.46 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003415/0.5947, allocations: 84 kB / 0.5986 GB, free: 13.38 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.007648/0.6023, allocations: 2.75 MB / 0.6013 GB, free: 10.58 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.469e-05/0.6024, allocations: 11.98 kB / 0.6013 GB, free: 10.57 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001567/0.604, allocations: 414.9 kB / 0.6017 GB, free: 10.16 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003858/0.6079, allocations: 2.019 MB / 0.6037 GB, free: 8.125 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001479/0.608, allocations: 120 kB / 0.6038 GB, free: 8.008 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005599/0.6086, allocations: 227.9 kB / 0.604 GB, free: 7.785 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004419/0.613, allocations: 1.881 MB / 0.6059 GB, free: 5.902 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005871/0.6189, allocations: 2.965 MB / 0.6088 GB, free: 2.711 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.837e-05/0.619, allocations: 11.88 kB / 0.6088 GB, free: 2.699 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001846/0.6192, allocations: 8 kB / 0.6088 GB, free: 2.691 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.544e-05/0.6193, allocations: 96 kB / 0.6089 GB, free: 2.598 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02007/0.6394, allocations: 13.88 MB / 0.6224 GB, free: 4.496 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002712/0.6422, allocations: 1.225 MB / 0.6236 GB, free: 3.262 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009936/0.6432, allocations: 0.5476 MB / 0.6242 GB, free: 2.711 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.224e-05/0.6433, allocations: 13.31 kB / 0.6242 GB, free: 2.699 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.731e-05/0.6434, allocations: 47.88 kB / 0.6242 GB, free: 2.641 MB / 410.7 MB Notification: Performance of pre-optimization done (n=133): time 3.336e-06/0.6434, allocations: 4 kB / 0.6242 GB, free: 2.637 MB / 410.7 MB Notification: Performance of matching and sorting (n=133): time 0.002455/0.6458, allocations: 1.154 MB / 0.6254 GB, free: 1.473 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.783e-05/0.6459, allocations: 64.72 kB / 0.6254 GB, free: 1.398 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002982/0.6489, allocations: 1.195 MB / 0.6266 GB, free: 212 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002317/0.6492, allocations: 25.7 kB / 0.6266 GB, free: 180 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001364/0.6506, allocations: 1.575 MB / 0.6281 GB, free: 14.58 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007328/0.6513, allocations: 484.8 kB / 0.6286 GB, free: 14.1 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001634/0.6515, allocations: 0 / 0.6286 GB, free: 14.1 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002142/0.6517, allocations: 373.9 kB / 0.629 GB, free: 13.73 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001131/0.6529, allocations: 0.5156 MB / 0.6295 GB, free: 13.21 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001402/0.6543, allocations: 0.9775 MB / 0.6304 GB, free: 12.04 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001337/0.6556, allocations: 0.6855 MB / 0.6311 GB, free: 11.35 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.386e-05/0.6557, allocations: 4 kB / 0.6311 GB, free: 11.35 MB / 426.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.003465/0.6591, allocations: 1.687 MB / 0.6327 GB, free: 9.652 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.007e-05/0.6592, allocations: 8.188 kB / 0.6327 GB, free: 9.645 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.61e-05/0.6592, allocations: 20 kB / 0.6328 GB, free: 9.625 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.629e-05/0.6593, allocations: 28 kB / 0.6328 GB, free: 9.598 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001524/0.6608, allocations: 355.4 kB / 0.6331 GB, free: 9.25 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.581e-05/0.6609, allocations: 35.86 kB / 0.6332 GB, free: 9.215 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001288/0.6622, allocations: 106.7 kB / 0.6333 GB, free: 9.109 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000207/0.6624, allocations: 75.98 kB / 0.6333 GB, free: 9.035 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 () * 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.0003734/0.6628, allocations: 188.3 kB / 0.6335 GB, free: 8.848 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002305/0.6651, allocations: 1.154 MB / 0.6346 GB, free: 7.688 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005513/0.6657, allocations: 173.8 kB / 0.6348 GB, free: 7.516 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006747/0.6663, allocations: 194.7 kB / 0.635 GB, free: 7.32 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.301e-05/0.6664, allocations: 12 kB / 0.635 GB, free: 7.309 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.159e-05/0.6664, allocations: 0 / 0.635 GB, free: 7.309 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.457e-05/0.6664, allocations: 7.969 kB / 0.635 GB, free: 7.301 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007029/0.6734, allocations: 3.397 MB / 0.6383 GB, free: 3.883 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.732e-06/0.6735, allocations: 0 / 0.6383 GB, free: 3.883 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001361/0.6749, allocations: 231.7 kB / 0.6386 GB, free: 3.656 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.06e-05/0.6749, allocations: 4 kB / 0.6386 GB, free: 3.652 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001225/0.675, allocations: 16 kB / 0.6386 GB, free: 3.637 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.065e-06/0.6751, allocations: 4 kB / 0.6386 GB, free: 3.633 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.6751, allocations: 0 / 0.6386 GB, free: 3.633 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003272/0.6783, allocations: 1.964 MB / 0.6405 GB, free: 1.66 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000611/0.679, allocations: 278.4 kB / 0.6408 GB, free: 1.367 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003551/0.6793, allocations: 12 kB / 0.6408 GB, free: 1.355 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007995/0.6802, allocations: 15.98 kB / 0.6408 GB, free: 1.34 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001776/0.6804, allocations: 77.2 kB / 0.6409 GB, free: 1.266 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.317e-05/0.6804, allocations: 28 kB / 0.6409 GB, free: 1.238 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002003/0.6825, allocations: 0.8784 MB / 0.6417 GB, free: 376 kB / 426.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.6825, allocations: 4 kB / 0.6418 GB, free: 372 kB / 426.7 MB Notification: Performance of remove unused functions: time 0.002006/0.6845, allocations: 0.57 MB / 0.6423 GB, free: 15.79 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 () * 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.003873/0.6884, allocations: 2.547 MB / 0.6448 GB, free: 13.2 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002482/0.6909, allocations: 1.291 MB / 0.6461 GB, free: 11.91 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.6909, allocations: 0 / 0.6461 GB, free: 11.91 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009724/0.6919, allocations: 0.5946 MB / 0.6466 GB, free: 11.32 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001734/0.6936, allocations: 257.7 kB / 0.6469 GB, free: 11.07 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0116/0.7053, allocations: 4.323 MB / 0.6511 GB, free: 6.684 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00239/0.7077, allocations: 1.842 MB / 0.6529 GB, free: 4.816 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001269/0.709, allocations: 176.5 kB / 0.6531 GB, free: 4.641 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002114/0.7111, allocations: 1.265 MB / 0.6543 GB, free: 3.379 MB / 442.7 MB Notification: Performance of SimCode: time 9.62e-07/0.7112, allocations: 0 / 0.6543 GB, free: 3.379 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07763/0.7888, allocations: 33.75 MB / 0.6873 GB, free: 1.637 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002321/0.7891, allocations: 160.2 kB / 0.6874 GB, free: 1.449 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.1/3.889, allocations: 0 / 0.6874 GB, free: 1.449 MB / 474.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)