Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.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_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008742/0.008741, allocations: 101.9 kB / 15.73 MB, free: 6.059 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.001819/0.001819, allocations: 188.8 kB / 16.67 MB, free: 5.969 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.389/1.389, allocations: 222.9 MB / 240.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1788/0.1788, allocations: 28.78 MB / 319.3 MB, free: 1.91 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001974/0.001974, allocations: 59.89 kB / 444.3 MB, free: 2.543 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.122, allocations: 56.42 MB / 0.489 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.005508/0.1276, allocations: 3.642 MB / 0.4926 GB, free: 6.41 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002419/0.13, allocations: 0.6857 MB / 0.4932 GB, free: 5.723 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009191/0.131, allocations: 15.94 kB / 0.4933 GB, free: 5.707 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005434/0.1315, allocations: 174.3 kB / 0.4934 GB, free: 5.535 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003967/0.132, allocations: 134.8 kB / 0.4936 GB, free: 5.402 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008326/0.1328, allocations: 363.5 kB / 0.4939 GB, free: 5.047 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008052/0.1336, allocations: 0.8483 MB / 0.4947 GB, free: 4.195 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007774/0.1344, allocations: 0.6364 MB / 0.4953 GB, free: 3.52 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002831/0.1347, allocations: 338.4 kB / 0.4957 GB, free: 3.188 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003138/0.135, allocations: 417.6 kB / 0.4961 GB, free: 2.777 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001164/0.1351, allocations: 91.94 kB / 0.4962 GB, free: 2.688 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001878/0.1353, allocations: 116 kB / 0.4963 GB, free: 2.574 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003545/0.1357, allocations: 434.5 kB / 0.4967 GB, free: 2.148 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003958/0.1361, allocations: 0.6086 MB / 0.4973 GB, free: 1.535 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001161/0.1373, allocations: 1.27 MB / 0.4985 GB, free: 264 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.147e-06/0.1373, allocations: 0 / 0.4985 GB, free: 264 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1373, allocations: 4 kB / 0.4985 GB, free: 260 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.967e-05/0.1373, allocations: 0 / 0.4985 GB, free: 260 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 263 * Number of variables: 263 Notification: Performance of Generate backend data structure: time 0.00199/0.1393, allocations: 1.837 MB / 0.5003 GB, free: 14.35 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.1394, allocations: 12.03 kB / 0.5003 GB, free: 14.34 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002161/0.1396, allocations: 207.6 kB / 0.5005 GB, free: 14.13 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008564/0.1405, allocations: 0.7757 MB / 0.5013 GB, free: 13.31 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.787e-05/0.1405, allocations: 78.45 kB / 0.5014 GB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001185/0.1406, allocations: 104.4 kB / 0.5015 GB, free: 13.13 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001539/0.1422, allocations: 1.166 MB / 0.5026 GB, free: 11.9 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.115e-05/0.1422, allocations: 192 / 0.5026 GB, free: 11.9 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.178e-05/0.1423, allocations: 43.94 kB / 0.5026 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.983e-05/0.1423, allocations: 28 kB / 0.5027 GB, free: 11.83 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001389/0.1437, allocations: 1.101 MB / 0.5037 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00401/0.1477, allocations: 3.651 MB / 0.5073 GB, free: 6.969 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001573/0.1493, allocations: 1.338 MB / 0.5086 GB, free: 5.617 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005055/0.1498, allocations: 490.3 kB / 0.5091 GB, free: 5.137 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001205/0.15, allocations: 24.77 kB / 0.5091 GB, free: 5.113 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.03e-05/0.15, allocations: 47.06 kB / 0.5091 GB, free: 5.059 MB / 398.1 MB Notification: Performance of pre-optimization done (n=68): time 2.184e-06/0.15, allocations: 0 / 0.5091 GB, free: 5.059 MB / 398.1 MB Notification: Performance of matching and sorting (n=68): time 0.001844/0.1519, allocations: 1.533 MB / 0.5106 GB, free: 3.52 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.492e-05/0.1519, allocations: 59.97 kB / 0.5107 GB, free: 3.449 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001358/0.1533, allocations: 1.288 MB / 0.512 GB, free: 2.152 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.248e-05/0.1533, allocations: 41.7 kB / 0.512 GB, free: 2.105 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006002/0.1539, allocations: 0.7687 MB / 0.5127 GB, free: 1.328 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001965/0.1541, allocations: 249.9 kB / 0.513 GB, free: 1.082 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001684/0.1543, allocations: 118.6 kB / 0.5131 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.1545, allocations: 333.9 kB / 0.5134 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005154/0.155, allocations: 441.8 kB / 0.5138 GB, free: 200 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2279/0.3829, allocations: 0.5275 MB / 0.5144 GB, free: 26.8 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001733/0.3846, allocations: 1.002 MB / 0.5153 GB, free: 26.71 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.735e-06/0.3847, allocations: 1.625 kB / 0.5153 GB, free: 26.71 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001838/0.3865, allocations: 1.195 MB / 0.5165 GB, free: 26.66 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.445e-05/0.3866, allocations: 5.688 kB / 0.5165 GB, free: 26.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.382e-05/0.3866, allocations: 4.75 kB / 0.5165 GB, free: 26.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.193e-05/0.3866, allocations: 5.469 kB / 0.5165 GB, free: 26.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004821/0.3871, allocations: 133.3 kB / 0.5166 GB, free: 26.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.818e-05/0.3871, allocations: 11.36 kB / 0.5167 GB, free: 26.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003488/0.3875, allocations: 60.44 kB / 0.5167 GB, free: 26.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.212e-05/0.3875, allocations: 27.25 kB / 0.5167 GB, free: 26.66 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (83): * Single equations (assignments): 83 * 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.000509/0.3881, allocations: 377.4 kB / 0.5171 GB, free: 26.54 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001958/0.3883, allocations: 148.2 kB / 0.5172 GB, free: 26.54 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001537/0.3898, allocations: 1.203 MB / 0.5184 GB, free: 26.48 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.616e-06/0.3898, allocations: 6.812 kB / 0.5184 GB, free: 26.48 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.3898, allocations: 3.438 kB / 0.5184 GB, free: 26.48 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.3898, allocations: 4.203 kB / 0.5184 GB, free: 26.48 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003096/0.3929, allocations: 2.366 MB / 0.5207 GB, free: 26.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.97e-06/0.393, allocations: 1.156 kB / 0.5207 GB, free: 26.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000473/0.3934, allocations: 112.3 kB / 0.5208 GB, free: 26.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.284e-05/0.3935, allocations: 3.219 kB / 0.5209 GB, free: 26.16 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.758e-05/0.3935, allocations: 20.03 kB / 0.5209 GB, free: 26.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.696e-06/0.3935, allocations: 8.125 kB / 0.5209 GB, free: 26.16 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.3935, allocations: 1.219 kB / 0.5209 GB, free: 26.16 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002703/0.3963, allocations: 1.891 MB / 0.5227 GB, free: 25.94 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002566/0.3965, allocations: 210 kB / 0.5229 GB, free: 25.76 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001253/0.3967, allocations: 10.64 kB / 0.5229 GB, free: 25.76 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002583/0.3969, allocations: 21 kB / 0.523 GB, free: 25.76 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000122/0.3971, allocations: 37.86 kB / 0.523 GB, free: 25.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.997e-05/0.3971, allocations: 21.06 kB / 0.523 GB, free: 25.75 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001727/0.3988, allocations: 0.8922 MB / 0.5239 GB, free: 25.64 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3988, allocations: 1.062 kB / 0.5239 GB, free: 25.64 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008077/0.3997, allocations: 213.4 kB / 0.5241 GB, free: 25.61 MB / 398.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (68): * Single equations (assignments): 68 * 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.0001855/0.3999, allocations: 120.5 kB / 0.5242 GB, free: 25.53 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001526/0.4014, allocations: 0.998 MB / 0.5252 GB, free: 25.52 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.4014, allocations: 0 / 0.5252 GB, free: 25.52 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007215/0.4021, allocations: 0.5124 MB / 0.5257 GB, free: 25.51 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006939/0.4028, allocations: 92.06 kB / 0.5258 GB, free: 25.5 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004303/0.4071, allocations: 2.806 MB / 0.5285 GB, free: 24.32 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001318/0.4085, allocations: 1.306 MB / 0.5298 GB, free: 23.57 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003293/0.4088, allocations: 76.58 kB / 0.5299 GB, free: 23.55 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001311/0.409, allocations: 48.44 kB / 0.5299 GB, free: 23.54 MB / 398.1 MB Notification: Performance of SimCode: time 7.11e-07/0.409, allocations: 1.375 kB / 0.5299 GB, free: 23.54 MB / 398.1 MB Notification: Performance of Templates: time 0.01588/0.4249, allocations: 5.311 MB / 0.5351 GB, free: 23.1 MB / 398.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe 2>&1)