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.00157/0.00157, allocations: 174.9 kB / 12.73 MB, free: 2.59 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.595/1.595, allocations: 221.4 MB / 234.6 MB, free: 14.39 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009392/0.0009391, allocations: 94.06 kB / 285.6 MB, free: 12.99 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.4716/0.4716, allocations: 28.83 MB / 365.3 MB, free: 41.98 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 3.87e-05/3.913e-05, allocations: 0 / 430.8 MB, free: 4.336 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1529/0.153, allocations: 57.46 MB / 488.2 MB, free: 10.8 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5261/0.6791, allocations: 81.94 MB / 0.5568 GB, free: 23.61 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002133/0.6794, allocations: 66.91 kB / 0.5569 GB, free: 23.59 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1076/0.787, allocations: 49.84 MB / 0.6055 GB, free: 1.773 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.787, allocations: 0 / 0.6055 GB, free: 1.773 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004159/0.7874, allocations: 91.92 kB / 0.6056 GB, free: 1.684 MB / 410.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.008796/0.7962, allocations: 2.734 MB / 0.6083 GB, free: 15.14 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.246e-05/0.7963, allocations: 12.03 kB / 0.6083 GB, free: 15.12 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002361/0.7987, allocations: 0.5012 MB / 0.6088 GB, free: 14.85 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00189/0.8006, allocations: 422.8 kB / 0.6092 GB, free: 14.43 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004511/0.8051, allocations: 2.012 MB / 0.6112 GB, free: 12.39 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002905/0.8054, allocations: 287.5 kB / 0.6114 GB, free: 12.11 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009534/0.8064, allocations: 383.9 kB / 0.6118 GB, free: 11.73 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008472/0.8149, allocations: 3.515 MB / 0.6152 GB, free: 7.992 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.868e-05/0.815, allocations: 11.94 kB / 0.6153 GB, free: 7.98 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004609/0.8155, allocations: 152 kB / 0.6154 GB, free: 7.832 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-05/0.8156, allocations: 99.94 kB / 0.6155 GB, free: 7.734 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004789/0.8204, allocations: 2.163 MB / 0.6176 GB, free: 5.566 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02008/0.8405, allocations: 14.48 MB / 0.6318 GB, free: 6.754 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002395/0.8429, allocations: 1.281 MB / 0.633 GB, free: 5.461 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008788/0.8438, allocations: 0.5828 MB / 0.6336 GB, free: 4.875 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.096e-05/0.8439, allocations: 13.31 kB / 0.6336 GB, free: 4.863 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.019e-05/0.8439, allocations: 43.88 kB / 0.6336 GB, free: 4.809 MB / 442.7 MB Notification: Performance of pre-optimization done (n=133): time 2.434e-06/0.8439, allocations: 0 / 0.6336 GB, free: 4.809 MB / 442.7 MB Notification: Performance of matching and sorting (n=133): time 0.00224/0.8462, allocations: 1.232 MB / 0.6348 GB, free: 3.566 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.169e-05/0.8462, allocations: 64.72 kB / 0.6349 GB, free: 3.492 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002309/0.8486, allocations: 1.273 MB / 0.6361 GB, free: 2.219 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001157/0.8487, allocations: 57.64 kB / 0.6362 GB, free: 2.156 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001024/0.8497, allocations: 1.594 MB / 0.6377 GB, free: 0.5391 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004157/0.8501, allocations: 484.9 kB / 0.6382 GB, free: 60 kB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001002/0.8503, allocations: 36 kB / 0.6382 GB, free: 24 kB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.8504, allocations: 378 kB / 0.6386 GB, free: 15.64 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000972/0.8514, allocations: 0.543 MB / 0.6391 GB, free: 15.11 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001314/0.8527, allocations: 1.02 MB / 0.6401 GB, free: 13.88 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001312/0.8541, allocations: 0.7233 MB / 0.6408 GB, free: 13.16 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.386e-05/0.8541, allocations: 4 kB / 0.6408 GB, free: 13.16 MB / 458.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.003898/0.858, allocations: 1.87 MB / 0.6427 GB, free: 11.28 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.407e-05/0.858, allocations: 12 kB / 0.6427 GB, free: 11.27 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.937e-05/0.8581, allocations: 16 kB / 0.6427 GB, free: 11.25 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.832e-05/0.8581, allocations: 24 kB / 0.6427 GB, free: 11.23 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001415/0.8596, allocations: 351.9 kB / 0.643 GB, free: 10.88 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.385e-05/0.8596, allocations: 43.81 kB / 0.6431 GB, free: 10.84 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001543/0.8612, allocations: 146.6 kB / 0.6432 GB, free: 10.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001932/0.8614, allocations: 72 kB / 0.6433 GB, free: 10.62 MB / 458.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.0004119/0.8618, allocations: 244.3 kB / 0.6435 GB, free: 10.38 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006161/0.8624, allocations: 177.8 kB / 0.6437 GB, free: 10.21 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007199/0.8632, allocations: 202.6 kB / 0.6439 GB, free: 10 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.474e-05/0.8632, allocations: 12 kB / 0.6439 GB, free: 9.992 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.875e-05/0.8632, allocations: 4 kB / 0.6439 GB, free: 9.988 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.177e-05/0.8632, allocations: 11.92 kB / 0.6439 GB, free: 9.977 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007603/0.8709, allocations: 3.886 MB / 0.6477 GB, free: 6.023 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.8709, allocations: 0 / 0.6477 GB, free: 6.023 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001273/0.8722, allocations: 219.7 kB / 0.6479 GB, free: 5.809 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.461e-05/0.8722, allocations: 8 kB / 0.6479 GB, free: 5.801 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001206/0.8723, allocations: 39.98 kB / 0.648 GB, free: 5.762 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.107e-05/0.8723, allocations: 15.89 kB / 0.648 GB, free: 5.746 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.8724, allocations: 0 / 0.648 GB, free: 5.746 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003003/0.8754, allocations: 2.034 MB / 0.65 GB, free: 3.703 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004917/0.8759, allocations: 278.5 kB / 0.6502 GB, free: 3.41 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002477/0.8761, allocations: 32 kB / 0.6503 GB, free: 3.379 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000723/0.8769, allocations: 35.98 kB / 0.6503 GB, free: 3.344 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001463/0.877, allocations: 85.09 kB / 0.6504 GB, free: 3.262 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.507e-05/0.8771, allocations: 31.98 kB / 0.6504 GB, free: 3.23 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001588/0.8787, allocations: 0.9557 MB / 0.6513 GB, free: 2.281 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.8787, allocations: 0 / 0.6513 GB, free: 2.281 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00153/0.8802, allocations: 0.6283 MB / 0.652 GB, free: 1.648 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 () * 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.003137/0.8834, allocations: 2.654 MB / 0.6546 GB, free: 14.96 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002172/0.8856, allocations: 1.37 MB / 0.6559 GB, free: 13.59 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.8856, allocations: 0 / 0.6559 GB, free: 13.59 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008364/0.8864, allocations: 0.6283 MB / 0.6565 GB, free: 12.96 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001211/0.8876, allocations: 288.6 kB / 0.6568 GB, free: 12.68 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01109/0.8987, allocations: 4.452 MB / 0.6611 GB, free: 8.184 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002681/0.9015, allocations: 1.846 MB / 0.6629 GB, free: 6.312 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001271/0.9028, allocations: 176.5 kB / 0.6631 GB, free: 6.137 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00191/0.9047, allocations: 1.269 MB / 0.6643 GB, free: 4.863 MB / 474.7 MB Notification: Performance of SimCode: time 7.82e-07/0.9047, allocations: 0 / 0.6643 GB, free: 4.863 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3403/1.245, allocations: 35.37 MB / 0.6989 GB, free: 96.36 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001579/1.245, allocations: 172.7 kB / 0.699 GB, free: 96.13 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.749/3.994, allocations: 5.094 kB / 0.699 GB, free: 96.13 MB / 490.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)