Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterNormalNoise.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.InventoryForresterNormalNoise,fileNamePrefix="SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterNormalNoise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterNormalNoise,fileNamePrefix="SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterNormalNoise",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.00104/0.00104, allocations: 175 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.418/1.418, allocations: 221.4 MB / 234.6 MB, free: 14.45 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.001489/0.001489, allocations: 94.61 kB / 285.6 MB, free: 12.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.5543/0.5543, allocations: 28.82 MB / 365.3 MB, free: 42.04 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.375e-05/3.378e-05, allocations: 4 kB / 430.8 MB, free: 4.332 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1424/0.1424, allocations: 57.46 MB / 488.2 MB, free: 10.8 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5103/0.6528, allocations: 81.69 MB / 0.5566 GB, free: 23.77 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003155/0.6532, allocations: 63 kB / 0.5566 GB, free: 23.75 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1165/0.7697, allocations: 49.88 MB / 0.6053 GB, free: 2.012 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.7698, allocations: 0 / 0.6053 GB, free: 2.012 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004794/0.7703, allocations: 95.92 kB / 0.6054 GB, free: 1.918 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.008876/0.7792, allocations: 2.736 MB / 0.6081 GB, free: 15.37 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.052e-05/0.7793, allocations: 12.03 kB / 0.6081 GB, free: 15.36 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002133/0.7814, allocations: 0.4996 MB / 0.6086 GB, free: 15.08 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002008/0.7834, allocations: 422.8 kB / 0.609 GB, free: 14.66 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005467/0.7889, allocations: 2.027 MB / 0.611 GB, free: 12.59 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003467/0.7893, allocations: 283.5 kB / 0.6112 GB, free: 12.31 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001116/0.7904, allocations: 383.9 kB / 0.6116 GB, free: 11.94 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008812/0.7992, allocations: 3.516 MB / 0.615 GB, free: 8.191 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.968e-05/0.7993, allocations: 15.92 kB / 0.6151 GB, free: 8.176 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003013/0.7996, allocations: 156 kB / 0.6152 GB, free: 8.023 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.918e-05/0.7997, allocations: 92 kB / 0.6153 GB, free: 7.934 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004385/0.8041, allocations: 2.159 MB / 0.6174 GB, free: 5.77 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01935/0.8235, allocations: 14.48 MB / 0.6315 GB, free: 6.961 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002211/0.8257, allocations: 1.285 MB / 0.6328 GB, free: 5.664 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008119/0.8266, allocations: 0.5846 MB / 0.6334 GB, free: 5.074 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.411e-05/0.8267, allocations: 13.31 kB / 0.6334 GB, free: 5.059 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001099/0.8278, allocations: 0.6304 MB / 0.634 GB, free: 4.418 MB / 442.7 MB Notification: Performance of pre-optimization done (n=135): time 3.336e-06/0.8278, allocations: 0 / 0.634 GB, free: 4.418 MB / 442.7 MB Notification: Performance of matching and sorting (n=135): time 0.002303/0.8301, allocations: 1.243 MB / 0.6352 GB, free: 3.164 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.324e-05/0.8302, allocations: 68.72 kB / 0.6353 GB, free: 3.086 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001953/0.8321, allocations: 1.273 MB / 0.6365 GB, free: 1.812 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000126/0.8323, allocations: 53.7 kB / 0.6366 GB, free: 1.754 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001555/0.8338, allocations: 1.59 MB / 0.6381 GB, free: 144 kB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004793/0.8343, allocations: 497 kB / 0.6386 GB, free: 15.64 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.252e-05/0.8344, allocations: 40 kB / 0.6386 GB, free: 15.61 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001798/0.8346, allocations: 373.9 kB / 0.639 GB, free: 15.23 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009879/0.8356, allocations: 0.5469 MB / 0.6395 GB, free: 14.69 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001242/0.8368, allocations: 1.038 MB / 0.6405 GB, free: 13.44 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001131/0.838, allocations: 0.734 MB / 0.6413 GB, free: 12.71 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.478e-06/0.838, allocations: 4 kB / 0.6413 GB, free: 12.71 MB / 458.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003029/0.841, allocations: 1.897 MB / 0.6431 GB, free: 10.8 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.01e-05/0.8411, allocations: 15.94 kB / 0.6431 GB, free: 10.79 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.874e-05/0.8411, allocations: 12 kB / 0.6431 GB, free: 10.77 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.995e-05/0.8411, allocations: 28 kB / 0.6432 GB, free: 10.75 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001272/0.8424, allocations: 352 kB / 0.6435 GB, free: 10.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.833e-05/0.8425, allocations: 47.62 kB / 0.6435 GB, free: 10.36 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009831/0.8435, allocations: 150.5 kB / 0.6437 GB, free: 10.21 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001615/0.8436, allocations: 76 kB / 0.6438 GB, free: 10.14 MB / 458.7 MB Warning: Assuming fixed start value for the following 1 variables: NoiseNormal1.y:DISCRETE(fixed = false ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 36 ($whenCondition1,$PRE.NoiseNormal1.y,NoiseNormal1.y,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 (235): * Single equations (assignments): 235 * 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.0003479/0.844, allocations: 232.4 kB / 0.644 GB, free: 9.906 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002506/0.8442, allocations: 177.8 kB / 0.6442 GB, free: 9.73 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005553/0.8448, allocations: 202.7 kB / 0.6443 GB, free: 9.527 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.14e-05/0.8448, allocations: 16 kB / 0.6444 GB, free: 9.512 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.653e-05/0.8449, allocations: 3.953 kB / 0.6444 GB, free: 9.508 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.288e-05/0.8449, allocations: 7.969 kB / 0.6444 GB, free: 9.5 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005477/0.8504, allocations: 3.902 MB / 0.6482 GB, free: 5.527 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.82e-06/0.8504, allocations: 3.984 kB / 0.6482 GB, free: 5.523 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00119/0.8516, allocations: 227.7 kB / 0.6484 GB, free: 5.301 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.085e-05/0.8516, allocations: 4 kB / 0.6484 GB, free: 5.297 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.461e-05/0.8517, allocations: 40 kB / 0.6484 GB, free: 5.258 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.805e-06/0.8517, allocations: 11.95 kB / 0.6485 GB, free: 5.246 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.8517, allocations: 0 / 0.6485 GB, free: 5.246 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00283/0.8546, allocations: 2.06 MB / 0.6505 GB, free: 3.176 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003641/0.8549, allocations: 274.5 kB / 0.6507 GB, free: 2.887 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000177/0.8551, allocations: 36 kB / 0.6508 GB, free: 2.852 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006475/0.8558, allocations: 35.98 kB / 0.6508 GB, free: 2.816 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00017/0.856, allocations: 85.14 kB / 0.6509 GB, free: 2.73 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.208e-05/0.856, allocations: 35.92 kB / 0.6509 GB, free: 2.695 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001533/0.8576, allocations: 0.9518 MB / 0.6518 GB, free: 1.75 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8576, allocations: 0 / 0.6518 GB, free: 1.75 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001631/0.8592, allocations: 0.6361 MB / 0.6525 GB, free: 1.109 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: 2 ($whenCondition1,NoiseNormal1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (135): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.003268/0.8625, allocations: 2.673 MB / 0.6551 GB, free: 14.4 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002314/0.8648, allocations: 1.393 MB / 0.6564 GB, free: 13.01 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.8649, allocations: 0 / 0.6564 GB, free: 13.01 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008661/0.8657, allocations: 0.6286 MB / 0.6571 GB, free: 12.38 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001277/0.867, allocations: 294.2 kB / 0.6573 GB, free: 12.1 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007934/0.875, allocations: 4.464 MB / 0.6617 GB, free: 7.59 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00144/0.8764, allocations: 1.846 MB / 0.6635 GB, free: 5.715 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0008208/0.8773, allocations: 176.5 kB / 0.6637 GB, free: 5.539 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001458/0.8787, allocations: 1.269 MB / 0.6649 GB, free: 4.27 MB / 474.7 MB Notification: Performance of SimCode: time 1.213e-06/0.8787, allocations: 0 / 0.6649 GB, free: 4.27 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3188/1.198, allocations: 35.54 MB / 0.6996 GB, free: 94.9 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001738/1.198, allocations: 182.5 kB / 0.6998 GB, free: 94.68 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.64/3.838, allocations: 0 / 0.6998 GB, free: 94.68 MB / 490.7 MB (rm -f SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterNormalNoise.pipe ; mkfifo SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterNormalNoise.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterNormalNoise.pipe >> ../files/SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterNormalNoise.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterNormalNoise_fmu --startTime=0 --stopTime=520 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterNormalNoise.fmu > SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterNormalNoise.pipe 2>&1)