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.007082/0.007082, allocations: 169.2 kB / 15.11 MB, free: 5.973 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.488/1.488, allocations: 223.2 MB / 239 MB, free: 52 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001096/0.001097, allocations: 99.16 kB / 290.2 MB, free: 4.496 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.232/0.232, allocations: 28.84 MB / 370.2 MB, free: 40 kB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003249/0.0003249, allocations: 12.94 kB / 438.2 MB, free: 88.24 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1248, allocations: 57.48 MB / 495.7 MB, free: 31.62 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4678/0.5927, allocations: 81.75 MB / 0.5639 GB, free: 11.61 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003091/0.593, allocations: 68.52 kB / 0.564 GB, free: 11.61 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1157/0.7087, allocations: 49.86 MB / 0.6127 GB, free: 10.02 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.7088, allocations: 4 kB / 0.6127 GB, free: 10.02 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004308/0.7092, allocations: 87.44 kB / 0.6127 GB, free: 10.01 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.009305/0.7186, allocations: 3.043 MB / 0.6157 GB, free: 8.078 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.22e-05/0.7186, allocations: 7.625 kB / 0.6157 GB, free: 8.078 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002044/0.7207, allocations: 0.5017 MB / 0.6162 GB, free: 7.918 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001166/0.7219, allocations: 413.9 kB / 0.6166 GB, free: 7.707 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003875/0.7257, allocations: 2.028 MB / 0.6186 GB, free: 6.316 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002182/0.726, allocations: 289.8 kB / 0.6189 GB, free: 6.184 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004724/0.7265, allocations: 386.8 kB / 0.6192 GB, free: 6.051 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006681/0.7331, allocations: 3.598 MB / 0.6227 GB, free: 3.625 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.392e-05/0.7333, allocations: 12.94 kB / 0.6228 GB, free: 3.617 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002746/0.7335, allocations: 166.7 kB / 0.6229 GB, free: 3.492 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.168e-05/0.7336, allocations: 92.34 kB / 0.623 GB, free: 3.492 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00424/0.7379, allocations: 2.266 MB / 0.6252 GB, free: 2.316 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01895/0.7568, allocations: 14.48 MB / 0.6394 GB, free: 3.602 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002589/0.7594, allocations: 1.345 MB / 0.6407 GB, free: 2.246 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.269e-05/0.7595, allocations: 21.31 kB / 0.6407 GB, free: 2.227 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001192/0.7607, allocations: 0.6537 MB / 0.6413 GB, free: 1.559 MB / 410.7 MB Notification: Performance of pre-optimization done (n=135): time 3.236e-06/0.7607, allocations: 0 / 0.6413 GB, free: 1.559 MB / 410.7 MB Notification: Performance of matching and sorting (n=135): time 0.003393/0.7641, allocations: 1.772 MB / 0.6431 GB, free: 15.78 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.605e-05/0.7642, allocations: 68.67 kB / 0.6431 GB, free: 15.7 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002125/0.7663, allocations: 1.292 MB / 0.6444 GB, free: 14.41 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001298/0.7665, allocations: 53.7 kB / 0.6444 GB, free: 14.36 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001606/0.7681, allocations: 1.6 MB / 0.646 GB, free: 12.74 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005161/0.7686, allocations: 495.9 kB / 0.6465 GB, free: 12.26 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.516e-05/0.7687, allocations: 40 kB / 0.6465 GB, free: 12.22 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002062/0.7689, allocations: 369.9 kB / 0.6469 GB, free: 11.86 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001094/0.77, allocations: 0.5858 MB / 0.6474 GB, free: 11.27 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001452/0.7715, allocations: 1.073 MB / 0.6485 GB, free: 9.984 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001277/0.7728, allocations: 0.7654 MB / 0.6492 GB, free: 9.223 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.886e-06/0.7728, allocations: 11.94 kB / 0.6492 GB, free: 9.211 MB / 426.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.00362/0.7764, allocations: 1.964 MB / 0.6512 GB, free: 7.238 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.082e-05/0.7765, allocations: 12 kB / 0.6512 GB, free: 7.227 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.373e-05/0.7765, allocations: 16 kB / 0.6512 GB, free: 7.211 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.012e-05/0.7765, allocations: 24 kB / 0.6512 GB, free: 7.188 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001318/0.7779, allocations: 360 kB / 0.6515 GB, free: 6.836 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.431e-05/0.7779, allocations: 31.92 kB / 0.6516 GB, free: 6.805 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00119/0.7791, allocations: 154.5 kB / 0.6517 GB, free: 6.652 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001331/0.7793, allocations: 76 kB / 0.6518 GB, free: 6.578 MB / 426.7 MB Warning: Assuming fixed start value for the following 1 variables: NoiseNormal1.y:DISCRETE(fixed = true ) 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 () * Number of clocked 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.002096/0.7814, allocations: 0.6458 MB / 0.6524 GB, free: 5.926 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004389/0.7818, allocations: 177.8 kB / 0.6526 GB, free: 5.75 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005503/0.7824, allocations: 206.7 kB / 0.6528 GB, free: 5.543 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-05/0.7824, allocations: 15.94 kB / 0.6528 GB, free: 5.527 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.73e-05/0.7824, allocations: 0 / 0.6528 GB, free: 5.527 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.243e-05/0.7824, allocations: 3.984 kB / 0.6528 GB, free: 5.523 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006387/0.7888, allocations: 3.969 MB / 0.6567 GB, free: 1.516 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.826e-06/0.7888, allocations: 3.984 kB / 0.6567 GB, free: 1.512 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001275/0.7901, allocations: 227.7 kB / 0.6569 GB, free: 1.289 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-05/0.7901, allocations: 7.938 kB / 0.6569 GB, free: 1.281 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.876e-05/0.7902, allocations: 36 kB / 0.657 GB, free: 1.246 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.984e-06/0.7903, allocations: 4 kB / 0.657 GB, free: 1.242 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.7903, allocations: 3.953 kB / 0.657 GB, free: 1.238 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003473/0.7938, allocations: 2.163 MB / 0.6591 GB, free: 15.06 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004709/0.7942, allocations: 274.5 kB / 0.6593 GB, free: 14.77 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001739/0.7944, allocations: 36 kB / 0.6594 GB, free: 14.74 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006388/0.7951, allocations: 35.98 kB / 0.6594 GB, free: 14.7 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000169/0.7952, allocations: 73.2 kB / 0.6595 GB, free: 14.63 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.435e-05/0.7953, allocations: 39.94 kB / 0.6595 GB, free: 14.59 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001639/0.797, allocations: 0.9717 MB / 0.6605 GB, free: 13.63 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.797, allocations: 0 / 0.6605 GB, free: 13.63 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001708/0.7987, allocations: 0.6284 MB / 0.6611 GB, free: 13 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: 2 ($whenCondition1,NoiseNormal1.y) * Number of discrete states: 0 () * Number of clocked 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.003805/0.8025, allocations: 2.781 MB / 0.6638 GB, free: 10.19 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002682/0.8052, allocations: 1.456 MB / 0.6652 GB, free: 8.734 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.8052, allocations: 0 / 0.6652 GB, free: 8.734 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001034/0.8063, allocations: 0.6633 MB / 0.6659 GB, free: 8.07 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001397/0.8077, allocations: 284.1 kB / 0.6661 GB, free: 7.797 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03313/0.8408, allocations: 24.49 MB / 0.6901 GB, free: 14.2 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001869/0.8427, allocations: 1.853 MB / 0.6919 GB, free: 12.31 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001074/0.8438, allocations: 180.5 kB / 0.692 GB, free: 12.13 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001679/0.8455, allocations: 1.261 MB / 0.6933 GB, free: 10.87 MB / 474.7 MB Notification: Performance of SimCode: time 1.403e-06/0.8455, allocations: 0 / 0.6933 GB, free: 10.87 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07061/0.9161, allocations: 35.32 MB / 0.7278 GB, free: 7.75 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000222/0.9164, allocations: 207.2 kB / 0.728 GB, free: 7.512 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.045/3.961, allocations: 4 kB / 0.728 GB, free: 7.508 MB / 0.4948 GB (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)