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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002912/0.002913, allocations: 179.8 kB / 7.458 MB, free: 2.5 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.366/1.366, allocations: 221.4 MB / 229.3 MB, free: 2.996 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.001035/0.001035, allocations: 99.06 kB / 280.1 MB, free: 1.223 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1765/0.1765, allocations: 28.83 MB / 359.7 MB, free: 1.52 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.2143/0.3909, allocations: 63.6 MB / 423.3 MB, free: 44.08 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.5192, allocations: 57.47 MB / 480.8 MB, free: 2.547 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3304/0.8496, allocations: 81.2 MB / 0.5488 GB, free: 8.289 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002573/0.85, allocations: 67.97 kB / 0.5489 GB, free: 8.223 MB / 378.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.1367/0.9867, allocations: 51.89 MB / 0.5996 GB, free: 4.152 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.259e-05/0.9868, allocations: 8 kB / 0.5996 GB, free: 4.145 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001978/0.9888, allocations: 418.8 kB / 0.6 GB, free: 3.73 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005397/0.9942, allocations: 2.021 MB / 0.6019 GB, free: 1.656 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002307/0.9945, allocations: 124 kB / 0.6021 GB, free: 1.535 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001053/0.9955, allocations: 223.9 kB / 0.6023 GB, free: 1.316 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00644/1.002, allocations: 1.881 MB / 0.6041 GB, free: 15.43 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009451/1.011, allocations: 2.962 MB / 0.607 GB, free: 12.25 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001387/1.012, allocations: 11.88 kB / 0.607 GB, free: 12.24 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007723/1.012, allocations: 8 kB / 0.607 GB, free: 12.23 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.837e-05/1.013, allocations: 92 kB / 0.6071 GB, free: 12.14 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02307/1.036, allocations: 13.8 MB / 0.6206 GB, free: 14.03 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001842/1.038, allocations: 0.8377 MB / 0.6214 GB, free: 13.18 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008348/1.038, allocations: 0.5398 MB / 0.6219 GB, free: 12.64 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.549e-05/1.038, allocations: 21.23 kB / 0.6219 GB, free: 12.62 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.483e-05/1.039, allocations: 55.81 kB / 0.622 GB, free: 12.55 MB / 458.7 MB Notification: Performance of pre-optimization done (n=133): time 3.166e-06/1.039, allocations: 0 / 0.622 GB, free: 12.55 MB / 458.7 MB Notification: Performance of matching and sorting (n=133): time 0.0023/1.041, allocations: 1.151 MB / 0.6231 GB, free: 11.39 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.041e-05/1.041, allocations: 64.72 kB / 0.6232 GB, free: 11.32 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002695/1.044, allocations: 1.195 MB / 0.6244 GB, free: 10.12 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001559/1.044, allocations: 25.7 kB / 0.6244 GB, free: 10.09 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001072/1.045, allocations: 1.282 MB / 0.6256 GB, free: 8.785 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005867/1.045, allocations: 476.9 kB / 0.6261 GB, free: 8.312 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.525e-05/1.046, allocations: 0 / 0.6261 GB, free: 8.312 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.00024/1.046, allocations: 373.9 kB / 0.6264 GB, free: 7.941 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001039/1.047, allocations: 0.5117 MB / 0.6269 GB, free: 7.43 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001318/1.048, allocations: 0.9739 MB / 0.6279 GB, free: 6.246 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001196/1.049, allocations: 0.6855 MB / 0.6286 GB, free: 5.566 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.099e-05/1.049, allocations: 4 kB / 0.6286 GB, free: 5.562 MB / 458.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.003362/1.053, allocations: 1.688 MB / 0.6302 GB, free: 3.863 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.13e-05/1.053, allocations: 4 kB / 0.6302 GB, free: 3.859 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.526e-05/1.053, allocations: 16 kB / 0.6302 GB, free: 3.844 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.041e-05/1.053, allocations: 28 kB / 0.6303 GB, free: 3.816 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001507/1.054, allocations: 352.1 kB / 0.6306 GB, free: 3.473 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.508e-05/1.054, allocations: 31.92 kB / 0.6306 GB, free: 3.441 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001708/1.056, allocations: 114.5 kB / 0.6307 GB, free: 3.328 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001763/1.056, allocations: 76 kB / 0.6308 GB, free: 3.254 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.0004174/1.057, allocations: 180.3 kB / 0.631 GB, free: 3.074 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005682/1.057, allocations: 177.8 kB / 0.6311 GB, free: 2.898 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006839/1.058, allocations: 190.5 kB / 0.6313 GB, free: 2.707 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.496e-05/1.058, allocations: 12 kB / 0.6313 GB, free: 2.695 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.525e-05/1.058, allocations: 0 / 0.6313 GB, free: 2.695 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.408e-05/1.058, allocations: 15.91 kB / 0.6314 GB, free: 2.68 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005787/1.064, allocations: 3.375 MB / 0.6347 GB, free: 15.25 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.601e-06/1.064, allocations: 4 kB / 0.6347 GB, free: 15.24 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001399/1.065, allocations: 235.6 kB / 0.6349 GB, free: 15.01 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.847e-05/1.065, allocations: 4 kB / 0.6349 GB, free: 15.01 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00011/1.066, allocations: 20 kB / 0.6349 GB, free: 14.99 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.167e-05/1.066, allocations: 8 kB / 0.6349 GB, free: 14.98 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/1.066, allocations: 0 / 0.6349 GB, free: 14.98 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00301/1.069, allocations: 1.958 MB / 0.6368 GB, free: 13.01 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005933/1.075, allocations: 4.31 MB / 0.641 GB, free: 8.684 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007175/1.075, allocations: 270.6 kB / 0.6413 GB, free: 8.398 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002468/1.076, allocations: 23.84 kB / 0.6413 GB, free: 8.375 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007152/1.076, allocations: 19.98 kB / 0.6413 GB, free: 8.355 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001659/1.076, allocations: 61.2 kB / 0.6414 GB, free: 8.297 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.721e-05/1.077, allocations: 35.98 kB / 0.6414 GB, free: 8.262 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.001493/1.078, allocations: 0.8704 MB / 0.6423 GB, free: 7.398 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002314/1.08, allocations: 0.5698 MB / 0.6428 GB, free: 6.824 MB / 474.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.0003148/1.081, allocations: 144.2 kB / 0.643 GB, free: 6.672 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002481/1.083, allocations: 1.295 MB / 0.6442 GB, free: 5.383 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/1.083, allocations: 4.062 kB / 0.6442 GB, free: 5.379 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008501/1.084, allocations: 0.6062 MB / 0.6448 GB, free: 4.773 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001611/1.086, allocations: 263.5 kB / 0.6451 GB, free: 4.52 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008913/1.095, allocations: 3.911 MB / 0.6489 GB, free: 0.543 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2038/1.298, allocations: 2.049 MB / 0.6509 GB, free: 172.3 MB / 474.7 MB Notification: Performance of SimCode: time 1.193e-06/1.299, allocations: 0 / 0.6509 GB, free: 172.3 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)