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.0008705/0.0008705, allocations: 90.83 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.00808/0.008081, allocations: 172.3 kB / 16.26 MB, free: 6.676 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.388/1.388, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3419/0.3419, allocations: 28.83 MB / 320.3 MB, free: 6.215 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003226/0.0003226, allocations: 8 kB / 388.5 MB, free: 3.195 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3151/0.3154, allocations: 57.48 MB / 446 MB, free: 32.89 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.002803/0.3183, allocations: 2.807 MB / 448.8 MB, free: 30.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001123/0.3194, allocations: 0.5315 MB / 449.3 MB, free: 30.35 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002131/0.3197, allocations: 11.59 kB / 449.3 MB, free: 30.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001902/0.3199, allocations: 102 kB / 449.4 MB, free: 30.31 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000272/0.3201, allocations: 76.73 kB / 449.5 MB, free: 30.28 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004666/0.3206, allocations: 245.8 kB / 449.7 MB, free: 30.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004882/0.3211, allocations: 0.6961 MB / 450.4 MB, free: 29.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005342/0.3217, allocations: 448.4 kB / 450.9 MB, free: 29.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001591/0.3218, allocations: 220 kB / 451.1 MB, free: 29.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002168/0.322, allocations: 304.8 kB / 451.4 MB, free: 29.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.431e-05/0.3221, allocations: 24.16 kB / 451.4 MB, free: 29.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001431/0.3223, allocations: 48.7 kB / 451.5 MB, free: 29.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002638/0.3225, allocations: 368.8 kB / 451.8 MB, free: 29.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002551/0.3228, allocations: 0.5234 MB / 452.3 MB, free: 28.74 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006398/0.3234, allocations: 1.003 MB / 453.3 MB, free: 28.29 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.3235, allocations: 0 / 453.3 MB, free: 28.29 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3235, allocations: 0 / 453.3 MB, free: 28.29 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.479e-05/0.3235, allocations: 0 / 453.3 MB, free: 28.29 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.001469/0.325, allocations: 1.471 MB / 454.8 MB, free: 27.24 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.325, allocations: 8.812 kB / 454.8 MB, free: 27.24 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001538/0.3252, allocations: 190.9 kB / 455 MB, free: 27.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000337/0.3255, allocations: 0.5624 MB / 455.6 MB, free: 26.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.646e-05/0.3256, allocations: 72.73 kB / 455.6 MB, free: 26.63 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.808e-05/0.3257, allocations: 104.8 kB / 455.7 MB, free: 26.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001336/0.327, allocations: 1.094 MB / 456.8 MB, free: 26.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.55e-05/0.3271, allocations: 3.516 kB / 456.8 MB, free: 26.24 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.479e-05/0.3271, allocations: 39.81 kB / 456.9 MB, free: 26.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.132e-05/0.3272, allocations: 56.67 kB / 456.9 MB, free: 26.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001401/0.3286, allocations: 1.237 MB / 458.2 MB, free: 25.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003463/0.3321, allocations: 2.875 MB / 461 MB, free: 24.74 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001343/0.3334, allocations: 1.008 MB / 462.1 MB, free: 24.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000672/0.3341, allocations: 0.5106 MB / 462.6 MB, free: 24.38 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.742e-05/0.3342, allocations: 30.02 kB / 462.6 MB, free: 24.38 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.977e-05/0.3342, allocations: 41.72 kB / 462.6 MB, free: 24.33 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.385e-06/0.3342, allocations: 4.812 kB / 462.6 MB, free: 24.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.00229/0.3365, allocations: 1.627 MB / 464.3 MB, free: 23.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.388e-05/0.3366, allocations: 58.75 kB / 464.3 MB, free: 23.85 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001363/0.3379, allocations: 1.261 MB / 465.6 MB, free: 23.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.141e-05/0.338, allocations: 36.17 kB / 465.6 MB, free: 23.37 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004993/0.3385, allocations: 0.7759 MB / 466.4 MB, free: 22.76 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001499/0.3386, allocations: 228.9 kB / 466.6 MB, free: 22.58 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.132e-05/0.3387, allocations: 65.7 kB / 466.7 MB, free: 22.54 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.378e-05/0.3388, allocations: 335.4 kB / 467 MB, free: 22.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007009/0.3395, allocations: 492 kB / 467.5 MB, free: 22.13 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007746/0.3403, allocations: 0.667 MB / 468.2 MB, free: 21.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004227/0.3445, allocations: 2.184 MB / 470.3 MB, free: 21.12 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.3445, allocations: 1.375 kB / 470.3 MB, free: 21.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001955/0.3465, allocations: 1.357 MB / 471.7 MB, free: 20.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.409e-05/0.3465, allocations: 11.19 kB / 471.7 MB, free: 20.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/0.3466, allocations: 6.625 kB / 471.7 MB, free: 20.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.604e-05/0.3466, allocations: 8.719 kB / 471.7 MB, free: 20.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006192/0.3472, allocations: 191 kB / 471.9 MB, free: 20.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.464e-05/0.3473, allocations: 10.5 kB / 471.9 MB, free: 20.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004462/0.3477, allocations: 92.81 kB / 472 MB, free: 20.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.785e-05/0.3478, allocations: 34.19 kB / 472 MB, free: 20.64 MB / 350.1 MB Warning: Assuming fixed start value for the following 6 variables: years:VARIABLE(start = 1900.0 fixed = true ) "Time in calendar years" type: Real Population.level:VARIABLE(start = Population.x0 fixed = true ) "Reversible state variable" type: Real Natural_Resources.level:VARIABLE(start = Natural_Resources.x0 fixed = true ) "Reversible state variable" type: Real Capital_Investment.level:VARIABLE(start = Capital_Investment.x0 fixed = true ) "Reversible state variable" type: Real Pollution.level:VARIABLE(start = Pollution.x0 fixed = true ) "Reversible state variable" type: Real CIAF.level:VARIABLE(start = CIAF.x0 fixed = true ) "Reversible state variable" 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008019/0.3486, allocations: 396.9 kB / 472.4 MB, free: 20.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001806/0.3488, allocations: 136 kB / 472.6 MB, free: 20.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002128/0.3509, allocations: 1.279 MB / 473.8 MB, free: 19.99 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-06/0.3509, allocations: 6.594 kB / 473.9 MB, free: 19.99 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.281e-05/0.351, allocations: 1.719 kB / 473.9 MB, free: 19.99 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.093e-05/0.351, allocations: 2.719 kB / 473.9 MB, free: 19.99 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003933/0.3549, allocations: 2.398 MB / 476.3 MB, free: 19.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.559e-05/0.355, allocations: 5.031 kB / 476.3 MB, free: 19.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000554/0.3555, allocations: 131.8 kB / 476.4 MB, free: 19.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.143e-05/0.3555, allocations: 6.812 kB / 476.4 MB, free: 19.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.828e-05/0.3556, allocations: 19.47 kB / 476.4 MB, free: 19.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.444e-06/0.3556, allocations: 6.484 kB / 476.4 MB, free: 19.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.3556, allocations: 0.7969 kB / 476.4 MB, free: 19.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002446/0.3581, allocations: 1.978 MB / 478.4 MB, free: 17.36 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002287/0.3583, allocations: 197.2 kB / 478.6 MB, free: 17.15 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.876e-05/0.3584, allocations: 12.67 kB / 478.6 MB, free: 17.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000309/0.3587, allocations: 29.77 kB / 478.6 MB, free: 17.11 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000142/0.3589, allocations: 49.44 kB / 478.7 MB, free: 17.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.172e-05/0.3589, allocations: 21.36 kB / 478.7 MB, free: 17.06 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001363/0.3603, allocations: 0.8714 MB / 479.6 MB, free: 16.35 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3603, allocations: 4 kB / 479.6 MB, free: 16.35 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007388/0.3611, allocations: 211 kB / 479.8 MB, free: 16.14 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 (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.0001804/0.3613, allocations: 117.2 kB / 479.9 MB, free: 16.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001521/0.3628, allocations: 1.119 MB / 481 MB, free: 15.03 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.3628, allocations: 0 / 481 MB, free: 15.03 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006713/0.3635, allocations: 0.5604 MB / 481.6 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005147/0.364, allocations: 65.09 kB / 481.6 MB, free: 14.47 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004346/0.3684, allocations: 3.367 MB / 485 MB, free: 11.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00109/0.3695, allocations: 1.29 MB / 486.3 MB, free: 10.26 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004576/0.37, allocations: 122.2 kB / 486.4 MB, free: 10.17 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001676/0.3701, allocations: 53.69 kB / 486.5 MB, free: 10.12 MB / 350.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3701, allocations: 0 / 486.5 MB, free: 10.12 MB / 350.1 MB Notification: Performance of Templates: time 0.01148/0.3816, allocations: 4.715 MB / 491.2 MB, free: 5.426 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: