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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008821/0.0008822, allocations: 90.36 kB / 15.36 MB, free: 0.7383 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.007932/0.007932, allocations: 172 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.426/1.426, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3949/0.3949, allocations: 28.84 MB / 320.3 MB, free: 6.188 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003168/0.0003167, allocations: 8 kB / 388.5 MB, free: 3.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3151/0.3155, allocations: 57.48 MB / 446 MB, free: 32.93 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.003179/0.3187, allocations: 3.198 MB / 449.2 MB, free: 30.47 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001589/0.3203, allocations: 0.66 MB / 449.8 MB, free: 30 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003706/0.3207, allocations: 18.41 kB / 449.8 MB, free: 30 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003248/0.321, allocations: 128.7 kB / 450 MB, free: 29.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002805/0.3213, allocations: 98.61 kB / 450.1 MB, free: 29.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006019/0.3219, allocations: 305 kB / 450.4 MB, free: 29.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000738/0.3227, allocations: 0.8235 MB / 451.2 MB, free: 29.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007321/0.3234, allocations: 0.5922 MB / 451.8 MB, free: 29.01 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002037/0.3236, allocations: 218.9 kB / 452 MB, free: 28.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002906/0.3239, allocations: 321.9 kB / 452.3 MB, free: 28.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.825e-05/0.324, allocations: 20.19 kB / 452.3 MB, free: 28.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001472/0.3242, allocations: 44.56 kB / 452.4 MB, free: 28.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00029/0.3245, allocations: 371.5 kB / 452.7 MB, free: 28.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003265/0.3248, allocations: 0.5453 MB / 453.3 MB, free: 28.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008397/0.3257, allocations: 1.128 MB / 454.4 MB, free: 27.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.3257, allocations: 2.656 kB / 454.4 MB, free: 27.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.185e-06/0.3257, allocations: 4 kB / 454.4 MB, free: 27.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.112e-05/0.3257, allocations: 0 / 454.4 MB, free: 27.61 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: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.001756/0.3275, allocations: 1.542 MB / 456 MB, free: 26.51 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.3275, allocations: 7.875 kB / 456 MB, free: 26.51 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001856/0.3277, allocations: 204.3 kB / 456.2 MB, free: 26.4 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006402/0.3284, allocations: 0.7533 MB / 456.9 MB, free: 25.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.611e-05/0.3284, allocations: 81.61 kB / 457 MB, free: 25.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001009/0.3285, allocations: 101.7 kB / 457.1 MB, free: 25.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001518/0.33, allocations: 1.28 MB / 458.4 MB, free: 25.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.639e-05/0.3301, allocations: 2.844 kB / 458.4 MB, free: 25.24 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.54e-05/0.3302, allocations: 53.16 kB / 458.4 MB, free: 25.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.822e-05/0.3302, allocations: 49.52 kB / 458.5 MB, free: 25.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001615/0.3318, allocations: 1.23 MB / 459.7 MB, free: 24.9 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00438/0.3362, allocations: 3.923 MB / 463.6 MB, free: 22.72 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001701/0.338, allocations: 1.359 MB / 465 MB, free: 22.37 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006393/0.3386, allocations: 0.4934 MB / 465.5 MB, free: 22.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.638e-05/0.3387, allocations: 30.8 kB / 465.5 MB, free: 22.22 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.404e-05/0.3388, allocations: 38.78 kB / 465.6 MB, free: 22.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=70): time 2.655e-06/0.3388, allocations: 0 / 465.6 MB, free: 22.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.002236/0.341, allocations: 1.562 MB / 467.1 MB, free: 21.76 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.392e-05/0.341, allocations: 85.94 kB / 467.2 MB, free: 21.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001712/0.3428, allocations: 1.37 MB / 468.6 MB, free: 21.19 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.108e-05/0.3428, allocations: 40.45 kB / 468.6 MB, free: 21.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005238/0.3433, allocations: 0.8374 MB / 469.4 MB, free: 20.49 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001673/0.3435, allocations: 242.9 kB / 469.7 MB, free: 20.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.53e-05/0.3436, allocations: 75.47 kB / 469.8 MB, free: 20.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.631e-05/0.3437, allocations: 345 kB / 470.1 MB, free: 19.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006672/0.3444, allocations: 472.6 kB / 470.6 MB, free: 19.83 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007978/0.3452, allocations: 0.724 MB / 471.3 MB, free: 19.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00142/0.3466, allocations: 1.237 MB / 472.5 MB, free: 18.8 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.912e-06/0.3466, allocations: 2.406 kB / 472.5 MB, free: 18.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.002045/0.3487, allocations: 1.386 MB / 473.9 MB, free: 18.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.085e-05/0.3487, allocations: 11.11 kB / 473.9 MB, free: 18.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.689e-05/0.3487, allocations: 7.5 kB / 473.9 MB, free: 18.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.275e-05/0.3488, allocations: 14.41 kB / 473.9 MB, free: 18.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006174/0.3494, allocations: 182.8 kB / 474.1 MB, free: 18.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.642e-05/0.3494, allocations: 22.05 kB / 474.1 MB, free: 18.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004427/0.3499, allocations: 97.08 kB / 474.2 MB, free: 18.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.717e-05/0.35, allocations: 39.53 kB / 474.3 MB, free: 18.27 MB / 350.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007411/0.3507, allocations: 400.1 kB / 474.7 MB, free: 18.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000234/0.351, allocations: 153.7 kB / 474.8 MB, free: 17.96 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002157/0.3531, allocations: 1.249 MB / 476.1 MB, free: 17.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.146e-05/0.3531, allocations: 6.688 kB / 476.1 MB, free: 17.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.215e-06/0.3532, allocations: 1.125 kB / 476.1 MB, free: 17.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.356e-05/0.3532, allocations: 8.375 kB / 476.1 MB, free: 17.58 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00347/0.3567, allocations: 2.4 MB / 478.5 MB, free: 16.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.3567, allocations: 5.156 kB / 478.5 MB, free: 16.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005108/0.3572, allocations: 120.8 kB / 478.6 MB, free: 16.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.518e-06/0.3572, allocations: 3.312 kB / 478.6 MB, free: 16.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.418e-05/0.3573, allocations: 23.77 kB / 478.6 MB, free: 16.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.484e-06/0.3573, allocations: 3.156 kB / 478.6 MB, free: 16.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.3573, allocations: 1.125 kB / 478.6 MB, free: 16.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002078/0.3594, allocations: 1.979 MB / 480.6 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002073/0.3596, allocations: 209.7 kB / 480.8 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.903e-05/0.3597, allocations: 24.83 kB / 480.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002817/0.36, allocations: 13.17 kB / 480.8 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.975e-05/0.3601, allocations: 44.78 kB / 480.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.569e-05/0.3601, allocations: 21.41 kB / 480.9 MB, free: 14.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001129/0.3613, allocations: 0.9441 MB / 481.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3613, allocations: 0 / 481.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007746/0.362, allocations: 219.5 kB / 482.1 MB, free: 13.71 MB / 350.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001804/0.3622, allocations: 121 kB / 482.2 MB, free: 13.58 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00125/0.3635, allocations: 1.082 MB / 483.3 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3635, allocations: 0 / 483.3 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005421/0.3641, allocations: 0.5206 MB / 483.8 MB, free: 12.15 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007896/0.3649, allocations: 98.08 kB / 483.9 MB, free: 12.06 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003466/0.3683, allocations: 3.532 MB / 487.4 MB, free: 8.785 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007687/0.3691, allocations: 1.331 MB / 488.8 MB, free: 7.641 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003948/0.3695, allocations: 132.9 kB / 488.9 MB, free: 7.508 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000139/0.3697, allocations: 59.42 kB / 488.9 MB, free: 7.449 MB / 350.1 MB Notification: Performance of SimCode: time 4e-07/0.3697, allocations: 0 / 488.9 MB, free: 7.449 MB / 350.1 MB Notification: Performance of Templates: time 0.01028/0.38, allocations: 5.208 MB / 494.1 MB, free: 2.246 MB / 350.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: