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.001065/0.001065, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001163/0.001163, allocations: 191.1 kB / 16.25 MB, free: 6.637 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.33/1.33, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3014/0.3014, allocations: 28.81 MB / 318.9 MB, free: 5.848 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001073/0.001073, allocations: 59.91 kB / 386.1 MB, free: 3.953 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2807/0.2818, allocations: 56.41 MB / 442.5 MB, free: 39.71 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.004153/0.286, allocations: 3.672 MB / 446.2 MB, free: 37.42 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001862/0.2879, allocations: 0.7486 MB / 446.9 MB, free: 37.18 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007183/0.2886, allocations: 22.69 kB / 447 MB, free: 37.17 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004637/0.2891, allocations: 127.5 kB / 447.1 MB, free: 37.12 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000347/0.2895, allocations: 89.86 kB / 447.2 MB, free: 37.08 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006991/0.2902, allocations: 330.3 kB / 447.5 MB, free: 37.06 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006742/0.2909, allocations: 0.8748 MB / 448.4 MB, free: 36.96 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006216/0.2915, allocations: 0.6354 MB / 449 MB, free: 36.81 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002439/0.2918, allocations: 344.4 kB / 449.4 MB, free: 36.61 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002699/0.292, allocations: 470 kB / 449.8 MB, free: 36.34 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.801e-05/0.2921, allocations: 86.5 kB / 449.9 MB, free: 36.34 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001776/0.2923, allocations: 113.9 kB / 450 MB, free: 36.33 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002494/0.2926, allocations: 445.6 kB / 450.4 MB, free: 36.12 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000285/0.2929, allocations: 0.6323 MB / 451.1 MB, free: 35.63 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008014/0.2937, allocations: 1.19 MB / 452.3 MB, free: 35.02 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.2937, allocations: 0 / 452.3 MB, free: 35.02 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.2937, allocations: 3.938 kB / 452.3 MB, free: 35.02 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.918e-05/0.2937, allocations: 6.078 kB / 452.3 MB, free: 35.02 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: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.001787/0.2955, allocations: 1.797 MB / 454.1 MB, free: 33.76 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.2956, allocations: 11.5 kB / 454.1 MB, free: 33.76 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001831/0.2958, allocations: 198.9 kB / 454.3 MB, free: 33.65 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006409/0.2964, allocations: 0.7545 MB / 455 MB, free: 33.09 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.352e-05/0.2965, allocations: 75.47 kB / 455.1 MB, free: 33.05 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001102/0.2966, allocations: 110.8 kB / 455.2 MB, free: 33.01 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001578/0.2982, allocations: 1.176 MB / 456.4 MB, free: 32.52 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.8e-05/0.2982, allocations: 4.125 kB / 456.4 MB, free: 32.52 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.934e-05/0.2983, allocations: 46.53 kB / 456.4 MB, free: 32.48 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.777e-05/0.2983, allocations: 26.72 kB / 456.5 MB, free: 32.48 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001393/0.2997, allocations: 1.104 MB / 457.6 MB, free: 32.21 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004102/0.3038, allocations: 3.708 MB / 461.3 MB, free: 30.17 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001271/0.3051, allocations: 1.36 MB / 462.6 MB, free: 29.84 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004388/0.3056, allocations: 498.5 kB / 463.1 MB, free: 29.71 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.12e-05/0.3057, allocations: 26.66 kB / 463.1 MB, free: 29.7 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007288/0.3064, allocations: 0.5472 MB / 463.7 MB, free: 29.53 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 2.705e-06/0.3064, allocations: 0 / 463.7 MB, free: 29.53 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.001517/0.3079, allocations: 1.574 MB / 465.3 MB, free: 29.1 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.047e-05/0.308, allocations: 64.22 kB / 465.3 MB, free: 29.03 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001211/0.3092, allocations: 1.295 MB / 466.6 MB, free: 28.59 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.708e-05/0.3093, allocations: 36.14 kB / 466.7 MB, free: 28.55 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004632/0.3097, allocations: 0.772 MB / 467.4 MB, free: 27.94 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001497/0.3099, allocations: 245.9 kB / 467.7 MB, free: 27.75 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001437/0.31, allocations: 125.8 kB / 467.8 MB, free: 27.68 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.343e-05/0.3101, allocations: 336.7 kB / 468.1 MB, free: 27.36 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004515/0.3106, allocations: 439.4 kB / 468.6 MB, free: 27.27 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006404/0.3112, allocations: 0.5534 MB / 469.1 MB, free: 27.05 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00137/0.3126, allocations: 1.047 MB / 470.2 MB, free: 26.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.48e-06/0.3126, allocations: 1.25 kB / 470.2 MB, free: 26.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001537/0.3142, allocations: 1.218 MB / 471.4 MB, free: 26.29 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.3142, allocations: 6.844 kB / 471.4 MB, free: 26.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.3142, allocations: 3.625 kB / 471.4 MB, free: 26.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.25e-05/0.3142, allocations: 10.22 kB / 471.4 MB, free: 26.28 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004898/0.3147, allocations: 136 kB / 471.5 MB, free: 26.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.416e-05/0.3147, allocations: 6.344 kB / 471.5 MB, free: 26.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000267/0.315, allocations: 57.38 kB / 471.6 MB, free: 26.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.143e-05/0.3151, allocations: 30.8 kB / 471.6 MB, free: 26.22 MB / 366.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.000513/0.3156, allocations: 394.1 kB / 472 MB, free: 25.99 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001282/0.3157, allocations: 147.3 kB / 472.2 MB, free: 25.91 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001529/0.3173, allocations: 1.233 MB / 473.4 MB, free: 25.54 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.518e-06/0.3173, allocations: 6.844 kB / 473.4 MB, free: 25.54 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.3173, allocations: 0 / 473.4 MB, free: 25.54 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/0.3173, allocations: 8.734 kB / 473.4 MB, free: 25.54 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002499/0.3198, allocations: 2.417 MB / 475.8 MB, free: 24.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.3198, allocations: 0 / 475.8 MB, free: 24.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004432/0.3203, allocations: 115.4 kB / 475.9 MB, free: 24.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.214e-06/0.3203, allocations: 2.375 kB / 475.9 MB, free: 24.63 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.433e-05/0.3203, allocations: 14.06 kB / 475.9 MB, free: 24.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-06/0.3203, allocations: 2.438 kB / 475.9 MB, free: 24.62 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.3204, allocations: 8.719 kB / 476 MB, free: 24.62 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001911/0.3223, allocations: 1.934 MB / 477.9 MB, free: 23.98 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002486/0.3225, allocations: 249.8 kB / 478.1 MB, free: 23.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.733e-05/0.3226, allocations: 11.75 kB / 478.1 MB, free: 23.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002258/0.3229, allocations: 13.81 kB / 478.2 MB, free: 23.76 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.331e-05/0.323, allocations: 46.83 kB / 478.2 MB, free: 23.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.698e-05/0.323, allocations: 25.64 kB / 478.2 MB, free: 23.74 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009938/0.324, allocations: 0.8984 MB / 479.1 MB, free: 23.43 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.324, allocations: 0 / 479.1 MB, free: 23.43 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005937/0.3246, allocations: 219.5 kB / 479.3 MB, free: 23.35 MB / 366.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.0001697/0.3248, allocations: 122.5 kB / 479.5 MB, free: 23.24 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001359/0.3261, allocations: 1.047 MB / 480.5 MB, free: 22.99 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.3262, allocations: 0 / 480.5 MB, free: 22.99 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005393/0.3267, allocations: 0.5237 MB / 481 MB, free: 22.87 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006062/0.3273, allocations: 98.78 kB / 481.1 MB, free: 22.81 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00363/0.331, allocations: 3.392 MB / 484.5 MB, free: 20.95 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006988/0.3317, allocations: 1.318 MB / 485.8 MB, free: 20.17 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002594/0.3319, allocations: 81.3 kB / 485.9 MB, free: 20.15 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000116/0.3321, allocations: 44.66 kB / 486 MB, free: 20.14 MB / 366.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3321, allocations: 0 / 486 MB, free: 20.14 MB / 366.1 MB Notification: Performance of Templates: time 0.01325/0.3453, allocations: 5.372 MB / 491.3 MB, free: 19.47 MB / 366.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.makefile (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)