Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.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_6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000891/0.0008909, allocations: 91.53 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.005719/0.005719, allocations: 174.1 kB / 16.27 MB, free: 6.617 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.395/1.395, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3539/0.3539, allocations: 28.82 MB / 320.3 MB, free: 6.176 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003331/0.0003332, allocations: 12 kB / 388.5 MB, free: 3.184 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3534/0.3537, allocations: 57.48 MB / 446 MB, free: 32.93 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.002872/0.3566, allocations: 3.2 MB / 449.2 MB, free: 30.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001335/0.358, allocations: 0.7507 MB / 449.9 MB, free: 29.94 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002852/0.3583, allocations: 15.19 kB / 449.9 MB, free: 29.94 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002672/0.3586, allocations: 127.7 kB / 450.1 MB, free: 29.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002682/0.3588, allocations: 99.83 kB / 450.2 MB, free: 29.83 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005668/0.3594, allocations: 323.3 kB / 450.5 MB, free: 29.65 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005961/0.36, allocations: 0.8271 MB / 451.3 MB, free: 29.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006293/0.3607, allocations: 0.5909 MB / 451.9 MB, free: 28.94 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001412/0.3608, allocations: 222.9 kB / 452.1 MB, free: 28.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002413/0.3611, allocations: 330.2 kB / 452.4 MB, free: 28.63 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.427e-05/0.3611, allocations: 21.91 kB / 452.5 MB, free: 28.63 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001299/0.3613, allocations: 45.77 kB / 452.5 MB, free: 28.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002512/0.3615, allocations: 354.5 kB / 452.8 MB, free: 28.49 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002567/0.3618, allocations: 0.5406 MB / 453.4 MB, free: 28.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006122/0.3624, allocations: 1.099 MB / 454.5 MB, free: 27.58 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.3624, allocations: 0 / 454.5 MB, free: 27.58 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3624, allocations: 0 / 454.5 MB, free: 27.58 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.463e-05/0.3625, allocations: 3.031 kB / 454.5 MB, free: 27.58 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: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.001582/0.364, allocations: 1.53 MB / 456 MB, free: 26.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.3641, allocations: 14.38 kB / 456 MB, free: 26.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001726/0.3643, allocations: 197.8 kB / 456.2 MB, free: 26.37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000609/0.3649, allocations: 0.753 MB / 457 MB, free: 25.81 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.307e-05/0.3649, allocations: 84.41 kB / 457.1 MB, free: 25.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001111/0.3651, allocations: 100.6 kB / 457.2 MB, free: 25.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001304/0.3664, allocations: 1.181 MB / 458.3 MB, free: 25.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.144e-05/0.3664, allocations: 3.031 kB / 458.3 MB, free: 25.24 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.221e-05/0.3665, allocations: 44.09 kB / 458.4 MB, free: 25.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.078e-05/0.3665, allocations: 27.72 kB / 458.4 MB, free: 25.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001306/0.3678, allocations: 1.102 MB / 459.5 MB, free: 24.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004/0.3718, allocations: 3.707 MB / 463.2 MB, free: 22.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001807/0.3737, allocations: 1.368 MB / 464.6 MB, free: 22.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006563/0.3743, allocations: 492.8 kB / 465.1 MB, free: 22.42 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.967e-05/0.3744, allocations: 31.78 kB / 465.1 MB, free: 22.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009463/0.3754, allocations: 0.5455 MB / 465.6 MB, free: 22.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=72): time 3.276e-06/0.3754, allocations: 0 / 465.6 MB, free: 22.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.002409/0.3778, allocations: 1.571 MB / 467.2 MB, free: 21.81 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.421e-05/0.3779, allocations: 60.22 kB / 467.3 MB, free: 21.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001787/0.3797, allocations: 1.295 MB / 468.6 MB, free: 21.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.207e-05/0.3797, allocations: 41.48 kB / 468.6 MB, free: 21.26 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005814/0.3803, allocations: 0.7601 MB / 469.4 MB, free: 20.67 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001875/0.3805, allocations: 246.9 kB / 469.6 MB, free: 20.47 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.516e-05/0.3806, allocations: 64.61 kB / 469.7 MB, free: 20.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.19e-05/0.3807, allocations: 337.4 kB / 470 MB, free: 20.11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005687/0.3813, allocations: 444.9 kB / 470.4 MB, free: 20.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006913/0.382, allocations: 0.5517 MB / 471 MB, free: 19.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00153/0.3835, allocations: 1.05 MB / 472 MB, free: 19.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.05e-06/0.3835, allocations: 1.156 kB / 472 MB, free: 19.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001912/0.3854, allocations: 1.22 MB / 473.3 MB, free: 19.03 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.924e-05/0.3855, allocations: 7.578 kB / 473.3 MB, free: 19.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.269e-05/0.3855, allocations: 2.438 kB / 473.3 MB, free: 19.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.571e-05/0.3855, allocations: 7.281 kB / 473.3 MB, free: 19.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005036/0.386, allocations: 138.1 kB / 473.4 MB, free: 19.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.877e-05/0.3861, allocations: 6.594 kB / 473.4 MB, free: 19.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002872/0.3863, allocations: 61.55 kB / 473.5 MB, free: 18.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.679e-05/0.3864, allocations: 29.5 kB / 473.5 MB, free: 18.96 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: min_QL:DISCRETE(start = 1.0 fixed = true ) "Minimum quality of life" type: Real min_dPop:DISCRETE(unit = "1/yr" fixed = true ) "Minimal derivative of population" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.min_QL,$PRE.min_dPop,min_QL,min_dPop,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 (89): * Single equations (assignments): 89 * 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.0005736/0.387, allocations: 391.3 kB / 473.9 MB, free: 18.74 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001407/0.3871, allocations: 138.4 kB / 474 MB, free: 18.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001737/0.3889, allocations: 1.238 MB / 475.3 MB, free: 18.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.076e-05/0.3889, allocations: 7.375 kB / 475.3 MB, free: 18.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.381e-06/0.3889, allocations: 4 kB / 475.3 MB, free: 18.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.224e-05/0.3889, allocations: 4.172 kB / 475.3 MB, free: 18.29 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003116/0.392, allocations: 2.424 MB / 477.7 MB, free: 17.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.3921, allocations: 0 / 477.7 MB, free: 17.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004521/0.3925, allocations: 112.1 kB / 477.8 MB, free: 17.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.802e-06/0.3925, allocations: 6.062 kB / 477.8 MB, free: 17.37 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.827e-05/0.3926, allocations: 16.02 kB / 477.8 MB, free: 17.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-06/0.3926, allocations: 3.344 kB / 477.8 MB, free: 17.36 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.3926, allocations: 7.938 kB / 477.8 MB, free: 17.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001968/0.3946, allocations: 1.929 MB / 479.8 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002769/0.3949, allocations: 252.3 kB / 480 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.892e-05/0.395, allocations: 13.27 kB / 480 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002423/0.3952, allocations: 12 kB / 480 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.631e-05/0.3953, allocations: 44.75 kB / 480.1 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.242e-05/0.3954, allocations: 24.98 kB / 480.1 MB, free: 15.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001234/0.3966, allocations: 0.9037 MB / 481 MB, free: 14.9 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.3966, allocations: 0 / 481 MB, free: 14.9 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006265/0.3972, allocations: 215.6 kB / 481.2 MB, free: 14.69 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: 3 ($whenCondition1,min_dPop,min_QL) * Number of discrete states: 2 (min_dPop,min_QL) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001945/0.3974, allocations: 119 kB / 481.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001141/0.3986, allocations: 1.022 MB / 482.4 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.3986, allocations: 4.125 kB / 482.4 MB, free: 13.65 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000512/0.3991, allocations: 0.5199 MB / 482.9 MB, free: 13.19 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006467/0.3998, allocations: 93.09 kB / 483 MB, free: 13.1 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004559/0.4043, allocations: 3.433 MB / 486.4 MB, free: 9.918 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001322/0.4057, allocations: 1.31 MB / 487.7 MB, free: 8.805 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000284/0.406, allocations: 81.61 kB / 487.8 MB, free: 8.738 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001221/0.4061, allocations: 49.45 kB / 487.9 MB, free: 8.691 MB / 350.1 MB Notification: Performance of SimCode: time 1.072e-06/0.4061, allocations: 0 / 487.9 MB, free: 8.691 MB / 350.1 MB Notification: Performance of Templates: time 0.01109/0.4172, allocations: 4.975 MB / 492.8 MB, free: 3.758 MB / 350.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.makefile Environment - environmentSimulation: (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe 2>&1) Environment - environmentSimulation: