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.001674/0.001674, 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.381/1.381, allocations: 221.5 MB / 229.6 MB, free: 7.594 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.00103/0.00103, allocations: 87.55 kB / 280.5 MB, free: 5.336 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1749/0.1749, allocations: 28.84 MB / 360.1 MB, free: 2.227 MB / 250.7 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 2.004e-05/2.005e-05, allocations: 4 kB / 423.9 MB, free: 32.12 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/0.1205, allocations: 57.49 MB / 481.4 MB, free: 6.742 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4689/0.5895, allocations: 81.28 MB / 0.5495 GB, free: 10.61 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002587/0.5899, allocations: 63.8 kB / 0.5495 GB, free: 10.61 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1009/0.6908, allocations: 49.36 MB / 0.5977 GB, free: 14.12 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.015e-06/0.6908, allocations: 8 kB / 0.5977 GB, free: 14.12 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001982/0.691, allocations: 84 kB / 0.5978 GB, free: 14.04 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.004268/0.6953, allocations: 2.735 MB / 0.6005 GB, free: 11.25 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.168e-05/0.6954, allocations: 15.98 kB / 0.6005 GB, free: 11.24 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005931/0.696, allocations: 414.9 kB / 0.6009 GB, free: 10.83 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002748/0.6987, allocations: 2.01 MB / 0.6029 GB, free: 8.801 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001189/0.6989, allocations: 124 kB / 0.603 GB, free: 8.68 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003432/0.6992, allocations: 231.8 kB / 0.6032 GB, free: 8.453 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003567/0.7028, allocations: 1.882 MB / 0.605 GB, free: 6.57 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00489/0.7077, allocations: 2.965 MB / 0.6079 GB, free: 3.379 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.062e-05/0.7078, allocations: 15.86 kB / 0.6079 GB, free: 3.363 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001837/0.708, allocations: 8 kB / 0.6079 GB, free: 3.355 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-05/0.708, allocations: 92 kB / 0.608 GB, free: 3.266 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01589/0.7239, allocations: 13.89 MB / 0.6216 GB, free: 5.16 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002058/0.726, allocations: 1.221 MB / 0.6228 GB, free: 3.93 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007539/0.7268, allocations: 0.5398 MB / 0.6233 GB, free: 3.387 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.387e-05/0.7269, allocations: 21.25 kB / 0.6233 GB, free: 3.363 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.116e-05/0.7269, allocations: 43.88 kB / 0.6234 GB, free: 3.312 MB / 410.7 MB Notification: Performance of pre-optimization done (n=133): time 3.737e-06/0.7269, allocations: 0 / 0.6234 GB, free: 3.312 MB / 410.7 MB Notification: Performance of matching and sorting (n=133): time 0.001896/0.7289, allocations: 1.15 MB / 0.6245 GB, free: 2.152 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.076e-05/0.7289, allocations: 64.72 kB / 0.6246 GB, free: 2.078 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001629/0.7305, allocations: 1.199 MB / 0.6257 GB, free: 0.8828 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.964e-05/0.7306, allocations: 25.7 kB / 0.6258 GB, free: 0.8516 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001055/0.7317, allocations: 1.575 MB / 0.6273 GB, free: 15.26 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000425/0.7321, allocations: 480.9 kB / 0.6278 GB, free: 14.78 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.31e-05/0.7322, allocations: 0 / 0.6278 GB, free: 14.78 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001777/0.7324, allocations: 373.9 kB / 0.6281 GB, free: 14.41 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008189/0.7332, allocations: 0.5194 MB / 0.6286 GB, free: 13.89 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001142/0.7344, allocations: 0.9814 MB / 0.6296 GB, free: 12.7 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001/0.7354, allocations: 0.6778 MB / 0.6302 GB, free: 12.03 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.365e-06/0.7354, allocations: 4 kB / 0.6302 GB, free: 12.03 MB / 426.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.002504/0.7379, allocations: 1.683 MB / 0.6319 GB, free: 10.34 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.728e-05/0.7379, allocations: 12 kB / 0.6319 GB, free: 10.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.983e-05/0.738, allocations: 15.98 kB / 0.6319 GB, free: 10.31 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.278e-05/0.738, allocations: 28 kB / 0.6319 GB, free: 10.28 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001286/0.7393, allocations: 351.4 kB / 0.6323 GB, free: 9.938 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.416e-05/0.7393, allocations: 35.86 kB / 0.6323 GB, free: 9.902 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008203/0.7402, allocations: 114.8 kB / 0.6324 GB, free: 9.789 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000108/0.7403, allocations: 68 kB / 0.6325 GB, free: 9.723 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.0002515/0.7406, allocations: 192.3 kB / 0.6327 GB, free: 9.531 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001659/0.7422, allocations: 1.146 MB / 0.6338 GB, free: 8.379 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002179/0.7424, allocations: 173.8 kB / 0.6339 GB, free: 8.207 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00047/0.7429, allocations: 186.6 kB / 0.6341 GB, free: 8.02 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-05/0.7429, allocations: 16 kB / 0.6341 GB, free: 8.004 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.743, allocations: 0 / 0.6341 GB, free: 8.004 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.278e-05/0.743, allocations: 11.97 kB / 0.6342 GB, free: 7.992 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004707/0.7477, allocations: 3.389 MB / 0.6375 GB, free: 4.582 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.7477, allocations: 0 / 0.6375 GB, free: 4.582 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001206/0.7489, allocations: 231.7 kB / 0.6377 GB, free: 4.355 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.046e-05/0.7489, allocations: 4 kB / 0.6377 GB, free: 4.352 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.084e-05/0.749, allocations: 16 kB / 0.6377 GB, free: 4.336 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.256e-06/0.749, allocations: 4 kB / 0.6377 GB, free: 4.332 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.7491, allocations: 7.938 kB / 0.6377 GB, free: 4.324 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002692/0.7518, allocations: 1.96 MB / 0.6396 GB, free: 2.355 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003367/0.7521, allocations: 270.6 kB / 0.6399 GB, free: 2.07 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001875/0.7523, allocations: 12 kB / 0.6399 GB, free: 2.059 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006066/0.7529, allocations: 15.98 kB / 0.6399 GB, free: 2.043 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001546/0.7531, allocations: 77.2 kB / 0.64 GB, free: 1.965 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.483e-05/0.7531, allocations: 28 kB / 0.64 GB, free: 1.938 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00139/0.7545, allocations: 0.8782 MB / 0.6409 GB, free: 1.066 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7546, allocations: 0 / 0.6409 GB, free: 1.066 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001456/0.756, allocations: 0.5737 MB / 0.6414 GB, free: 500 kB / 426.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.003144/0.7592, allocations: 2.535 MB / 0.6439 GB, free: 13.92 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002118/0.7613, allocations: 1.279 MB / 0.6452 GB, free: 12.64 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.189e-06/0.7613, allocations: 8.125 kB / 0.6452 GB, free: 12.63 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008104/0.7621, allocations: 0.5946 MB / 0.6457 GB, free: 12.04 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00121/0.7633, allocations: 265.6 kB / 0.646 GB, free: 11.78 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008744/0.7721, allocations: 4.322 MB / 0.6502 GB, free: 7.395 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00194/0.7741, allocations: 1.846 MB / 0.652 GB, free: 5.52 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0007942/0.7749, allocations: 176.5 kB / 0.6522 GB, free: 5.344 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001839/0.7767, allocations: 1.261 MB / 0.6534 GB, free: 4.086 MB / 442.7 MB Notification: Performance of SimCode: time 4.71e-07/0.7767, allocations: 0 / 0.6534 GB, free: 4.086 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07074/0.8475, allocations: 33.68 MB / 0.6863 GB, free: 2.414 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002294/0.8478, allocations: 176.7 kB / 0.6865 GB, free: 2.203 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.89/3.738, allocations: 0 / 0.6865 GB, free: 2.203 MB / 474.7 MB (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)