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.001099/0.001099, allocations: 180.7 kB / 7.649 MB, free: 1.395 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.361/1.361, allocations: 221.5 MB / 229.6 MB, free: 7.586 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.0009571/0.0009572, allocations: 100.6 kB / 280.5 MB, free: 5.332 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1707/0.1707, allocations: 28.83 MB / 360.1 MB, free: 2.227 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.794e-05/1.805e-05, allocations: 0 / 423.9 MB, free: 32.11 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1032, allocations: 57.49 MB / 481.4 MB, free: 6.75 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3727/0.4759, allocations: 81.02 MB / 0.5492 GB, free: 10.49 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001824/0.4762, allocations: 63.48 kB / 0.5493 GB, free: 10.49 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1002/0.5763, allocations: 49.38 MB / 0.5975 GB, free: 14.35 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.5764, allocations: 3.938 kB / 0.5975 GB, free: 14.35 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002278/0.5766, allocations: 95.69 kB / 0.5976 GB, free: 14.26 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.004794/0.5814, allocations: 2.753 MB / 0.6003 GB, free: 11.46 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.5815, allocations: 11.98 kB / 0.6003 GB, free: 11.45 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008384/0.5823, allocations: 414.9 kB / 0.6007 GB, free: 11.04 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003007/0.5853, allocations: 2.017 MB / 0.6026 GB, free: 9 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001322/0.5855, allocations: 120 kB / 0.6028 GB, free: 8.883 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004464/0.5859, allocations: 235.9 kB / 0.603 GB, free: 8.652 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004289/0.5902, allocations: 1.87 MB / 0.6048 GB, free: 6.781 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005487/0.5957, allocations: 2.978 MB / 0.6077 GB, free: 3.574 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.063e-05/0.5958, allocations: 11.88 kB / 0.6077 GB, free: 3.562 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001733/0.596, allocations: 8 kB / 0.6077 GB, free: 3.555 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.137e-05/0.5961, allocations: 96 kB / 0.6078 GB, free: 3.461 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01648/0.6126, allocations: 13.89 MB / 0.6214 GB, free: 5.355 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002126/0.6148, allocations: 1.229 MB / 0.6226 GB, free: 4.117 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007274/0.6155, allocations: 0.5441 MB / 0.6231 GB, free: 3.566 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.481e-05/0.6156, allocations: 13.31 kB / 0.6231 GB, free: 3.555 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009377/0.6165, allocations: 0.5888 MB / 0.6237 GB, free: 2.953 MB / 410.7 MB Notification: Performance of pre-optimization done (n=135): time 4.448e-06/0.6165, allocations: 0 / 0.6237 GB, free: 2.953 MB / 410.7 MB Notification: Performance of matching and sorting (n=135): time 0.001981/0.6185, allocations: 1.165 MB / 0.6248 GB, free: 1.777 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.078e-05/0.6186, allocations: 68.72 kB / 0.6249 GB, free: 1.699 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001689/0.6203, allocations: 1.183 MB / 0.6261 GB, free: 0.5156 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.932e-05/0.6204, allocations: 25.7 kB / 0.6261 GB, free: 496 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00146/0.6219, allocations: 1.588 MB / 0.6276 GB, free: 14.92 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004281/0.6223, allocations: 476.9 kB / 0.6281 GB, free: 14.45 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.318e-05/0.6224, allocations: 0 / 0.6281 GB, free: 14.45 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001694/0.6226, allocations: 385.7 kB / 0.6285 GB, free: 14.07 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008248/0.6234, allocations: 0.5156 MB / 0.629 GB, free: 13.55 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001105/0.6245, allocations: 0.9877 MB / 0.6299 GB, free: 12.35 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001074/0.6256, allocations: 0.6988 MB / 0.6306 GB, free: 11.66 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.257e-06/0.6256, allocations: 8 kB / 0.6306 GB, free: 11.65 MB / 426.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.002734/0.6283, allocations: 1.715 MB / 0.6323 GB, free: 9.926 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.717e-05/0.6284, allocations: 13.56 kB / 0.6323 GB, free: 9.914 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.472e-05/0.6284, allocations: 12 kB / 0.6323 GB, free: 9.902 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.065e-05/0.6285, allocations: 31.94 kB / 0.6324 GB, free: 9.871 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00134/0.6298, allocations: 351.4 kB / 0.6327 GB, free: 9.527 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.753e-05/0.6298, allocations: 31.92 kB / 0.6327 GB, free: 9.496 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009264/0.6308, allocations: 114.8 kB / 0.6328 GB, free: 9.383 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001136/0.6309, allocations: 76 kB / 0.6329 GB, free: 9.309 MB / 426.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.0003323/0.6312, allocations: 188.2 kB / 0.6331 GB, free: 9.121 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001776/0.633, allocations: 1.169 MB / 0.6342 GB, free: 7.945 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000262/0.6333, allocations: 177.8 kB / 0.6344 GB, free: 7.77 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005472/0.6338, allocations: 186.7 kB / 0.6346 GB, free: 7.582 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-05/0.6339, allocations: 12 kB / 0.6346 GB, free: 7.57 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.836e-06/0.6339, allocations: 3.984 kB / 0.6346 GB, free: 7.566 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.627e-05/0.6339, allocations: 11.97 kB / 0.6346 GB, free: 7.555 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004995/0.6389, allocations: 3.402 MB / 0.6379 GB, free: 4.133 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/0.6389, allocations: 3.984 kB / 0.6379 GB, free: 4.129 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001242/0.6402, allocations: 223.7 kB / 0.6381 GB, free: 3.91 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.332e-05/0.6402, allocations: 4 kB / 0.6381 GB, free: 3.906 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.611e-05/0.6403, allocations: 16 kB / 0.6382 GB, free: 3.891 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.573e-06/0.6403, allocations: 4 kB / 0.6382 GB, free: 3.887 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.6403, allocations: 4 kB / 0.6382 GB, free: 3.883 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002804/0.6431, allocations: 1.978 MB / 0.6401 GB, free: 1.891 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003802/0.6435, allocations: 278.5 kB / 0.6404 GB, free: 1.598 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001745/0.6437, allocations: 16 kB / 0.6404 GB, free: 1.582 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005861/0.6443, allocations: 11.98 kB / 0.6404 GB, free: 1.57 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001524/0.6445, allocations: 73.2 kB / 0.6405 GB, free: 1.496 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.896e-05/0.6445, allocations: 35.98 kB / 0.6405 GB, free: 1.461 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001331/0.6459, allocations: 0.8704 MB / 0.6413 GB, free: 0.5977 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.6459, allocations: 0 / 0.6413 GB, free: 0.5977 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001492/0.6474, allocations: 0.5776 MB / 0.6419 GB, free: 16 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: 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.00313/0.6505, allocations: 2.574 MB / 0.6444 GB, free: 13.41 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002043/0.6526, allocations: 1.296 MB / 0.6457 GB, free: 12.12 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.6526, allocations: 0 / 0.6457 GB, free: 12.12 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008456/0.6535, allocations: 0.6024 MB / 0.6463 GB, free: 11.52 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001569/0.655, allocations: 264.5 kB / 0.6465 GB, free: 11.26 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008627/0.6637, allocations: 4.333 MB / 0.6508 GB, free: 6.871 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001487/0.6652, allocations: 1.842 MB / 0.6526 GB, free: 5.004 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0008962/0.6661, allocations: 180.5 kB / 0.6527 GB, free: 4.824 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001516/0.6676, allocations: 1.261 MB / 0.654 GB, free: 3.566 MB / 442.7 MB Notification: Performance of SimCode: time 1.112e-06/0.6677, allocations: 0 / 0.654 GB, free: 3.566 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06856/0.7362, allocations: 33.85 MB / 0.687 GB, free: 1.715 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001985/0.7365, allocations: 171.9 kB / 0.6872 GB, free: 1.52 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.95/3.686, allocations: 4 kB / 0.6872 GB, free: 1.516 MB / 474.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)