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.001531/0.001531, allocations: 171.9 kB / 7.646 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.373/1.373, allocations: 221.5 MB / 229.6 MB, free: 7.578 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.0009123/0.0009122, allocations: 90.14 kB / 280.5 MB, free: 5.328 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1922/0.1922, allocations: 28.84 MB / 360.1 MB, free: 2.203 MB / 250.7 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 1.523e-05/1.556e-05, allocations: 4 kB / 423.9 MB, free: 32.09 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1253/0.1254, allocations: 57.5 MB / 481.4 MB, free: 6.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.424/0.5494, allocations: 81.84 MB / 0.55 GB, free: 10.43 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002187/0.5497, allocations: 71.34 kB / 0.5501 GB, free: 10.43 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.107/0.6567, allocations: 49.64 MB / 0.5985 GB, free: 13.43 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.6567, allocations: 0 / 0.5985 GB, free: 13.43 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002582/0.657, allocations: 91.83 kB / 0.5986 GB, free: 13.34 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.005835/0.6629, allocations: 2.743 MB / 0.6013 GB, free: 10.55 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.666e-05/0.6629, allocations: 11.98 kB / 0.6013 GB, free: 10.54 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009867/0.6639, allocations: 418.9 kB / 0.6017 GB, free: 10.13 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003388/0.6673, allocations: 2.016 MB / 0.6037 GB, free: 8.098 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001439/0.6675, allocations: 120 kB / 0.6038 GB, free: 7.98 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004007/0.6679, allocations: 231.9 kB / 0.604 GB, free: 7.754 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004254/0.6721, allocations: 1.882 MB / 0.6059 GB, free: 5.871 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005637/0.6778, allocations: 2.961 MB / 0.6088 GB, free: 2.684 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.476e-05/0.6779, allocations: 19.88 kB / 0.6088 GB, free: 2.664 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001761/0.6781, allocations: 4 kB / 0.6088 GB, free: 2.66 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.179e-05/0.6782, allocations: 96 kB / 0.6089 GB, free: 2.566 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02084/0.699, allocations: 13.87 MB / 0.6224 GB, free: 4.473 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002476/0.7016, allocations: 1.229 MB / 0.6236 GB, free: 3.234 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000849/0.7024, allocations: 0.5437 MB / 0.6242 GB, free: 2.688 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.176e-05/0.7025, allocations: 21.25 kB / 0.6242 GB, free: 2.668 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.077e-05/0.7026, allocations: 47.88 kB / 0.6242 GB, free: 2.609 MB / 410.7 MB Notification: Performance of pre-optimization done (n=133): time 3.888e-06/0.7026, allocations: 0 / 0.6242 GB, free: 2.609 MB / 410.7 MB Notification: Performance of matching and sorting (n=133): time 0.002409/0.705, allocations: 1.154 MB / 0.6253 GB, free: 1.445 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.705e-05/0.7051, allocations: 64.72 kB / 0.6254 GB, free: 1.371 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00225/0.7074, allocations: 1.199 MB / 0.6266 GB, free: 180 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001069/0.7075, allocations: 25.7 kB / 0.6266 GB, free: 148 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001221/0.7087, allocations: 1.573 MB / 0.6281 GB, free: 14.55 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005232/0.7092, allocations: 480.8 kB / 0.6286 GB, free: 14.08 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.6e-05/0.7093, allocations: 4 kB / 0.6286 GB, free: 14.07 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002007/0.7095, allocations: 381.8 kB / 0.629 GB, free: 13.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008685/0.7104, allocations: 0.5078 MB / 0.6295 GB, free: 13.19 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001224/0.7116, allocations: 0.9813 MB / 0.6304 GB, free: 12 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001071/0.7127, allocations: 0.6817 MB / 0.6311 GB, free: 11.32 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.051e-05/0.7127, allocations: 4 kB / 0.6311 GB, free: 11.32 MB / 426.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.003047/0.7158, allocations: 1.695 MB / 0.6327 GB, free: 9.617 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.569e-05/0.7158, allocations: 9.562 kB / 0.6328 GB, free: 9.609 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.299e-05/0.7159, allocations: 16 kB / 0.6328 GB, free: 9.594 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.834e-05/0.7159, allocations: 28 kB / 0.6328 GB, free: 9.566 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001426/0.7173, allocations: 351.4 kB / 0.6331 GB, free: 9.223 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.422e-05/0.7174, allocations: 35.86 kB / 0.6332 GB, free: 9.188 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001079/0.7185, allocations: 114.7 kB / 0.6333 GB, free: 9.074 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001213/0.7186, allocations: 68 kB / 0.6333 GB, free: 9.008 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.0003048/0.7189, allocations: 188.3 kB / 0.6335 GB, free: 8.82 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001906/0.7208, allocations: 1.154 MB / 0.6346 GB, free: 7.66 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002562/0.7211, allocations: 173.8 kB / 0.6348 GB, free: 7.488 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006059/0.7217, allocations: 190.7 kB / 0.635 GB, free: 7.297 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-05/0.7217, allocations: 12 kB / 0.635 GB, free: 7.285 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.7218, allocations: 0 / 0.635 GB, free: 7.285 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.289e-05/0.7218, allocations: 3.984 kB / 0.635 GB, free: 7.281 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005531/0.7273, allocations: 3.403 MB / 0.6383 GB, free: 3.855 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/0.7274, allocations: 4 kB / 0.6383 GB, free: 3.852 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001288/0.7286, allocations: 219.7 kB / 0.6385 GB, free: 3.637 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.265e-05/0.7287, allocations: 4 kB / 0.6385 GB, free: 3.633 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.082e-05/0.7288, allocations: 23.98 kB / 0.6386 GB, free: 3.609 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.003e-06/0.7288, allocations: 4 kB / 0.6386 GB, free: 3.605 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.199e-06/0.7288, allocations: 4 kB / 0.6386 GB, free: 3.602 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003032/0.7318, allocations: 1.964 MB / 0.6405 GB, free: 1.629 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003992/0.7323, allocations: 270.5 kB / 0.6408 GB, free: 1.344 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001746/0.7324, allocations: 12 kB / 0.6408 GB, free: 1.332 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006041/0.733, allocations: 15.98 kB / 0.6408 GB, free: 1.316 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001804/0.7332, allocations: 73.2 kB / 0.6409 GB, free: 1.246 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.138e-05/0.7333, allocations: 35.98 kB / 0.6409 GB, free: 1.211 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00146/0.7348, allocations: 0.8823 MB / 0.6417 GB, free: 344 kB / 426.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.7348, allocations: 3.938 kB / 0.6418 GB, free: 340 kB / 426.7 MB Notification: Performance of remove unused functions: time 0.001743/0.7365, allocations: 0.5699 MB / 0.6423 GB, free: 15.75 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.003278/0.7398, allocations: 2.539 MB / 0.6448 GB, free: 13.18 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002473/0.7423, allocations: 1.287 MB / 0.646 GB, free: 11.89 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.7423, allocations: 0 / 0.646 GB, free: 11.89 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008951/0.7432, allocations: 0.6065 MB / 0.6466 GB, free: 11.29 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001617/0.7449, allocations: 261.7 kB / 0.6469 GB, free: 11.03 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01021/0.7551, allocations: 4.319 MB / 0.6511 GB, free: 6.652 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001575/0.7567, allocations: 1.846 MB / 0.6529 GB, free: 4.781 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0008553/0.7576, allocations: 172.5 kB / 0.6531 GB, free: 4.609 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001599/0.7592, allocations: 1.265 MB / 0.6543 GB, free: 3.348 MB / 442.7 MB Notification: Performance of SimCode: time 6.81e-07/0.7592, allocations: 0 / 0.6543 GB, free: 3.348 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07129/0.8305, allocations: 33.73 MB / 0.6872 GB, free: 1.625 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002298/0.8308, allocations: 181.9 kB / 0.6874 GB, free: 1.426 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.762/3.593, allocations: 0 / 0.6874 GB, free: 1.426 MB / 474.7 MB (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)