Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.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_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001125/0.001125, allocations: 105.7 kB / 16.37 MB, free: 6.477 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.0009975/0.0009979, allocations: 193.8 kB / 17.31 MB, free: 5.824 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.393/1.393, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1926/0.1926, allocations: 28.78 MB / 319.9 MB, free: 1.922 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001793/0.001793, allocations: 60.06 kB / 388 MB, free: 40.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1181, allocations: 56.43 MB / 444.5 MB, free: 3.055 MB / 318.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.005242/0.1234, allocations: 3.647 MB / 448.1 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001362/0.1247, allocations: 0.6818 MB / 448.8 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003422/0.1251, allocations: 16 kB / 448.8 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004289/0.1255, allocations: 166.3 kB / 449 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002894/0.1259, allocations: 142.8 kB / 449.1 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007024/0.1266, allocations: 359.6 kB / 449.5 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007728/0.1273, allocations: 0.8444 MB / 450.3 MB, free: 13.19 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007876/0.1281, allocations: 0.6364 MB / 450.9 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000258/0.1284, allocations: 330.4 kB / 451.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003339/0.1287, allocations: 425.6 kB / 451.7 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001116/0.1289, allocations: 84 kB / 451.8 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001754/0.129, allocations: 108 kB / 451.9 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003163/0.1294, allocations: 430.5 kB / 452.3 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004007/0.1298, allocations: 0.6164 MB / 452.9 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001031/0.1308, allocations: 1.248 MB / 454.1 MB, free: 9.293 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.1308, allocations: 0 / 454.1 MB, free: 9.293 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1308, allocations: 0 / 454.1 MB, free: 9.293 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.582e-05/0.1309, allocations: 0 / 454.1 MB, free: 9.293 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.002033/0.1329, allocations: 1.784 MB / 455.9 MB, free: 7.445 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.133, allocations: 12.03 kB / 455.9 MB, free: 7.434 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000211/0.1332, allocations: 194.5 kB / 456.1 MB, free: 7.242 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009169/0.1341, allocations: 0.755 MB / 456.9 MB, free: 6.438 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.018e-05/0.1342, allocations: 78.38 kB / 457 MB, free: 6.359 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001082/0.1343, allocations: 104.4 kB / 457.1 MB, free: 6.258 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001534/0.1358, allocations: 1.158 MB / 458.2 MB, free: 5.035 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.116e-05/0.1359, allocations: 4.172 kB / 458.2 MB, free: 5.031 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.959e-05/0.1359, allocations: 47.94 kB / 458.3 MB, free: 4.984 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.138e-05/0.136, allocations: 32 kB / 458.3 MB, free: 4.953 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001387/0.1373, allocations: 1.089 MB / 459.4 MB, free: 3.863 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003973/0.1413, allocations: 3.646 MB / 463 MB, free: 112 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001562/0.1429, allocations: 1.338 MB / 464.4 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005583/0.1435, allocations: 482.3 kB / 464.8 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.47e-05/0.1436, allocations: 28.77 kB / 464.9 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.683e-05/0.1436, allocations: 39.12 kB / 464.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 5.26e-06/0.1436, allocations: 3.984 kB / 464.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=67): time 0.001797/0.1454, allocations: 1.532 MB / 466.4 MB, free: 12.67 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.631e-05/0.1455, allocations: 55.97 kB / 466.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00134/0.1468, allocations: 1.285 MB / 467.8 MB, free: 11.31 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.046e-05/0.1469, allocations: 45.69 kB / 467.8 MB, free: 11.26 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005721/0.1475, allocations: 0.7599 MB / 468.6 MB, free: 10.49 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001556/0.1476, allocations: 228.7 kB / 468.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001616/0.1478, allocations: 118.2 kB / 468.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.1479, allocations: 333.9 kB / 469.3 MB, free: 9.809 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004817/0.1484, allocations: 441.1 kB / 469.7 MB, free: 9.379 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005642/0.149, allocations: 0.52 MB / 470.2 MB, free: 8.824 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001109/0.1501, allocations: 1.006 MB / 471.2 MB, free: 7.785 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.1501, allocations: 0 / 471.2 MB, free: 7.785 MB / 350.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001407/0.1515, allocations: 1.171 MB / 472.4 MB, free: 6.605 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.1516, allocations: 11.94 kB / 472.4 MB, free: 6.594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.1516, allocations: 4.312 kB / 472.4 MB, free: 6.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.739e-05/0.1516, allocations: 8 kB / 472.4 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004296/0.152, allocations: 127.8 kB / 472.5 MB, free: 6.457 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.547e-05/0.1521, allocations: 7.984 kB / 472.5 MB, free: 6.449 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002379/0.1523, allocations: 55.38 kB / 472.6 MB, free: 6.395 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.791e-05/0.1523, allocations: 24 kB / 472.6 MB, free: 6.371 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 (82): * Single equations (assignments): 82 * 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.0004378/0.1528, allocations: 375.8 kB / 473 MB, free: 5.996 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001495/0.1529, allocations: 146.1 kB / 473.1 MB, free: 5.852 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001437/0.1544, allocations: 1.201 MB / 474.3 MB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.1544, allocations: 4 kB / 474.3 MB, free: 4.637 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.1544, allocations: 4 kB / 474.3 MB, free: 4.633 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-06/0.1544, allocations: 3.984 kB / 474.3 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002587/0.157, allocations: 2.356 MB / 476.7 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.157, allocations: 0 / 476.7 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004287/0.1575, allocations: 107.9 kB / 476.8 MB, free: 2.105 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.923e-06/0.1575, allocations: 4 kB / 476.8 MB, free: 2.102 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.63e-05/0.1575, allocations: 12 kB / 476.8 MB, free: 2.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.377e-06/0.1575, allocations: 4 kB / 476.8 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-05/0.1576, allocations: 4 kB / 476.8 MB, free: 2.082 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002048/0.1596, allocations: 1.875 MB / 478.7 MB, free: 196 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002351/0.1599, allocations: 207.2 kB / 478.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.403e-05/0.1599, allocations: 8 kB / 478.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002074/0.1602, allocations: 15.94 kB / 478.9 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.281e-05/0.1602, allocations: 44.45 kB / 479 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.13e-05/0.1603, allocations: 23.92 kB / 479 MB, free: 15.88 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001049/0.1613, allocations: 0.8928 MB / 479.9 MB, free: 14.99 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1613, allocations: 4 kB / 479.9 MB, free: 14.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000575/0.1619, allocations: 203 kB / 480.1 MB, free: 14.79 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 (67): * Single equations (assignments): 67 * 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.0001851/0.1621, allocations: 119.1 kB / 480.2 MB, free: 14.66 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001211/0.1633, allocations: 0.9924 MB / 481.2 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.1633, allocations: 0 / 481.2 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005322/0.1639, allocations: 0.5067 MB / 481.7 MB, free: 13.15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005675/0.1645, allocations: 96.33 kB / 481.8 MB, free: 13.06 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003542/0.168, allocations: 2.745 MB / 484.5 MB, free: 10.28 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000895/0.1689, allocations: 1.315 MB / 485.9 MB, free: 8.941 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002345/0.1692, allocations: 76.36 kB / 485.9 MB, free: 8.863 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000111/0.1693, allocations: 39.44 kB / 486 MB, free: 8.824 MB / 366.1 MB Notification: Performance of SimCode: time 1.483e-06/0.1693, allocations: 0 / 486 MB, free: 8.824 MB / 366.1 MB Notification: Performance of Templates: time 0.01329/0.1826, allocations: 5.203 MB / 491.2 MB, free: 3.621 MB / 366.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2 -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe 2>&1)