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.001153/0.001153, allocations: 105 kB / 16.35 MB, free: 5.875 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.001229/0.001229, allocations: 195.5 kB / 17.29 MB, free: 5.516 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.347/1.347, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1866/0.1866, allocations: 28.78 MB / 319.9 MB, free: 1.906 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001493/0.001493, allocations: 65.2 kB / 388 MB, free: 40.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1108, allocations: 56.44 MB / 444.4 MB, free: 3.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.005188/0.116, allocations: 3.636 MB / 448.1 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002138/0.1182, allocations: 0.6857 MB / 448.8 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006919/0.1189, allocations: 19.94 kB / 448.8 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006109/0.1196, allocations: 170.3 kB / 449 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006153/0.1202, allocations: 138.8 kB / 449.1 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001075/0.1213, allocations: 367.5 kB / 449.5 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001121/0.1225, allocations: 0.8406 MB / 450.3 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007952/0.1233, allocations: 0.6481 MB / 450.9 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002923/0.1236, allocations: 330.5 kB / 451.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003909/0.124, allocations: 409.6 kB / 451.7 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001472/0.1241, allocations: 91.94 kB / 451.8 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001844/0.1243, allocations: 112 kB / 451.9 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003503/0.1247, allocations: 438.5 kB / 452.3 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004251/0.1251, allocations: 0.6164 MB / 452.9 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00111/0.1262, allocations: 1.248 MB / 454.2 MB, free: 9.285 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1262, allocations: 0 / 454.2 MB, free: 9.285 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1262, allocations: 0 / 454.2 MB, free: 9.285 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.317e-05/0.1263, allocations: 0 / 454.2 MB, free: 9.285 MB / 334.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.002053/0.1283, allocations: 1.787 MB / 455.9 MB, free: 7.434 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.1284, allocations: 12.03 kB / 456 MB, free: 7.422 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001888/0.1286, allocations: 194.5 kB / 456.1 MB, free: 7.23 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008373/0.1294, allocations: 0.7549 MB / 456.9 MB, free: 6.426 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.102e-05/0.1295, allocations: 78.45 kB / 457 MB, free: 6.348 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001228/0.1296, allocations: 104.4 kB / 457.1 MB, free: 6.246 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001489/0.1311, allocations: 1.162 MB / 458.2 MB, free: 5.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.174e-05/0.1311, allocations: 4.125 kB / 458.2 MB, free: 5.016 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.201e-05/0.1312, allocations: 55.94 kB / 458.3 MB, free: 4.961 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.186e-05/0.1312, allocations: 24 kB / 458.3 MB, free: 4.938 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00147/0.1327, allocations: 1.093 MB / 459.4 MB, free: 3.844 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004125/0.1368, allocations: 3.654 MB / 463.1 MB, free: 84 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00149/0.1383, allocations: 1.334 MB / 464.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005347/0.1389, allocations: 494.3 kB / 464.9 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.702e-05/0.139, allocations: 24.61 kB / 464.9 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.911e-05/0.139, allocations: 39.12 kB / 464.9 MB, free: 14.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=68): time 2.565e-06/0.139, allocations: 0 / 464.9 MB, free: 14.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=68): time 0.001852/0.1409, allocations: 1.528 MB / 466.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.174e-05/0.1409, allocations: 59.97 kB / 466.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001337/0.1423, allocations: 1.28 MB / 467.8 MB, free: 11.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.22e-05/0.1423, allocations: 41.7 kB / 467.9 MB, free: 11.24 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005427/0.1429, allocations: 0.7716 MB / 468.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001599/0.1431, allocations: 232.5 kB / 468.9 MB, free: 10.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001562/0.1432, allocations: 118.6 kB / 469 MB, free: 10.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.1433, allocations: 341.9 kB / 469.3 MB, free: 9.766 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005046/0.1439, allocations: 437.8 kB / 469.7 MB, free: 9.336 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005825/0.1444, allocations: 0.5272 MB / 470.3 MB, free: 8.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001123/0.1456, allocations: 1.006 MB / 471.3 MB, free: 7.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.389e-06/0.1456, allocations: 0 / 471.3 MB, free: 7.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001411/0.147, allocations: 1.198 MB / 472.5 MB, free: 6.523 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.308e-05/0.147, allocations: 4 kB / 472.5 MB, free: 6.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.726e-05/0.1471, allocations: 8 kB / 472.5 MB, free: 6.512 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.956e-05/0.1471, allocations: 4 kB / 472.5 MB, free: 6.508 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004685/0.1476, allocations: 131.8 kB / 472.6 MB, free: 6.379 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.586e-05/0.1476, allocations: 11.94 kB / 472.6 MB, free: 6.367 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002461/0.1478, allocations: 51.38 kB / 472.7 MB, free: 6.316 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.497e-05/0.1479, allocations: 28 kB / 472.7 MB, free: 6.289 MB / 350.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.0004611/0.1484, allocations: 377.6 kB / 473.1 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001431/0.1485, allocations: 138.2 kB / 473.2 MB, free: 5.773 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001476/0.15, allocations: 1.201 MB / 474.4 MB, free: 4.566 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.676e-06/0.15, allocations: 8 kB / 474.4 MB, free: 4.559 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.15, allocations: 0 / 474.4 MB, free: 4.559 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.021e-05/0.15, allocations: 7.984 kB / 474.4 MB, free: 4.551 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002665/0.1527, allocations: 2.371 MB / 476.8 MB, free: 2.117 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.1527, allocations: 0 / 476.8 MB, free: 2.117 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004684/0.1532, allocations: 115.8 kB / 476.9 MB, free: 2.004 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.1532, allocations: 4 kB / 476.9 MB, free: 2 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.481e-05/0.1533, allocations: 12 kB / 476.9 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.489e-06/0.1533, allocations: 4 kB / 476.9 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.1533, allocations: 3.938 kB / 476.9 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002045/0.1553, allocations: 1.883 MB / 478.8 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002333/0.1556, allocations: 203.2 kB / 479 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.132e-05/0.1557, allocations: 11.98 kB / 479 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002287/0.1559, allocations: 12 kB / 479 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.835e-05/0.156, allocations: 44.44 kB / 479.1 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.136e-05/0.156, allocations: 20 kB / 479.1 MB, free: 15.78 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009733/0.157, allocations: 0.8926 MB / 480 MB, free: 14.89 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.157, allocations: 0 / 480 MB, free: 14.89 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005397/0.1576, allocations: 211 kB / 480.2 MB, free: 14.68 MB / 366.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.0001727/0.1578, allocations: 115.1 kB / 480.3 MB, free: 14.55 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001201/0.159, allocations: 0.9958 MB / 481.3 MB, free: 13.56 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.159, allocations: 0 / 481.3 MB, free: 13.56 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005604/0.1595, allocations: 0.5074 MB / 481.8 MB, free: 13.05 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005913/0.1601, allocations: 103.4 kB / 481.9 MB, free: 12.95 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003579/0.1637, allocations: 2.761 MB / 484.7 MB, free: 10.16 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009135/0.1647, allocations: 1.307 MB / 486 MB, free: 8.824 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002429/0.1649, allocations: 68.39 kB / 486 MB, free: 8.754 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001192/0.165, allocations: 51.42 kB / 486.1 MB, free: 8.703 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1651, allocations: 4 kB / 486.1 MB, free: 8.699 MB / 366.1 MB Notification: Performance of Templates: time 0.01232/0.1774, allocations: 5.205 MB / 491.3 MB, free: 3.492 MB / 366.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 -s gbode -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe 2>&1)