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.001026/0.001026, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00104/0.00104, allocations: 192.7 kB / 16.25 MB, free: 6.621 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.34/1.34, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3233/0.3233, allocations: 28.81 MB / 318.9 MB, free: 5.863 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001347/0.001347, allocations: 59.91 kB / 386.1 MB, free: 3.953 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3328/0.3342, allocations: 56.41 MB / 442.5 MB, free: 39.72 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.004128/0.3384, allocations: 3.658 MB / 446.2 MB, free: 37.45 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001104/0.3395, allocations: 0.6713 MB / 446.9 MB, free: 37.23 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003438/0.3399, allocations: 17.62 kB / 446.9 MB, free: 37.23 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003951/0.3403, allocations: 127.8 kB / 447 MB, free: 37.18 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002701/0.3406, allocations: 94.56 kB / 447.1 MB, free: 37.14 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006218/0.3412, allocations: 312.2 kB / 447.4 MB, free: 37.13 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005976/0.3418, allocations: 0.8671 MB / 448.3 MB, free: 37.03 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000566/0.3424, allocations: 0.6431 MB / 448.9 MB, free: 36.88 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001879/0.3426, allocations: 336.4 kB / 449.2 MB, free: 36.71 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002292/0.3428, allocations: 459.5 kB / 449.7 MB, free: 36.43 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.141e-05/0.3429, allocations: 86.38 kB / 449.8 MB, free: 36.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001456/0.343, allocations: 108.1 kB / 449.9 MB, free: 36.43 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002457/0.3433, allocations: 458.7 kB / 450.3 MB, free: 36.22 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002656/0.3436, allocations: 0.6337 MB / 451 MB, free: 35.73 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007031/0.3443, allocations: 1.219 MB / 452.2 MB, free: 35.1 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.3443, allocations: 0 / 452.2 MB, free: 35.1 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3443, allocations: 0 / 452.2 MB, free: 35.1 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.679e-05/0.3443, allocations: 6.531 kB / 452.2 MB, free: 35.1 MB / 366.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.001609/0.3459, allocations: 1.816 MB / 454 MB, free: 33.82 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.346, allocations: 10.62 kB / 454 MB, free: 33.82 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001795/0.3462, allocations: 205.9 kB / 454.2 MB, free: 33.71 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005649/0.3467, allocations: 0.7549 MB / 455 MB, free: 33.15 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.767e-05/0.3468, allocations: 81.11 kB / 455 MB, free: 33.11 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.086e-05/0.3469, allocations: 109.2 kB / 455.2 MB, free: 33.07 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001305/0.3482, allocations: 1.274 MB / 456.4 MB, free: 32.55 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.191e-05/0.3482, allocations: 192 / 456.4 MB, free: 32.55 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.424e-05/0.3483, allocations: 50.72 kB / 456.5 MB, free: 32.51 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.426e-05/0.3483, allocations: 46.98 kB / 456.5 MB, free: 32.51 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001204/0.3496, allocations: 1.233 MB / 457.8 MB, free: 32.21 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003195/0.3528, allocations: 3.917 MB / 461.7 MB, free: 30.04 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001134/0.3539, allocations: 1.37 MB / 463 MB, free: 29.68 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004121/0.3543, allocations: 497.4 kB / 463.5 MB, free: 29.55 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.231e-05/0.3544, allocations: 30.98 kB / 463.6 MB, free: 29.54 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.751e-05/0.3544, allocations: 41.81 kB / 463.6 MB, free: 29.5 MB / 366.1 MB Notification: Performance of pre-optimization done (n=70): time 1.954e-06/0.3544, allocations: 0 / 463.6 MB, free: 29.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=70): time 0.00145/0.3559, allocations: 1.557 MB / 465.2 MB, free: 29.08 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.187e-05/0.3559, allocations: 85.55 kB / 465.2 MB, free: 28.98 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001023/0.357, allocations: 1.373 MB / 466.6 MB, free: 28.51 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.166e-05/0.357, allocations: 44.08 kB / 466.7 MB, free: 28.46 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003521/0.3574, allocations: 0.8393 MB / 467.5 MB, free: 27.8 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001283/0.3575, allocations: 240.4 kB / 467.7 MB, free: 27.61 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001531/0.3577, allocations: 155.8 kB / 467.9 MB, free: 27.54 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.761e-05/0.3577, allocations: 337.5 kB / 468.2 MB, free: 27.21 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004643/0.3582, allocations: 472.7 kB / 468.7 MB, free: 27.12 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005762/0.3588, allocations: 0.7182 MB / 469.4 MB, free: 26.7 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001137/0.3599, allocations: 1.243 MB / 470.6 MB, free: 26.09 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.221e-06/0.3599, allocations: 2.594 kB / 470.6 MB, free: 26.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.001506/0.3615, allocations: 1.388 MB / 472 MB, free: 25.66 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.995e-05/0.3615, allocations: 8.562 kB / 472 MB, free: 25.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.696e-05/0.3615, allocations: 7.75 kB / 472 MB, free: 25.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.531e-05/0.3615, allocations: 16.72 kB / 472.1 MB, free: 25.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005365/0.3621, allocations: 186 kB / 472.2 MB, free: 25.63 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.096e-05/0.3621, allocations: 24.12 kB / 472.3 MB, free: 25.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003167/0.3624, allocations: 86.5 kB / 472.3 MB, free: 25.56 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.485e-05/0.3625, allocations: 45.97 kB / 472.4 MB, free: 25.55 MB / 366.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.0004277/0.3629, allocations: 400 kB / 472.8 MB, free: 25.34 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000143/0.3631, allocations: 145.8 kB / 472.9 MB, free: 25.26 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00149/0.3646, allocations: 1.247 MB / 474.2 MB, free: 24.88 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.01e-05/0.3646, allocations: 7.656 kB / 474.2 MB, free: 24.88 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.3646, allocations: 3.938 kB / 474.2 MB, free: 24.88 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.355e-06/0.3646, allocations: 8.312 kB / 474.2 MB, free: 24.88 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002521/0.3671, allocations: 2.405 MB / 476.6 MB, free: 23.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.3672, allocations: 1.344 kB / 476.6 MB, free: 23.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004544/0.3676, allocations: 122.8 kB / 476.7 MB, free: 23.97 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.3676, allocations: 2.594 kB / 476.7 MB, free: 23.97 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.01e-05/0.3677, allocations: 26.69 kB / 476.7 MB, free: 23.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.009e-06/0.3677, allocations: 2.719 kB / 476.7 MB, free: 23.95 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.3677, allocations: 0 / 476.7 MB, free: 23.95 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001996/0.3697, allocations: 1.981 MB / 478.7 MB, free: 23.27 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00017/0.3699, allocations: 211.7 kB / 478.9 MB, free: 23.08 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.335e-05/0.37, allocations: 16.12 kB / 479 MB, free: 23.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002577/0.3702, allocations: 18.94 kB / 479 MB, free: 23.05 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.359e-05/0.3703, allocations: 48.08 kB / 479 MB, free: 23.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.43e-05/0.3704, allocations: 28.86 kB / 479 MB, free: 23.04 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001126/0.3715, allocations: 0.929 MB / 480 MB, free: 22.72 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3715, allocations: 0 / 480 MB, free: 22.72 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008803/0.3724, allocations: 224.5 kB / 480.2 MB, free: 22.64 MB / 366.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.0002055/0.3726, allocations: 114.1 kB / 480.3 MB, free: 22.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001766/0.3744, allocations: 1.121 MB / 481.4 MB, free: 22.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.3744, allocations: 0 / 481.4 MB, free: 22.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000652/0.3751, allocations: 0.5188 MB / 481.9 MB, free: 22.15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007957/0.3759, allocations: 104.6 kB / 482 MB, free: 22.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004505/0.3804, allocations: 3.488 MB / 485.5 MB, free: 20.16 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009869/0.3814, allocations: 1.333 MB / 486.9 MB, free: 19.4 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004443/0.3819, allocations: 133.5 kB / 487 MB, free: 19.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001639/0.382, allocations: 60.53 kB / 487.1 MB, free: 19.35 MB / 366.1 MB Notification: Performance of SimCode: time 8.11e-07/0.382, allocations: 0 / 487.1 MB, free: 19.35 MB / 366.1 MB Notification: Performance of Templates: time 0.01561/0.3976, allocations: 5.61 MB / 492.7 MB, free: 18.21 MB / 366.1 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)