Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.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_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 172.4 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.324/1.324, allocations: 221.5 MB / 229.6 MB, free: 7.574 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.0008598/0.0008597, allocations: 96.44 kB / 280.5 MB, free: 5.328 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1916/0.1916, allocations: 28.84 MB / 360.1 MB, free: 2.219 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.225e-05/1.229e-05, allocations: 3.984 kB / 423.8 MB, free: 32.21 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1246/0.1246, allocations: 57.48 MB / 481.3 MB, free: 6.855 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4609/0.5855, allocations: 80.1 MB / 0.5482 GB, free: 10.8 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000211/0.5858, allocations: 61.44 kB / 0.5483 GB, free: 10.8 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04087/0.6267, allocations: 14.24 MB / 0.5622 GB, free: 6.23 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.6267, allocations: 0.75 kB / 0.5622 GB, free: 6.23 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.849e-05/0.6268, allocations: 29.97 kB / 0.5622 GB, free: 6.23 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: 263 * Number of variables: 263 Notification: Performance of Generate backend data structure: time 0.001824/0.6286, allocations: 1.37 MB / 0.5635 GB, free: 5.242 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.6287, allocations: 11.67 kB / 0.5635 GB, free: 5.238 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002757/0.629, allocations: 203.3 kB / 0.5637 GB, free: 5.129 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001129/0.6301, allocations: 0.7583 MB / 0.5645 GB, free: 4.66 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.438e-05/0.6302, allocations: 31.06 kB / 0.5645 GB, free: 4.66 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001557/0.6303, allocations: 69.89 kB / 0.5646 GB, free: 4.652 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002192/0.6325, allocations: 1.177 MB / 0.5657 GB, free: 4.438 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002063/0.6346, allocations: 1.106 MB / 0.5668 GB, free: 4.055 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.909e-05/0.6347, allocations: 3.938 kB / 0.5668 GB, free: 4.051 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001013/0.6348, allocations: 3.75 kB / 0.5668 GB, free: 4.051 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.355e-05/0.6348, allocations: 26.59 kB / 0.5668 GB, free: 4.047 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005651/0.6405, allocations: 3.658 MB / 0.5704 GB, free: 2.023 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002499/0.643, allocations: 1.528 MB / 0.5719 GB, free: 1.688 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008613/0.6439, allocations: 0.5298 MB / 0.5724 GB, free: 1.582 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.844e-05/0.644, allocations: 31.72 kB / 0.5724 GB, free: 1.574 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.053e-05/0.644, allocations: 38.16 kB / 0.5725 GB, free: 1.531 MB / 362.7 MB Notification: Performance of pre-optimization done (n=68): time 3.526e-06/0.644, allocations: 0 / 0.5725 GB, free: 1.531 MB / 362.7 MB Notification: Performance of matching and sorting (n=68): time 0.002638/0.6467, allocations: 1.243 MB / 0.5737 GB, free: 0.7031 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.763e-05/0.6467, allocations: 59.97 kB / 0.5738 GB, free: 0.6328 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001504/0.6482, allocations: 1.005 MB / 0.5747 GB, free: 15.85 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.759e-05/0.6483, allocations: 25.7 kB / 0.5748 GB, free: 15.82 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006752/0.649, allocations: 0.7512 MB / 0.5755 GB, free: 15.4 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002562/0.6493, allocations: 225.6 kB / 0.5757 GB, free: 15.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.505e-05/0.6493, allocations: 3.938 kB / 0.5757 GB, free: 15.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.6495, allocations: 335.1 kB / 0.576 GB, free: 14.88 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009538/0.6505, allocations: 491.3 kB / 0.5765 GB, free: 14.53 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00107/0.6516, allocations: 0.5838 MB / 0.5771 GB, free: 14.05 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001301/0.6529, allocations: 0.5458 MB / 0.5776 GB, free: 13.65 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.6529, allocations: 3.938 kB / 0.5776 GB, free: 13.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.002305/0.6552, allocations: 1.322 MB / 0.5789 GB, free: 12.57 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.036e-05/0.6552, allocations: 8.266 kB / 0.5789 GB, free: 12.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.6553, allocations: 8 kB / 0.5789 GB, free: 12.56 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.37e-05/0.6553, allocations: 8 kB / 0.5789 GB, free: 12.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006215/0.6559, allocations: 155.7 kB / 0.5791 GB, free: 12.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.6559, allocations: 8 kB / 0.5791 GB, free: 12.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002602/0.6562, allocations: 39.42 kB / 0.5791 GB, free: 12.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000122/0.6563, allocations: 78.61 kB / 0.5792 GB, free: 12.29 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (83): * Single equations (assignments): 83 * 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.0001294/0.6565, allocations: 108.9 kB / 0.5793 GB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001664/0.6566, allocations: 138.2 kB / 0.5794 GB, free: 12.04 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002595/0.6592, allocations: 1.572 MB / 0.581 GB, free: 10.8 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.487e-06/0.6593, allocations: 11.98 kB / 0.581 GB, free: 10.79 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.6593, allocations: 0 / 0.581 GB, free: 10.79 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.125e-06/0.6593, allocations: 3.984 kB / 0.581 GB, free: 10.79 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003092/0.6624, allocations: 2.394 MB / 0.5833 GB, free: 8.898 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.6624, allocations: 0 / 0.5833 GB, free: 8.898 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005569/0.663, allocations: 138.2 kB / 0.5834 GB, free: 8.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.734e-06/0.663, allocations: 7.953 kB / 0.5835 GB, free: 8.762 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.645e-05/0.6631, allocations: 19.48 kB / 0.5835 GB, free: 8.746 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.097e-06/0.6631, allocations: 7.938 kB / 0.5835 GB, free: 8.738 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.6631, allocations: 0 / 0.5835 GB, free: 8.738 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002698/0.6658, allocations: 2.166 MB / 0.5856 GB, free: 7.078 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001711/0.666, allocations: 195.2 kB / 0.5858 GB, free: 6.867 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001113/0.6661, allocations: 7.953 kB / 0.5858 GB, free: 6.859 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000241/0.6663, allocations: 7.984 kB / 0.5858 GB, free: 6.852 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001157/0.6665, allocations: 55.5 kB / 0.5859 GB, free: 6.805 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.615e-05/0.6666, allocations: 66.23 kB / 0.5859 GB, free: 6.746 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009417/0.6675, allocations: 0.7787 MB / 0.5867 GB, free: 6.164 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.6675, allocations: 0 / 0.5867 GB, free: 6.164 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000584/0.6681, allocations: 194.9 kB / 0.5869 GB, free: 5.973 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (68): * Single equations (assignments): 68 * 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.0001802/0.6683, allocations: 111.7 kB / 0.587 GB, free: 5.859 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001033/0.6693, allocations: 0.9423 MB / 0.5879 GB, free: 5.105 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.6693, allocations: 0 / 0.5879 GB, free: 5.105 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004762/0.6698, allocations: 499.2 kB / 0.5884 GB, free: 4.715 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004541/0.6703, allocations: 64.22 kB / 0.5884 GB, free: 4.688 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003022/0.6733, allocations: 2.107 MB / 0.5905 GB, free: 2.754 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009219/0.6743, allocations: 1.338 MB / 0.5918 GB, free: 1.426 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002321/0.6745, allocations: 72.3 kB / 0.5919 GB, free: 1.352 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001124/0.6746, allocations: 51.19 kB / 0.5919 GB, free: 1.305 MB / 378.7 MB Notification: Performance of SimCode: time 6.41e-07/0.6746, allocations: 0 / 0.5919 GB, free: 1.305 MB / 378.7 MB Notification: Performance of Templates: time 0.01045/0.6851, allocations: 4.327 MB / 0.5961 GB, free: 13.02 MB / 394.7 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe 2>&1)