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.001011/0.001011, allocations: 86.72 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.001419/0.001419, 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.319/1.319, allocations: 223.3 MB / 240 MB, free: 5.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3216/0.3216, allocations: 28.84 MB / 319.9 MB, free: 6.301 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002973/0.0002974, allocations: 8 kB / 387.9 MB, free: 3.516 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2879/0.2882, allocations: 57.49 MB / 445.4 MB, free: 32.8 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.002727/0.2909, allocations: 2.925 MB / 448.3 MB, free: 30.6 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001289/0.2923, allocations: 0.6726 MB / 449 MB, free: 30.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002865/0.2926, allocations: 18.28 kB / 449 MB, free: 30.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000254/0.2928, allocations: 117.1 kB / 449.1 MB, free: 30.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002224/0.2931, allocations: 92.91 kB / 449.2 MB, free: 30.03 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004643/0.2935, allocations: 262.3 kB / 449.4 MB, free: 29.9 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000548/0.2941, allocations: 0.777 MB / 450.2 MB, free: 29.56 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005223/0.2946, allocations: 485.4 kB / 450.7 MB, free: 29.35 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001643/0.2948, allocations: 242.9 kB / 450.9 MB, free: 29.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002134/0.295, allocations: 326.5 kB / 451.3 MB, free: 29.06 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.084e-05/0.2951, allocations: 22.12 kB / 451.3 MB, free: 29.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001225/0.2952, allocations: 43.81 kB / 451.3 MB, free: 29.06 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002141/0.2954, allocations: 346.4 kB / 451.7 MB, free: 28.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001015/0.2955, allocations: 243 kB / 451.9 MB, free: 28.76 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005127/0.2961, allocations: 0.8137 MB / 452.7 MB, free: 28.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.2961, allocations: 0 / 452.7 MB, free: 28.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.2961, allocations: 0 / 452.7 MB, free: 28.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.439e-05/0.2961, allocations: 0 / 452.7 MB, free: 28.52 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: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.001384/0.2975, allocations: 1.564 MB / 454.3 MB, free: 27.42 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.18e-05/0.2975, allocations: 8.562 kB / 454.3 MB, free: 27.42 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001601/0.2977, allocations: 210.1 kB / 454.5 MB, free: 27.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005773/0.2983, allocations: 0.6955 MB / 455.2 MB, free: 26.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.592e-05/0.2983, allocations: 77.14 kB / 455.3 MB, free: 26.76 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.222e-05/0.2984, allocations: 114.8 kB / 455.4 MB, free: 26.72 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00141/0.2999, allocations: 1.268 MB / 456.6 MB, free: 26.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.217e-05/0.2999, allocations: 2.625 kB / 456.6 MB, free: 26.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.47e-05/0.2999, allocations: 39.88 kB / 456.7 MB, free: 26.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.482e-05/0.3, allocations: 45.19 kB / 456.7 MB, free: 26.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001383/0.3014, allocations: 1.223 MB / 457.9 MB, free: 25.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003859/0.3053, allocations: 3.922 MB / 461.9 MB, free: 23.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001508/0.3068, allocations: 1.353 MB / 463.2 MB, free: 23.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005182/0.3073, allocations: 494.1 kB / 463.7 MB, free: 23.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.242e-05/0.3074, allocations: 39.33 kB / 463.7 MB, free: 23.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.934e-05/0.3074, allocations: 38.66 kB / 463.8 MB, free: 23.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=70): time 2.365e-06/0.3074, allocations: 0 / 463.8 MB, free: 23.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.002078/0.3095, allocations: 1.554 MB / 465.3 MB, free: 22.74 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.366e-05/0.3096, allocations: 84.98 kB / 465.4 MB, free: 22.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001629/0.3112, allocations: 1.361 MB / 466.8 MB, free: 22.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.642e-05/0.3113, allocations: 36.45 kB / 466.8 MB, free: 22.12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005498/0.3118, allocations: 0.8434 MB / 467.7 MB, free: 21.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001659/0.312, allocations: 243.7 kB / 467.9 MB, free: 21.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.04e-05/0.312, allocations: 20.12 kB / 467.9 MB, free: 21.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.246e-05/0.3121, allocations: 340.3 kB / 468.2 MB, free: 20.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007028/0.3128, allocations: 472.9 kB / 468.7 MB, free: 20.83 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008933/0.3137, allocations: 0.7161 MB / 469.4 MB, free: 20.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009093/0.3146, allocations: 0.531 MB / 470 MB, free: 20.26 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.768e-06/0.3147, allocations: 2.375 kB / 470 MB, free: 20.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.002015/0.3167, allocations: 1.38 MB / 471.3 MB, free: 19.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.694e-05/0.3167, allocations: 10.47 kB / 471.3 MB, free: 19.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.787e-05/0.3167, allocations: 7.766 kB / 471.4 MB, free: 19.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.181e-05/0.3168, allocations: 25.75 kB / 471.4 MB, free: 19.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006111/0.3174, allocations: 183.5 kB / 471.6 MB, free: 19.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.702e-05/0.3174, allocations: 19.44 kB / 471.6 MB, free: 19.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004287/0.3179, allocations: 83.69 kB / 471.7 MB, free: 19.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.188e-05/0.318, allocations: 44.3 kB / 471.7 MB, free: 19.72 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008819/0.3188, allocations: 396.4 kB / 472.1 MB, free: 19.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002345/0.3191, allocations: 148.2 kB / 472.2 MB, free: 19.42 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002004/0.3211, allocations: 1.25 MB / 473.5 MB, free: 19.04 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/0.3211, allocations: 7.781 kB / 473.5 MB, free: 19.04 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/0.3211, allocations: 5.328 kB / 473.5 MB, free: 19.04 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/0.3212, allocations: 3.094 kB / 473.5 MB, free: 19.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003191/0.3244, allocations: 2.399 MB / 475.9 MB, free: 18.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.3244, allocations: 0 / 475.9 MB, free: 18.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004903/0.3249, allocations: 124.5 kB / 476 MB, free: 18.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.044e-05/0.3249, allocations: 2.969 kB / 476 MB, free: 18.13 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.937e-05/0.3249, allocations: 16.44 kB / 476 MB, free: 18.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.58e-06/0.3249, allocations: 2.375 kB / 476 MB, free: 18.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.325, allocations: 1.219 kB / 476 MB, free: 18.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002056/0.327, allocations: 1.983 MB / 478 MB, free: 17.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001609/0.3272, allocations: 213.7 kB / 478.2 MB, free: 16.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.151e-05/0.3273, allocations: 12 kB / 478.2 MB, free: 16.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002575/0.3275, allocations: 13.97 kB / 478.3 MB, free: 16.8 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.376e-05/0.3276, allocations: 44.45 kB / 478.3 MB, free: 16.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.369e-05/0.3277, allocations: 29.31 kB / 478.3 MB, free: 16.74 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001029/0.3287, allocations: 0.9173 MB / 479.2 MB, free: 16 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3287, allocations: 0 / 479.2 MB, free: 16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007106/0.3294, allocations: 227 kB / 479.5 MB, free: 15.78 MB / 350.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 (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.0001815/0.3296, allocations: 120.9 kB / 479.6 MB, free: 15.65 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001496/0.3311, allocations: 1.084 MB / 480.7 MB, free: 14.69 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.3311, allocations: 7.875 kB / 480.7 MB, free: 14.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006374/0.3318, allocations: 0.5168 MB / 481.2 MB, free: 14.22 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007919/0.3326, allocations: 102.2 kB / 481.3 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003574/0.3362, allocations: 3.333 MB / 484.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007857/0.337, allocations: 1.33 MB / 486 MB, free: 9.914 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004389/0.3374, allocations: 129.9 kB / 486.1 MB, free: 9.816 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001434/0.3376, allocations: 62.16 kB / 486.1 MB, free: 9.758 MB / 350.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3376, allocations: 0 / 486.1 MB, free: 9.758 MB / 350.1 MB Notification: Performance of Templates: time 0.01023/0.3478, allocations: 5.078 MB / 491.2 MB, free: 4.836 MB / 350.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: