Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.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: translateModel(SystemDynamics.WorldDynamics.World2.Scenario_4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009973/0.0009975, allocations: 173.9 kB / 7.648 MB, free: 1.422 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.315/1.315, allocations: 221.5 MB / 229.6 MB, free: 7.566 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.00089/0.00089, allocations: 93.45 kB / 280.5 MB, free: 5.312 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1868/0.1868, allocations: 28.84 MB / 360.1 MB, free: 2.191 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.652e-05/1.662e-05, allocations: 0 / 423.8 MB, free: 32.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.1251, allocations: 57.49 MB / 481.3 MB, free: 6.82 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3744/0.4996, allocations: 80.16 MB / 0.5483 GB, free: 10.88 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001513/0.4998, allocations: 64.17 kB / 0.5483 GB, free: 10.88 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03055/0.5303, allocations: 14.46 MB / 0.5624 GB, free: 6.172 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.5304, allocations: 0 / 0.5624 GB, free: 6.172 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.802e-05/0.5305, allocations: 33.06 kB / 0.5625 GB, free: 6.172 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.002005/0.5325, allocations: 1.411 MB / 0.5639 GB, free: 5.156 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.251e-05/0.5325, allocations: 11.42 kB / 0.5639 GB, free: 5.152 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003538/0.5329, allocations: 209.5 kB / 0.5641 GB, free: 5.039 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000992/0.5339, allocations: 0.7705 MB / 0.5648 GB, free: 4.562 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.755e-05/0.5339, allocations: 34.22 kB / 0.5649 GB, free: 4.562 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001585/0.5341, allocations: 61.72 kB / 0.5649 GB, free: 4.562 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001604/0.5357, allocations: 1.286 MB / 0.5662 GB, free: 4.336 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001555/0.5373, allocations: 1.2 MB / 0.5673 GB, free: 3.93 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.151e-05/0.5373, allocations: 11.81 kB / 0.5673 GB, free: 3.922 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.134e-05/0.5374, allocations: 0 / 0.5673 GB, free: 3.922 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-05/0.5375, allocations: 45.83 kB / 0.5674 GB, free: 3.918 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004533/0.542, allocations: 3.867 MB / 0.5712 GB, free: 1.758 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001621/0.5436, allocations: 1.55 MB / 0.5727 GB, free: 1.359 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005278/0.5442, allocations: 0.5338 MB / 0.5732 GB, free: 0.9648 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.518e-05/0.5443, allocations: 27.83 kB / 0.5732 GB, free: 0.9414 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.897e-05/0.5443, allocations: 49.62 kB / 0.5733 GB, free: 0.8867 MB / 362.7 MB Notification: Performance of pre-optimization done (n=70): time 2.595e-06/0.5443, allocations: 0 / 0.5733 GB, free: 0.8867 MB / 362.7 MB Notification: Performance of matching and sorting (n=70): time 0.001767/0.5461, allocations: 1.265 MB / 0.5745 GB, free: 15.87 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.242e-05/0.5461, allocations: 85.67 kB / 0.5746 GB, free: 15.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001329/0.5475, allocations: 1.066 MB / 0.5756 GB, free: 14.94 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.039e-05/0.5476, allocations: 29.7 kB / 0.5757 GB, free: 14.9 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005158/0.5481, allocations: 0.8216 MB / 0.5765 GB, free: 14.42 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002034/0.5483, allocations: 240.7 kB / 0.5767 GB, free: 14.21 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.192e-05/0.5483, allocations: 0 / 0.5767 GB, free: 14.21 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.5485, allocations: 335.6 kB / 0.577 GB, free: 13.89 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007114/0.5492, allocations: 0.5168 MB / 0.5775 GB, free: 13.51 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008405/0.5501, allocations: 0.7613 MB / 0.5783 GB, free: 12.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001065/0.5511, allocations: 0.6087 MB / 0.5789 GB, free: 12.33 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.5512, allocations: 0 / 0.5789 GB, free: 12.33 MB / 378.7 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.002305/0.5535, allocations: 1.491 MB / 0.5803 GB, free: 11.11 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/0.5535, allocations: 11.94 kB / 0.5803 GB, free: 11.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.677e-05/0.5535, allocations: 8 kB / 0.5803 GB, free: 11.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.913e-05/0.5536, allocations: 19.94 kB / 0.5804 GB, free: 11.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006923/0.5543, allocations: 201.7 kB / 0.5805 GB, free: 10.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.218e-05/0.5543, allocations: 23.92 kB / 0.5806 GB, free: 10.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000398/0.5547, allocations: 59.66 kB / 0.5806 GB, free: 10.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001379/0.5548, allocations: 97.66 kB / 0.5807 GB, free: 10.71 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 5 (CIAF.Integrator1.local_reset,Pollution.Integrator1.local_reset,Capital_Investment.Integrator1.local_reset,Natural_Resources.Integrator1.local_reset,Population.Integrator1.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 109 * 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.0001642/0.555, allocations: 127.9 kB / 0.5808 GB, free: 10.58 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002226/0.5552, allocations: 150.1 kB / 0.581 GB, free: 10.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002918/0.5582, allocations: 1.602 MB / 0.5825 GB, free: 9.176 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.859e-06/0.5582, allocations: 8 kB / 0.5826 GB, free: 9.168 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.5582, allocations: 3.938 kB / 0.5826 GB, free: 9.164 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.879e-06/0.5582, allocations: 3.984 kB / 0.5826 GB, free: 9.16 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003603/0.5618, allocations: 2.414 MB / 0.5849 GB, free: 7.262 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.5618, allocations: 0 / 0.5849 GB, free: 7.262 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006008/0.5625, allocations: 150.5 kB / 0.5851 GB, free: 7.121 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-05/0.5625, allocations: 3.984 kB / 0.5851 GB, free: 7.117 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.746e-05/0.5626, allocations: 20.03 kB / 0.5851 GB, free: 7.098 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.638e-06/0.5626, allocations: 7.984 kB / 0.5851 GB, free: 7.09 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.5626, allocations: 0 / 0.5851 GB, free: 7.09 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002902/0.5655, allocations: 2.282 MB / 0.5873 GB, free: 5.312 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002236/0.5657, allocations: 200.5 kB / 0.5875 GB, free: 5.098 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001344/0.5659, allocations: 0 / 0.5875 GB, free: 5.098 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003226/0.5662, allocations: 11.98 kB / 0.5875 GB, free: 5.086 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001265/0.5663, allocations: 53.25 kB / 0.5876 GB, free: 5.039 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001264/0.5665, allocations: 75.09 kB / 0.5876 GB, free: 4.973 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001193/0.5677, allocations: 0.8158 MB / 0.5884 GB, free: 4.367 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5677, allocations: 0 / 0.5884 GB, free: 4.367 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008087/0.5685, allocations: 210.8 kB / 0.5886 GB, free: 4.16 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (Population.Integrator1.y,Natural_Resources.Integrator1.y,Capital_Investment.Integrator1.y,Pollution.Integrator1.y,CIAF.Integrator1.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 70 * 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.0002221/0.5687, allocations: 108.7 kB / 0.5887 GB, free: 4.043 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001273/0.57, allocations: 1.017 MB / 0.5897 GB, free: 3.219 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.57, allocations: 0 / 0.5897 GB, free: 3.219 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005262/0.5705, allocations: 0.4925 MB / 0.5902 GB, free: 2.824 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005437/0.5711, allocations: 79.67 kB / 0.5903 GB, free: 2.777 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003751/0.5749, allocations: 2.179 MB / 0.5924 GB, free: 0.7773 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001355/0.5762, allocations: 1.367 MB / 0.5938 GB, free: 15.42 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000489/0.5767, allocations: 132.9 kB / 0.5939 GB, free: 15.29 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001662/0.5769, allocations: 62.36 kB / 0.5939 GB, free: 15.23 MB / 394.7 MB Notification: Performance of SimCode: time 6.01e-07/0.5769, allocations: 0 / 0.5939 GB, free: 15.23 MB / 394.7 MB Notification: Performance of Templates: time 0.01262/0.5895, allocations: 4.715 MB / 0.5986 GB, free: 10.56 MB / 394.7 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe 2>&1)