Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.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_5,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_5,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007874/0.0007875, allocations: 86.8 kB / 15.06 MB, free: 1.09 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.0009003/0.0009004, allocations: 168.7 kB / 15.95 MB, free: 204 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.37/1.37, allocations: 223.3 MB / 240 MB, free: 5.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.297/0.297, allocations: 28.84 MB / 319.9 MB, free: 6.277 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004902/0.0004904, allocations: 12 kB / 387.9 MB, free: 3.508 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2913/0.2918, allocations: 57.47 MB / 445.4 MB, free: 32.79 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.002275/0.2941, allocations: 2.574 MB / 447.9 MB, free: 30.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001058/0.2952, allocations: 0.5295 MB / 448.5 MB, free: 30.47 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002398/0.2955, allocations: 11.56 kB / 448.5 MB, free: 30.47 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001792/0.2957, allocations: 107.2 kB / 448.6 MB, free: 30.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002209/0.2959, allocations: 77.83 kB / 448.7 MB, free: 30.4 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004183/0.2963, allocations: 216.2 kB / 448.9 MB, free: 30.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004424/0.2968, allocations: 0.6738 MB / 449.5 MB, free: 30 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004111/0.2972, allocations: 379.3 kB / 449.9 MB, free: 29.83 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001484/0.2973, allocations: 246.4 kB / 450.2 MB, free: 29.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002028/0.2976, allocations: 312.2 kB / 450.5 MB, free: 29.56 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.812e-05/0.2976, allocations: 23.31 kB / 450.5 MB, free: 29.56 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001151/0.2977, allocations: 48.25 kB / 450.5 MB, free: 29.55 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002116/0.298, allocations: 352.5 kB / 450.9 MB, free: 29.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.715e-05/0.2981, allocations: 216.2 kB / 451.1 MB, free: 29.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004358/0.2985, allocations: 0.7088 MB / 451.8 MB, free: 29.06 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.2985, allocations: 0 / 451.8 MB, free: 29.06 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2985, allocations: 0 / 451.8 MB, free: 29.06 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.542e-05/0.2986, allocations: 0 / 451.8 MB, free: 29.06 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: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.001591/0.3001, allocations: 1.501 MB / 453.3 MB, free: 28.01 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.3002, allocations: 8.281 kB / 453.3 MB, free: 28.01 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001725/0.3004, allocations: 192.7 kB / 453.5 MB, free: 27.9 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003869/0.3008, allocations: 0.5078 MB / 454 MB, free: 27.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.706e-05/0.3008, allocations: 69.38 kB / 454.1 MB, free: 27.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001109/0.301, allocations: 97.12 kB / 454.2 MB, free: 27.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001627/0.3026, allocations: 1.088 MB / 455.3 MB, free: 27.06 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.766e-05/0.3026, allocations: 0 / 455.3 MB, free: 27.06 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.01e-05/0.3027, allocations: 35.34 kB / 455.3 MB, free: 27.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.997e-05/0.3028, allocations: 60.23 kB / 455.3 MB, free: 27.03 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00157/0.3044, allocations: 1.227 MB / 456.6 MB, free: 26.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00438/0.3088, allocations: 2.874 MB / 459.4 MB, free: 25.58 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001452/0.3102, allocations: 1.009 MB / 460.5 MB, free: 25.33 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006271/0.3109, allocations: 0.5064 MB / 461 MB, free: 25.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.384e-05/0.311, allocations: 30.66 kB / 461 MB, free: 25.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.255e-05/0.311, allocations: 38.44 kB / 461 MB, free: 25.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.585e-06/0.311, allocations: 4 kB / 461 MB, free: 25.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.002356/0.3134, allocations: 1.627 MB / 462.7 MB, free: 24.74 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.372e-05/0.3135, allocations: 62.47 kB / 462.7 MB, free: 24.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001629/0.3151, allocations: 1.24 MB / 464 MB, free: 24.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.103e-05/0.3151, allocations: 44.02 kB / 464 MB, free: 24.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004668/0.3156, allocations: 0.7767 MB / 464.8 MB, free: 23.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001625/0.3158, allocations: 232.5 kB / 465 MB, free: 23.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.438e-05/0.3158, allocations: 14.72 kB / 465 MB, free: 23.39 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.029e-05/0.3159, allocations: 335.2 kB / 465.3 MB, free: 23.08 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006829/0.3166, allocations: 484.6 kB / 465.8 MB, free: 22.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000707/0.3173, allocations: 0.669 MB / 466.5 MB, free: 22.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007255/0.318, allocations: 0.5331 MB / 467 MB, free: 22.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.14e-06/0.3181, allocations: 5.219 kB / 467 MB, free: 22.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001839/0.3199, allocations: 1.351 MB / 468.4 MB, free: 22.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.881e-05/0.3199, allocations: 9.891 kB / 468.4 MB, free: 22.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.159e-05/0.32, allocations: 6.75 kB / 468.4 MB, free: 22.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.413e-05/0.32, allocations: 10.28 kB / 468.4 MB, free: 22.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005945/0.3206, allocations: 197.8 kB / 468.6 MB, free: 22.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.37e-05/0.3206, allocations: 14.67 kB / 468.6 MB, free: 22.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003932/0.321, allocations: 84.89 kB / 468.7 MB, free: 22.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.855e-05/0.3211, allocations: 38.58 kB / 468.7 MB, free: 22.03 MB / 350.1 MB Warning: Assuming fixed start value for the following 6 variables: CIAF.level:VARIABLE(start = CIAF.x0 fixed = true ) "Reversible state variable" type: Real Pollution.level:VARIABLE(start = Pollution.x0 fixed = true ) "Reversible state variable" type: Real Capital_Investment.level:VARIABLE(start = Capital_Investment.x0 fixed = true ) "Reversible state variable" type: Real Natural_Resources.level:VARIABLE(start = Natural_Resources.x0 fixed = true ) "Reversible state variable" type: Real Population.level:VARIABLE(start = Population.x0 fixed = true ) "Reversible state variable" type: Real years:VARIABLE(start = 1900.0 fixed = true ) "Time in calendar years" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 96 * 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.0006615/0.3218, allocations: 396.9 kB / 469.1 MB, free: 21.81 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001237/0.3219, allocations: 134.9 kB / 469.3 MB, free: 21.74 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001962/0.3239, allocations: 1.266 MB / 470.5 MB, free: 21.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.117e-06/0.3239, allocations: 10.69 kB / 470.5 MB, free: 21.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.3239, allocations: 3.953 kB / 470.5 MB, free: 21.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.639e-06/0.3239, allocations: 5.078 kB / 470.5 MB, free: 21.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003072/0.327, allocations: 2.391 MB / 472.9 MB, free: 20.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.327, allocations: 0.7031 kB / 472.9 MB, free: 20.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005191/0.3275, allocations: 136.2 kB / 473.1 MB, free: 20.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.255e-06/0.3276, allocations: 2.188 kB / 473.1 MB, free: 20.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.896e-05/0.3276, allocations: 15.86 kB / 473.1 MB, free: 20.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.475e-06/0.3276, allocations: 6.641 kB / 473.1 MB, free: 20.49 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.3276, allocations: 0 / 473.1 MB, free: 20.49 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002418/0.33, allocations: 1.968 MB / 475.1 MB, free: 19.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001493/0.3302, allocations: 192.1 kB / 475.2 MB, free: 19.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.785e-05/0.3303, allocations: 15.78 kB / 475.3 MB, free: 19.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002414/0.3305, allocations: 29.42 kB / 475.3 MB, free: 19.69 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001025/0.3306, allocations: 50.52 kB / 475.3 MB, free: 19.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.518e-05/0.3307, allocations: 34.28 kB / 475.4 MB, free: 19.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009526/0.3316, allocations: 0.8557 MB / 476.2 MB, free: 18.96 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3317, allocations: 0 / 476.2 MB, free: 18.96 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005923/0.3323, allocations: 210.9 kB / 476.4 MB, free: 18.75 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (years,Population.level,Natural_Resources.level,Capital_Investment.level,Pollution.level,CIAF.level) * 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 (66): * Single equations (assignments): 66 * 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.0001439/0.3324, allocations: 124.9 kB / 476.6 MB, free: 18.63 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001283/0.3337, allocations: 1.112 MB / 477.7 MB, free: 17.65 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3337, allocations: 4 kB / 477.7 MB, free: 17.65 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005734/0.3343, allocations: 0.5555 MB / 478.2 MB, free: 17.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004368/0.3347, allocations: 57.16 kB / 478.3 MB, free: 17.1 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003189/0.3379, allocations: 3.193 MB / 481.5 MB, free: 14.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000724/0.3387, allocations: 1.293 MB / 482.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003757/0.3391, allocations: 118.7 kB / 482.9 MB, free: 12.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001297/0.3392, allocations: 53.36 kB / 482.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3392, allocations: 0 / 482.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of Templates: time 0.009301/0.3485, allocations: 4.629 MB / 487.6 MB, free: 8.625 MB / 350.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.makefile Environment - environmentSimulation: (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe 2>&1) Environment - environmentSimulation: