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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001032/0.001032, allocations: 100.1 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001136/0.001136, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.447/1.447, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3455/0.3455, allocations: 28.84 MB / 319.8 MB, free: 6.254 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002994/0.0002995, allocations: 11.94 kB / 387.8 MB, free: 3.539 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3321/0.3324, allocations: 57.49 MB / 445.3 MB, free: 32.83 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.003042/0.3355, allocations: 2.945 MB / 448.2 MB, free: 30.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001761/0.3373, allocations: 0.6626 MB / 448.9 MB, free: 30.17 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004312/0.3378, allocations: 18.44 kB / 448.9 MB, free: 30.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002001/0.338, allocations: 83.55 kB / 449 MB, free: 30.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002975/0.3383, allocations: 102.8 kB / 449.1 MB, free: 30.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005697/0.3388, allocations: 261.2 kB / 449.3 MB, free: 29.94 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005289/0.3394, allocations: 0.5092 MB / 449.8 MB, free: 29.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000557/0.34, allocations: 490.8 kB / 450.3 MB, free: 29.47 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001505/0.3401, allocations: 237.4 kB / 450.5 MB, free: 29.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002252/0.3403, allocations: 305 kB / 450.8 MB, free: 29.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.943e-05/0.3404, allocations: 23.69 kB / 450.9 MB, free: 29.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001189/0.3405, allocations: 42.7 kB / 450.9 MB, free: 29.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002176/0.3408, allocations: 342 kB / 451.2 MB, free: 29.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001096/0.3409, allocations: 230.8 kB / 451.5 MB, free: 28.9 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005176/0.3414, allocations: 0.7907 MB / 452.3 MB, free: 28.67 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.3414, allocations: 0 / 452.3 MB, free: 28.67 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3414, allocations: 0 / 452.3 MB, free: 28.67 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.542e-05/0.3414, allocations: 4 kB / 452.3 MB, free: 28.66 MB / 350.1 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.001589/0.343, allocations: 1.525 MB / 453.8 MB, free: 27.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.3431, allocations: 7.406 kB / 453.8 MB, free: 27.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001793/0.3433, allocations: 201.7 kB / 454 MB, free: 27.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007218/0.344, allocations: 0.6857 MB / 454.7 MB, free: 26.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.14e-05/0.3441, allocations: 81.11 kB / 454.8 MB, free: 26.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.574e-05/0.3442, allocations: 99.47 kB / 454.9 MB, free: 26.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001283/0.3455, allocations: 1.147 MB / 456 MB, free: 26.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.037e-05/0.3455, allocations: 2.625 kB / 456 MB, free: 26.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.492e-05/0.3455, allocations: 43.84 kB / 456 MB, free: 26.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.85e-05/0.3456, allocations: 25.5 kB / 456.1 MB, free: 26.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00129/0.3469, allocations: 1.108 MB / 457.2 MB, free: 26.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004089/0.351, allocations: 3.678 MB / 460.9 MB, free: 24.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001547/0.3525, allocations: 1.337 MB / 462.2 MB, free: 23.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.21e-05/0.3526, allocations: 23.31 kB / 462.2 MB, free: 23.76 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.234e-05/0.3527, allocations: 42.06 kB / 462.3 MB, free: 23.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=68): time 3.026e-06/0.3527, allocations: 0 / 462.3 MB, free: 23.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=68): time 0.001891/0.3546, allocations: 1.527 MB / 463.8 MB, free: 23.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.336e-05/0.3546, allocations: 58.47 kB / 463.8 MB, free: 23.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001362/0.356, allocations: 1.278 MB / 465.1 MB, free: 22.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.363e-05/0.356, allocations: 36.55 kB / 465.2 MB, free: 22.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004784/0.3565, allocations: 0.7675 MB / 465.9 MB, free: 22.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001485/0.3567, allocations: 231.9 kB / 466.2 MB, free: 21.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.334e-05/0.3567, allocations: 14.75 kB / 466.2 MB, free: 21.95 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.663e-05/0.3568, allocations: 332.4 kB / 466.5 MB, free: 21.63 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005632/0.3573, allocations: 439.9 kB / 466.9 MB, free: 21.54 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006011/0.3579, allocations: 0.5289 MB / 467.5 MB, free: 21.33 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006111/0.3586, allocations: 476.5 kB / 467.9 MB, free: 21.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.3586, allocations: 2.328 kB / 467.9 MB, free: 21.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001571/0.3601, allocations: 1.185 MB / 469.1 MB, free: 20.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/0.3602, allocations: 6.312 kB / 469.1 MB, free: 20.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-06/0.3602, allocations: 4.094 kB / 469.1 MB, free: 20.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.391e-05/0.3602, allocations: 5.812 kB / 469.1 MB, free: 20.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005126/0.3607, allocations: 133.1 kB / 469.2 MB, free: 20.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.513e-05/0.3608, allocations: 6.062 kB / 469.3 MB, free: 20.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002879/0.3611, allocations: 58.08 kB / 469.3 MB, free: 20.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.986e-05/0.3611, allocations: 32.42 kB / 469.3 MB, free: 20.77 MB / 350.1 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 () * Number of clocked 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.000475/0.3616, allocations: 377.9 kB / 469.7 MB, free: 20.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001364/0.3617, allocations: 142.4 kB / 469.9 MB, free: 20.47 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001604/0.3633, allocations: 1.191 MB / 471 MB, free: 20.11 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-05/0.3634, allocations: 11.38 kB / 471.1 MB, free: 20.11 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.3634, allocations: 0 / 471.1 MB, free: 20.11 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.226e-05/0.3634, allocations: 3.234 kB / 471.1 MB, free: 20.11 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003124/0.3665, allocations: 2.362 MB / 473.4 MB, free: 19.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.3665, allocations: 0 / 473.4 MB, free: 19.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005102/0.3671, allocations: 118.9 kB / 473.5 MB, free: 19.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.021e-05/0.3671, allocations: 3.031 kB / 473.5 MB, free: 19.22 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.691e-05/0.3671, allocations: 22.34 kB / 473.6 MB, free: 19.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.382e-06/0.3671, allocations: 2.891 kB / 473.6 MB, free: 19.21 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.3671, allocations: 0 / 473.6 MB, free: 19.21 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002458/0.3696, allocations: 1.874 MB / 475.4 MB, free: 18.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000251/0.3699, allocations: 208.8 kB / 475.6 MB, free: 18.41 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.41e-05/0.37, allocations: 11.84 kB / 475.7 MB, free: 18.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002303/0.3702, allocations: 15.72 kB / 475.7 MB, free: 18.39 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000117/0.3703, allocations: 43.92 kB / 475.7 MB, free: 18.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.622e-05/0.3704, allocations: 18.05 kB / 475.7 MB, free: 18.38 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001428/0.3718, allocations: 0.8817 MB / 476.6 MB, free: 18.06 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3718, allocations: 0 / 476.6 MB, free: 18.06 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007465/0.3726, allocations: 211.8 kB / 476.8 MB, free: 17.99 MB / 350.1 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 () * Number of clocked 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.0001724/0.3727, allocations: 117 kB / 476.9 MB, free: 17.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001227/0.374, allocations: 0.9935 MB / 477.9 MB, free: 17.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.374, allocations: 0 / 477.9 MB, free: 17.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005028/0.3745, allocations: 0.5074 MB / 478.4 MB, free: 16.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005918/0.3751, allocations: 76.52 kB / 478.5 MB, free: 16.65 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004798/0.3799, allocations: 3.212 MB / 481.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001553/0.3815, allocations: 1.348 MB / 483.1 MB, free: 12.55 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003897/0.3819, allocations: 72.61 kB / 483.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001369/0.3821, allocations: 45.45 kB / 483.2 MB, free: 12.45 MB / 350.1 MB Notification: Performance of SimCode: time 2.365e-06/0.3821, allocations: 0 / 483.2 MB, free: 12.45 MB / 350.1 MB Notification: Performance of Templates: time 0.01222/0.3943, allocations: 4.662 MB / 487.8 MB, free: 8.27 MB / 350.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: