Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.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_1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001219/0.001219, allocations: 181 kB / 15.98 MB, free: 5.789 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.636/1.636, 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.001128/0.001128, allocations: 97.55 kB / 269.2 MB, free: 8.445 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo): time 0.2017/0.2017, allocations: 28.76 MB / 345.3 MB, free: 12.2 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 55.91 kB / 409.7 MB, free: 47.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.1292, allocations: 53.6 MB / 463.3 MB, free: 10.31 MB / 314.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.005528/0.1348, allocations: 3.645 MB / 466.9 MB, free: 6.648 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002215/0.1371, allocations: 0.6545 MB / 467.6 MB, free: 5.992 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000917/0.138, allocations: 19.94 kB / 467.6 MB, free: 5.973 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006612/0.1387, allocations: 119 kB / 467.7 MB, free: 5.855 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001168/0.14, allocations: 79.5 kB / 467.8 MB, free: 5.777 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001242/0.1412, allocations: 303.8 kB / 468.1 MB, free: 5.48 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001712/0.143, allocations: 0.821 MB / 468.9 MB, free: 4.656 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001074/0.1441, allocations: 0.6094 MB / 469.5 MB, free: 4.016 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003657/0.1444, allocations: 302.4 kB / 469.8 MB, free: 3.719 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005836/0.145, allocations: 417.5 kB / 470.2 MB, free: 3.309 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002567/0.1453, allocations: 56 kB / 470.3 MB, free: 3.254 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003321/0.1457, allocations: 79.97 kB / 470.4 MB, free: 3.176 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005134/0.1462, allocations: 406.5 kB / 470.8 MB, free: 2.777 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005903/0.1468, allocations: 0.5774 MB / 471.3 MB, free: 2.195 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001105/0.1479, allocations: 1.101 MB / 472.4 MB, free: 1.09 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1479, allocations: 0 / 472.4 MB, free: 1.09 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.1479, allocations: 0 / 472.4 MB, free: 1.09 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.66e-05/0.148, allocations: 0 / 472.4 MB, free: 1.09 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: 259 * Number of variables: 259 Notification: Performance of Generate backend data structure: time 0.002176/0.1501, allocations: 1.733 MB / 474.2 MB, free: 15.29 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.1502, allocations: 12.03 kB / 474.2 MB, free: 15.28 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001968/0.1504, allocations: 186.6 kB / 474.4 MB, free: 15.1 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008034/0.1512, allocations: 0.7269 MB / 475.1 MB, free: 14.32 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.003e-05/0.1513, allocations: 82.42 kB / 475.2 MB, free: 14.24 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001213/0.1514, allocations: 100.3 kB / 475.3 MB, free: 14.14 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001478/0.1529, allocations: 1.138 MB / 476.4 MB, free: 12.94 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.334e-05/0.1529, allocations: 12.05 kB / 476.4 MB, free: 12.93 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.119e-05/0.153, allocations: 43.94 kB / 476.5 MB, free: 12.88 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.053e-05/0.153, allocations: 32 kB / 476.5 MB, free: 12.85 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001276/0.1543, allocations: 1.046 MB / 477.5 MB, free: 11.8 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004033/0.1584, allocations: 3.61 MB / 481.2 MB, free: 8.086 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001327/0.1597, allocations: 1.271 MB / 482.4 MB, free: 6.805 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004657/0.1602, allocations: 458.3 kB / 482.9 MB, free: 6.352 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.712e-05/0.1603, allocations: 28.77 kB / 482.9 MB, free: 6.324 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.848e-05/0.1603, allocations: 39.12 kB / 482.9 MB, free: 6.277 MB / 330.7 MB Notification: Performance of pre-optimization done (n=66): time 3.376e-06/0.1603, allocations: 3.938 kB / 482.9 MB, free: 6.273 MB / 330.7 MB Notification: Performance of matching and sorting (n=66): time 0.001596/0.1619, allocations: 1.45 MB / 484.4 MB, free: 4.82 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5e-05/0.162, allocations: 63.97 kB / 484.5 MB, free: 4.746 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001274/0.1633, allocations: 1.23 MB / 485.7 MB, free: 3.504 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.858e-05/0.1633, allocations: 33.7 kB / 485.7 MB, free: 3.465 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000589/0.1639, allocations: 0.7478 MB / 486.5 MB, free: 2.707 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000169/0.1641, allocations: 228.6 kB / 486.7 MB, free: 2.48 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001538/0.1642, allocations: 114.3 kB / 486.8 MB, free: 2.359 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.1644, allocations: 333.9 kB / 487.1 MB, free: 2.027 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004359/0.1648, allocations: 417.1 kB / 487.5 MB, free: 1.621 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005115/0.1653, allocations: 0.5004 MB / 488 MB, free: 1.086 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000999/0.1663, allocations: 0.951 MB / 489 MB, free: 104 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.1664, allocations: 0 / 489 MB, free: 104 kB / 330.7 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.2009/0.3673, allocations: 1.138 MB / 490.1 MB, free: 32.24 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.377e-05/0.3674, allocations: 5.625 kB / 490.1 MB, free: 32.24 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.3674, allocations: 4.094 kB / 490.1 MB, free: 32.24 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.94e-05/0.3675, allocations: 5.5 kB / 490.1 MB, free: 32.24 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005502/0.368, allocations: 127.9 kB / 490.3 MB, free: 32.23 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.919e-05/0.368, allocations: 9.688 kB / 490.3 MB, free: 32.23 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002751/0.3683, allocations: 55.47 kB / 490.3 MB, free: 32.22 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.647e-05/0.3684, allocations: 25.64 kB / 490.4 MB, free: 32.22 MB / 330.7 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 (81): * Single equations (assignments): 81 * 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.0006828/0.3691, allocations: 357.6 kB / 490.7 MB, free: 32.02 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001845/0.3693, allocations: 131.9 kB / 490.8 MB, free: 32.02 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00177/0.371, allocations: 1.151 MB / 492 MB, free: 31.69 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.356e-05/0.3711, allocations: 7.922 kB / 492 MB, free: 31.69 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.3711, allocations: 0 / 492 MB, free: 31.69 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.21e-05/0.3711, allocations: 4.375 kB / 492 MB, free: 31.69 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002778/0.3739, allocations: 2.271 MB / 494.3 MB, free: 30.87 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.3739, allocations: 0 / 494.3 MB, free: 30.87 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004535/0.3744, allocations: 109.9 kB / 494.4 MB, free: 30.86 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.882e-06/0.3744, allocations: 2.438 kB / 494.4 MB, free: 30.86 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.812e-05/0.3744, allocations: 14.19 kB / 494.4 MB, free: 30.85 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.859e-06/0.3744, allocations: 3.812 kB / 494.4 MB, free: 30.85 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.287e-06/0.3744, allocations: 3.938 kB / 494.4 MB, free: 30.85 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01629/0.3907, allocations: 10.87 MB / 0.4934 GB, free: 27.04 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002439/0.391, allocations: 202.8 kB / 0.4936 GB, free: 26.86 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.107e-05/0.3911, allocations: 17.17 kB / 0.4936 GB, free: 26.85 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002126/0.3913, allocations: 9.875 kB / 0.4936 GB, free: 26.84 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.297e-05/0.3914, allocations: 40.88 kB / 0.4937 GB, free: 26.83 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.742e-05/0.3915, allocations: 18.45 kB / 0.4937 GB, free: 26.82 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001249/0.3927, allocations: 0.8528 MB / 0.4945 GB, free: 26.52 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.3927, allocations: 0 / 0.4945 GB, free: 26.52 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007888/0.3935, allocations: 291.7 kB / 0.4948 GB, free: 26.44 MB / 330.7 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 (66): * Single equations (assignments): 66 * 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.0002071/0.3937, allocations: 136.7 kB / 0.4949 GB, free: 26.33 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001236/0.395, allocations: 0.9361 MB / 0.4959 GB, free: 26.13 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.395, allocations: 0 / 0.4959 GB, free: 26.13 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006066/0.3956, allocations: 0.4887 MB / 0.4963 GB, free: 26.02 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006576/0.3963, allocations: 84.45 kB / 0.4964 GB, free: 25.96 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003676/0.4, allocations: 3.681 MB / 0.5 GB, free: 23.18 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005586/0.4006, allocations: 1.307 MB / 0.5013 GB, free: 22.04 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0004145/0.401, allocations: 130.4 kB / 0.5014 GB, free: 21.91 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000264/0.4013, allocations: 87.42 kB / 0.5015 GB, free: 21.83 MB / 330.7 MB Notification: Performance of SimCode: time 7.61e-07/0.4013, allocations: 0 / 0.5015 GB, free: 21.83 MB / 330.7 MB Notification: Performance of Templates: time 0.01408/0.4153, allocations: 8.985 MB / 0.5103 GB, free: 12.85 MB / 330.7 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe 2>&1)