Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity.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.InventoryForresterSinOneYearCapacity,fileNamePrefix="SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterSinOneYearCapacity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity,fileNamePrefix="SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterSinOneYearCapacity",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.003583/0.003583, allocations: 182.8 kB / 7.461 MB, free: 2.504 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.279/1.279, allocations: 221.4 MB / 229.3 MB, free: 3.086 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.001098/0.001098, allocations: 101 kB / 280.1 MB, free: 1.344 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.162/0.162, allocations: 28.84 MB / 359.7 MB, free: 1.656 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: Algorithm = "dassl" Notification: Performance of FrontEnd - loaded program: time 0.1949/0.3569, allocations: 63.6 MB / 423.3 MB, free: 44.16 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.464, allocations: 57.47 MB / 480.8 MB, free: 2.613 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2836/0.7476, allocations: 81.76 MB / 0.5494 GB, free: 7.828 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000198/0.7478, allocations: 67.97 kB / 0.5494 GB, free: 7.762 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.116/0.8638, allocations: 52.17 MB / 0.6004 GB, free: 3.402 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.8639, allocations: 8 kB / 0.6004 GB, free: 3.395 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000721/0.8646, allocations: 418.9 kB / 0.6008 GB, free: 2.98 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002982/0.8676, allocations: 2.025 MB / 0.6028 GB, free: 0.9023 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001097/0.8677, allocations: 120 kB / 0.6029 GB, free: 0.7852 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003472/0.8681, allocations: 239.8 kB / 0.6031 GB, free: 0.5508 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003815/0.8719, allocations: 1.866 MB / 0.6049 GB, free: 14.68 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00523/0.8771, allocations: 2.973 MB / 0.6078 GB, free: 11.49 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.166e-05/0.8772, allocations: 11.88 kB / 0.6078 GB, free: 11.48 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001844/0.8774, allocations: 8 kB / 0.6079 GB, free: 11.47 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.749e-05/0.8775, allocations: 92 kB / 0.6079 GB, free: 11.38 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01677/0.8943, allocations: 13.8 MB / 0.6214 GB, free: 13.26 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001805/0.8961, allocations: 0.8416 MB / 0.6222 GB, free: 12.41 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008477/0.897, allocations: 0.5437 MB / 0.6228 GB, free: 11.87 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.598e-05/0.8971, allocations: 13.31 kB / 0.6228 GB, free: 11.86 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.693e-05/0.8971, allocations: 47.88 kB / 0.6228 GB, free: 11.8 MB / 458.7 MB Notification: Performance of pre-optimization done (n=133): time 6.252e-06/0.8971, allocations: 0 / 0.6228 GB, free: 11.8 MB / 458.7 MB Notification: Performance of matching and sorting (n=133): time 0.002031/0.8992, allocations: 1.155 MB / 0.624 GB, free: 10.63 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.285e-05/0.8992, allocations: 64.72 kB / 0.624 GB, free: 10.56 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001808/0.9011, allocations: 1.199 MB / 0.6252 GB, free: 9.359 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 9.403e-05/0.9012, allocations: 25.7 kB / 0.6252 GB, free: 9.328 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008097/0.902, allocations: 1.286 MB / 0.6265 GB, free: 8.02 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004529/0.9024, allocations: 480.8 kB / 0.6269 GB, free: 7.543 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.468e-05/0.9025, allocations: 0 / 0.6269 GB, free: 7.543 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.9027, allocations: 373.9 kB / 0.6273 GB, free: 7.172 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008569/0.9035, allocations: 0.5078 MB / 0.6278 GB, free: 6.664 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00116/0.9047, allocations: 0.9778 MB / 0.6287 GB, free: 5.48 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001104/0.9058, allocations: 0.6856 MB / 0.6294 GB, free: 4.797 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.267e-06/0.9058, allocations: 4 kB / 0.6294 GB, free: 4.793 MB / 458.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.002901/0.9088, allocations: 1.688 MB / 0.6311 GB, free: 3.098 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.298e-05/0.9088, allocations: 8 kB / 0.6311 GB, free: 3.09 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.022e-05/0.9088, allocations: 12 kB / 0.6311 GB, free: 3.078 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.165e-05/0.9089, allocations: 28 kB / 0.6311 GB, free: 3.051 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001411/0.9103, allocations: 356.1 kB / 0.6314 GB, free: 2.703 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.974e-05/0.9103, allocations: 31.92 kB / 0.6315 GB, free: 2.672 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001024/0.9114, allocations: 110.6 kB / 0.6316 GB, free: 2.562 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001224/0.9115, allocations: 80 kB / 0.6317 GB, free: 2.484 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.0002834/0.9118, allocations: 184.2 kB / 0.6318 GB, free: 2.301 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002877/0.9121, allocations: 173.8 kB / 0.632 GB, free: 2.129 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000517/0.9126, allocations: 190.7 kB / 0.6322 GB, free: 1.938 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.284e-05/0.9126, allocations: 12 kB / 0.6322 GB, free: 1.926 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.415e-05/0.9126, allocations: 0 / 0.6322 GB, free: 1.926 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.503e-05/0.9127, allocations: 11.91 kB / 0.6322 GB, free: 1.914 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005379/0.9181, allocations: 3.387 MB / 0.6355 GB, free: 14.47 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.601e-06/0.9181, allocations: 4 kB / 0.6355 GB, free: 14.47 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001393/0.9195, allocations: 231.7 kB / 0.6357 GB, free: 14.24 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.588e-05/0.9195, allocations: 4 kB / 0.6357 GB, free: 14.24 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.506e-05/0.9196, allocations: 23.98 kB / 0.6358 GB, free: 14.21 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.107e-05/0.9196, allocations: 11.89 kB / 0.6358 GB, free: 14.2 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.9197, allocations: 0 / 0.6358 GB, free: 14.2 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003083/0.9228, allocations: 1.962 MB / 0.6377 GB, free: 12.23 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00582/0.9286, allocations: 4.322 MB / 0.6419 GB, free: 7.887 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004397/0.929, allocations: 274.5 kB / 0.6422 GB, free: 7.598 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002083/0.9293, allocations: 15.98 kB / 0.6422 GB, free: 7.582 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006648/0.9299, allocations: 19.98 kB / 0.6422 GB, free: 7.562 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001853/0.9301, allocations: 69.11 kB / 0.6423 GB, free: 7.496 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.878e-05/0.9302, allocations: 35.98 kB / 0.6423 GB, free: 7.461 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.001567/0.9318, allocations: 0.8745 MB / 0.6432 GB, free: 6.594 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002436/0.9342, allocations: 0.5737 MB / 0.6437 GB, free: 6.016 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.0002349/0.9345, allocations: 135.1 kB / 0.6439 GB, free: 5.875 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002377/0.9369, allocations: 1.302 MB / 0.6451 GB, free: 4.574 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.9369, allocations: 0 / 0.6451 GB, free: 4.574 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008333/0.9377, allocations: 0.6101 MB / 0.6457 GB, free: 3.969 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001331/0.9391, allocations: 256.3 kB / 0.646 GB, free: 3.719 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2409/1.18, allocations: 3.908 MB / 0.6498 GB, free: 172.4 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00351/1.184, allocations: 2.047 MB / 0.6518 GB, free: 171.7 MB / 474.7 MB Notification: Performance of SimCode: time 1.153e-06/1.184, allocations: 3.391 kB / 0.6518 GB, free: 171.7 MB / 474.7 MB (rm -f SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity.pipe ; mkfifo SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity.pipe >> ../files/SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterSinOneYearCapacity_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 SystemDynamics_SystemDynamics_IndustrialDynamics_Inventory_InventoryForresterSinOneYearCapacity.fmu > SystemDynamics_SystemDynamics.IndustrialDynamics.Inventory.InventoryForresterSinOneYearCapacity.pipe 2>&1)