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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo", uses=false) Using package SystemDynamics with version 2.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.002958/0.002968, allocations: 183 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.566/1.566, allocations: 205.1 MB / 221.8 MB, free: 8.48 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001022/0.001022, allocations: 94.28 kB / 269.2 MB, free: 8.438 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo): time 0.1976/0.1976, allocations: 28.77 MB / 345.3 MB, free: 12.19 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001096/0.001096, allocations: 51.92 kB / 409.7 MB, free: 47.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1067, allocations: 53.6 MB / 463.3 MB, free: 10.31 MB / 314.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.004896/0.1116, allocations: 3.68 MB / 467 MB, free: 6.613 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001827/0.1135, allocations: 0.674 MB / 467.6 MB, free: 5.938 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004679/0.114, allocations: 15.94 kB / 467.7 MB, free: 5.922 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003821/0.1144, allocations: 135 kB / 467.8 MB, free: 5.789 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002817/0.1147, allocations: 99.48 kB / 467.9 MB, free: 5.691 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006271/0.1153, allocations: 303.8 kB / 468.2 MB, free: 5.395 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007759/0.1161, allocations: 0.8368 MB / 469 MB, free: 4.555 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007312/0.1168, allocations: 0.621 MB / 469.6 MB, free: 3.902 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002348/0.1171, allocations: 310.4 kB / 469.9 MB, free: 3.598 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003144/0.1174, allocations: 429.5 kB / 470.4 MB, free: 3.176 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 9.89e-05/0.1175, allocations: 56 kB / 470.4 MB, free: 3.121 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001595/0.1177, allocations: 79.97 kB / 470.5 MB, free: 3.043 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003358/0.118, allocations: 430.4 kB / 470.9 MB, free: 2.621 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003986/0.1184, allocations: 0.6045 MB / 471.5 MB, free: 2.012 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008762/0.1193, allocations: 1.167 MB / 472.7 MB, free: 0.8398 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1193, allocations: 0 / 472.7 MB, free: 0.8398 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.1193, allocations: 0 / 472.7 MB, free: 0.8398 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.403e-05/0.1194, allocations: 0 / 472.7 MB, free: 0.8398 MB / 314.7 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.002086/0.1214, allocations: 1.827 MB / 474.5 MB, free: 14.95 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.306e-05/0.1215, allocations: 8.031 kB / 474.5 MB, free: 14.94 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001947/0.1217, allocations: 202.3 kB / 474.7 MB, free: 14.74 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007637/0.1225, allocations: 0.7509 MB / 475.5 MB, free: 13.94 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.574e-05/0.1225, allocations: 82.48 kB / 475.5 MB, free: 13.86 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001163/0.1227, allocations: 104.3 kB / 475.6 MB, free: 13.76 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001637/0.1243, allocations: 1.274 MB / 476.9 MB, free: 12.41 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.074e-05/0.1243, allocations: 8.125 kB / 476.9 MB, free: 12.41 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.355e-05/0.1244, allocations: 51.92 kB / 477 MB, free: 12.36 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-05/0.1245, allocations: 47.98 kB / 477 MB, free: 12.31 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001641/0.1261, allocations: 1.226 MB / 478.3 MB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005283/0.1314, allocations: 3.924 MB / 482.2 MB, free: 7.035 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001575/0.133, allocations: 1.354 MB / 483.5 MB, free: 5.66 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005628/0.1336, allocations: 499.2 kB / 484 MB, free: 5.164 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.772e-05/0.1337, allocations: 40.64 kB / 484.1 MB, free: 5.125 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.882e-05/0.1337, allocations: 43.12 kB / 484.1 MB, free: 5.074 MB / 330.7 MB Notification: Performance of pre-optimization done (n=70): time 2.435e-06/0.1338, allocations: 0 / 484.1 MB, free: 5.074 MB / 330.7 MB Notification: Performance of matching and sorting (n=70): time 0.001815/0.1356, allocations: 1.555 MB / 485.7 MB, free: 3.516 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.216e-05/0.1356, allocations: 85.8 kB / 485.7 MB, free: 3.414 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001396/0.1371, allocations: 1.37 MB / 487.1 MB, free: 2.035 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.032e-05/0.1371, allocations: 41.7 kB / 487.2 MB, free: 1.988 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000528/0.1376, allocations: 0.837 MB / 488 MB, free: 1.141 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001702/0.1378, allocations: 248.4 kB / 488.2 MB, free: 0.8945 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001838/0.138, allocations: 146.6 kB / 488.4 MB, free: 0.7461 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.1381, allocations: 341.9 kB / 488.7 MB, free: 416 kB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1907/0.3289, allocations: 471 kB / 489.2 MB, free: 31.96 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008427/0.3297, allocations: 0.7278 MB / 489.9 MB, free: 31.67 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001521/0.3313, allocations: 1.238 MB / 491.1 MB, free: 31.18 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.623e-06/0.3313, allocations: 2.188 kB / 491.1 MB, free: 31.18 MB / 330.7 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.002065/0.3334, allocations: 1.387 MB / 492.5 MB, free: 30.84 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.639e-05/0.3334, allocations: 8.031 kB / 492.5 MB, free: 30.84 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.572e-05/0.3334, allocations: 9.484 kB / 492.5 MB, free: 30.84 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.799e-05/0.3335, allocations: 11.88 kB / 492.6 MB, free: 30.84 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005922/0.3341, allocations: 187.8 kB / 492.7 MB, free: 30.82 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.05e-05/0.3341, allocations: 14.7 kB / 492.8 MB, free: 30.82 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003563/0.3344, allocations: 85.08 kB / 492.8 MB, free: 30.8 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.275e-05/0.3345, allocations: 39.42 kB / 492.9 MB, free: 30.8 MB / 330.7 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004996/0.335, allocations: 404.7 kB / 493.3 MB, free: 30.58 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001563/0.3352, allocations: 146.9 kB / 493.4 MB, free: 30.58 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00177/0.337, allocations: 1.251 MB / 494.7 MB, free: 30.22 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.458e-06/0.337, allocations: 7.953 kB / 494.7 MB, free: 30.22 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.337, allocations: 0 / 494.7 MB, free: 30.22 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.057e-05/0.337, allocations: 5.281 kB / 494.7 MB, free: 30.22 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002987/0.34, allocations: 2.4 MB / 497.1 MB, free: 29.38 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.34, allocations: 9 kB / 497.1 MB, free: 29.38 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004813/0.3405, allocations: 115.9 kB / 497.2 MB, free: 29.37 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.533e-06/0.3405, allocations: 3.094 kB / 497.2 MB, free: 29.37 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.67e-05/0.3406, allocations: 24.52 kB / 497.2 MB, free: 29.35 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.609e-06/0.3406, allocations: 2.438 kB / 497.2 MB, free: 29.35 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.3406, allocations: 5.156 kB / 497.2 MB, free: 29.35 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0197/0.3603, allocations: 12.19 MB / 0.4975 GB, free: 25.04 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002729/0.3606, allocations: 211.2 kB / 0.4977 GB, free: 24.85 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.738e-05/0.3607, allocations: 11.81 kB / 0.4977 GB, free: 24.84 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002956/0.361, allocations: 20.36 kB / 0.4977 GB, free: 24.83 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001281/0.3612, allocations: 42.91 kB / 0.4978 GB, free: 24.82 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.34e-05/0.3612, allocations: 24.56 kB / 0.4978 GB, free: 24.82 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001166/0.3624, allocations: 0.9352 MB / 0.4987 GB, free: 24.3 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3624, allocations: 0 / 0.4987 GB, free: 24.3 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001159/0.3636, allocations: 314.9 kB / 0.499 GB, free: 23.99 MB / 330.7 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 (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.0002336/0.3638, allocations: 130.7 kB / 0.4991 GB, free: 23.86 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001184/0.365, allocations: 1.09 MB / 0.5002 GB, free: 22.89 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.365, allocations: 0 / 0.5002 GB, free: 22.89 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004624/0.3655, allocations: 0.5164 MB / 0.5007 GB, free: 22.43 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000675/0.3662, allocations: 94.84 kB / 0.5008 GB, free: 22.34 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003653/0.3698, allocations: 3.944 MB / 0.5046 GB, free: 18.37 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006722/0.3705, allocations: 1.356 MB / 0.506 GB, free: 16.99 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006494/0.3712, allocations: 195.3 kB / 0.5061 GB, free: 16.79 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003196/0.3715, allocations: 107.4 kB / 0.5062 GB, free: 16.69 MB / 330.7 MB Notification: Performance of SimCode: time 5.91e-07/0.3715, allocations: 0 / 0.5062 GB, free: 16.69 MB / 330.7 MB Notification: Performance of Templates: time 0.01543/0.3869, allocations: 9.558 MB / 0.5156 GB, free: 7.129 MB / 330.7 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.makefile (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)