Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.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_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001132/0.001133, allocations: 98.38 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.001269/0.001269, allocations: 177.3 kB / 15.94 MB, free: 228 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.435/1.435, allocations: 223.2 MB / 239.9 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.3596/0.3596, allocations: 28.84 MB / 319.8 MB, free: 6.258 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003343/0.0003343, allocations: 11.94 kB / 387.8 MB, free: 3.551 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3394/0.3397, allocations: 57.49 MB / 445.3 MB, free: 32.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.00276/0.3425, allocations: 2.939 MB / 448.2 MB, free: 30.58 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001273/0.3438, allocations: 0.662 MB / 448.9 MB, free: 30.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003224/0.3442, allocations: 15.78 kB / 448.9 MB, free: 30.1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000166/0.3444, allocations: 79.48 kB / 449 MB, free: 30.06 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002732/0.3446, allocations: 109.5 kB / 449.1 MB, free: 30.01 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004913/0.3451, allocations: 259.2 kB / 449.3 MB, free: 29.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004961/0.3457, allocations: 0.5144 MB / 449.8 MB, free: 29.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005074/0.3462, allocations: 489.7 kB / 450.3 MB, free: 29.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001467/0.3463, allocations: 238 kB / 450.5 MB, free: 29.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002058/0.3465, allocations: 309.3 kB / 450.8 MB, free: 29.13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.581e-05/0.3466, allocations: 27.84 kB / 450.9 MB, free: 29.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001157/0.3467, allocations: 39.03 kB / 450.9 MB, free: 29.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002057/0.3469, allocations: 337.1 kB / 451.2 MB, free: 29.01 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001142/0.3471, allocations: 227.8 kB / 451.5 MB, free: 28.83 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005047/0.3476, allocations: 0.7988 MB / 452.3 MB, free: 28.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.534e-06/0.3476, allocations: 0 / 452.3 MB, free: 28.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3476, allocations: 2.188 kB / 452.3 MB, free: 28.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.503e-05/0.3476, allocations: 0 / 452.3 MB, free: 28.59 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.001565/0.3492, allocations: 1.518 MB / 453.8 MB, free: 27.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.3492, allocations: 8.406 kB / 453.8 MB, free: 27.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001908/0.3494, allocations: 197.8 kB / 454 MB, free: 27.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006911/0.3501, allocations: 0.6844 MB / 454.7 MB, free: 26.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.708e-05/0.3502, allocations: 83.25 kB / 454.7 MB, free: 26.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.682e-05/0.3503, allocations: 99.5 kB / 454.8 MB, free: 26.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001328/0.3516, allocations: 1.139 MB / 456 MB, free: 26.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.499e-05/0.3517, allocations: 0 / 456 MB, free: 26.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.902e-05/0.3517, allocations: 40.44 kB / 456 MB, free: 26.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.852e-05/0.3517, allocations: 29.56 kB / 456.1 MB, free: 26.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00119/0.3529, allocations: 1.094 MB / 457.1 MB, free: 26.06 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004115/0.3571, allocations: 3.684 MB / 460.8 MB, free: 24.03 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001554/0.3587, allocations: 1.324 MB / 462.2 MB, free: 23.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.353e-05/0.3588, allocations: 31.34 kB / 462.2 MB, free: 23.7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.004e-05/0.3588, allocations: 37.75 kB / 462.2 MB, free: 23.65 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 2.404e-06/0.3588, allocations: 1.094 kB / 462.2 MB, free: 23.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=67): time 0.001829/0.3606, allocations: 1.521 MB / 463.7 MB, free: 23.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.351e-05/0.3607, allocations: 58.78 kB / 463.8 MB, free: 23.17 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001374/0.3621, allocations: 1.275 MB / 465.1 MB, free: 22.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.262e-05/0.3621, allocations: 35.95 kB / 465.1 MB, free: 22.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000464/0.3626, allocations: 0.7714 MB / 465.9 MB, free: 22.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001447/0.3627, allocations: 224.2 kB / 466.1 MB, free: 21.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.271e-05/0.3628, allocations: 14.19 kB / 466.1 MB, free: 21.9 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.971e-05/0.3628, allocations: 332.7 kB / 466.4 MB, free: 21.58 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005059/0.3633, allocations: 436.5 kB / 466.9 MB, free: 21.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005779/0.3639, allocations: 0.5218 MB / 467.4 MB, free: 21.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005475/0.3645, allocations: 470.4 kB / 467.8 MB, free: 21.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.3645, allocations: 3.953 kB / 467.8 MB, free: 21.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001401/0.3659, allocations: 1.181 MB / 469 MB, free: 20.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/0.3659, allocations: 5.594 kB / 469 MB, free: 20.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.3659, allocations: 2.844 kB / 469 MB, free: 20.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.107e-05/0.366, allocations: 6.031 kB / 469 MB, free: 20.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004733/0.3664, allocations: 128.2 kB / 469.2 MB, free: 20.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.309e-05/0.3665, allocations: 5.578 kB / 469.2 MB, free: 20.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002912/0.3668, allocations: 56.73 kB / 469.2 MB, free: 20.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.048e-05/0.3668, allocations: 24.36 kB / 469.3 MB, free: 20.73 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 (82): * Single equations (assignments): 82 * 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.0005007/0.3673, allocations: 378.2 kB / 469.6 MB, free: 20.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001439/0.3675, allocations: 146.3 kB / 469.8 MB, free: 20.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00156/0.369, allocations: 1.188 MB / 471 MB, free: 20.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.287e-06/0.3691, allocations: 6.531 kB / 471 MB, free: 20.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.3691, allocations: 2.359 kB / 471 MB, free: 20.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.268e-06/0.3691, allocations: 7.375 kB / 471 MB, free: 20.06 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00299/0.3721, allocations: 2.361 MB / 473.3 MB, free: 19.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.748e-06/0.3721, allocations: 0 / 473.3 MB, free: 19.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004717/0.3726, allocations: 112.2 kB / 473.4 MB, free: 19.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.388e-06/0.3726, allocations: 2.688 kB / 473.4 MB, free: 19.17 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.588e-05/0.3726, allocations: 14.58 kB / 473.5 MB, free: 19.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.103e-06/0.3727, allocations: 3.484 kB / 473.5 MB, free: 19.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.3727, allocations: 0 / 473.5 MB, free: 19.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002265/0.3749, allocations: 1.868 MB / 475.3 MB, free: 18.55 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002522/0.3752, allocations: 200.6 kB / 475.5 MB, free: 18.37 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.384e-05/0.3753, allocations: 11.7 kB / 475.5 MB, free: 18.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000227/0.3755, allocations: 16.77 kB / 475.6 MB, free: 18.35 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.871e-05/0.3756, allocations: 38.06 kB / 475.6 MB, free: 18.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.479e-05/0.3757, allocations: 17.47 kB / 475.6 MB, free: 18.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00146/0.3771, allocations: 0.8878 MB / 476.5 MB, free: 18.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.3772, allocations: 4 kB / 476.5 MB, free: 18.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00078/0.3779, allocations: 210.3 kB / 476.7 MB, free: 17.95 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 (67): * Single equations (assignments): 67 * 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.0001982/0.3781, allocations: 111.2 kB / 476.8 MB, free: 17.85 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001354/0.3795, allocations: 0.9832 MB / 477.8 MB, free: 17.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3795, allocations: 0.625 kB / 477.8 MB, free: 17.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005107/0.38, allocations: 0.5103 MB / 478.3 MB, free: 16.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004922/0.3805, allocations: 76.25 kB / 478.4 MB, free: 16.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00373/0.3843, allocations: 3.207 MB / 481.6 MB, free: 13.79 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008071/0.3851, allocations: 1.337 MB / 482.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002345/0.3854, allocations: 76.41 kB / 483 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001012/0.3855, allocations: 45.12 kB / 483 MB, free: 12.57 MB / 350.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3855, allocations: 4 kB / 483 MB, free: 12.57 MB / 350.1 MB Notification: Performance of Templates: time 0.01085/0.3963, allocations: 4.654 MB / 487.7 MB, free: 8.418 MB / 350.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.makefile Environment - environmentSimulation: (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe 2>&1) Environment - environmentSimulation: