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/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_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/Complex 3.2.3+maint.om/package.mo): time 0.00253/0.00253, allocations: 182.9 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.601/1.601, 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.001036/0.001036, allocations: 106 kB / 269.2 MB, free: 8.426 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo): time 0.1871/0.1871, allocations: 28.77 MB / 345.3 MB, free: 12.19 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009916/0.0009916, allocations: 47.92 kB / 409.7 MB, free: 47.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1076, allocations: 53.6 MB / 463.3 MB, free: 10.3 MB / 314.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.005255/0.113, allocations: 3.664 MB / 467 MB, free: 6.621 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001535/0.1145, allocations: 0.6662 MB / 467.6 MB, free: 5.953 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003266/0.1149, allocations: 15.94 kB / 467.6 MB, free: 5.938 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003692/0.1152, allocations: 131.1 kB / 467.8 MB, free: 5.809 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002743/0.1155, allocations: 99.42 kB / 467.9 MB, free: 5.711 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006041/0.1162, allocations: 299.7 kB / 468.1 MB, free: 5.418 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007717/0.1169, allocations: 0.8289 MB / 469 MB, free: 4.586 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007733/0.1177, allocations: 0.6133 MB / 469.6 MB, free: 3.941 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002337/0.118, allocations: 306.5 kB / 469.9 MB, free: 3.641 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003473/0.1183, allocations: 425.4 kB / 470.3 MB, free: 3.223 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001063/0.1184, allocations: 56 kB / 470.4 MB, free: 3.168 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000177/0.1186, allocations: 83.91 kB / 470.4 MB, free: 3.086 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003552/0.119, allocations: 410.5 kB / 470.8 MB, free: 2.684 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004291/0.1194, allocations: 0.5851 MB / 471.4 MB, free: 2.094 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009395/0.1204, allocations: 1.128 MB / 472.6 MB, free: 0.9609 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.1204, allocations: 0 / 472.6 MB, free: 0.9609 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1204, allocations: 0 / 472.6 MB, free: 0.9609 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.275e-05/0.1204, allocations: 4 kB / 472.6 MB, free: 0.957 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: 263 * Number of variables: 263 Notification: Performance of Generate backend data structure: time 0.002142/0.1226, allocations: 1.791 MB / 474.4 MB, free: 15.1 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/0.1226, allocations: 12.03 kB / 474.4 MB, free: 15.09 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002028/0.1228, allocations: 194.5 kB / 474.6 MB, free: 14.9 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008072/0.1236, allocations: 0.7432 MB / 475.3 MB, free: 14.11 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.344e-05/0.1237, allocations: 78.45 kB / 475.4 MB, free: 14.03 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001195/0.1238, allocations: 104.4 kB / 475.5 MB, free: 13.93 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001452/0.1253, allocations: 1.166 MB / 476.6 MB, free: 12.7 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.001e-05/0.1253, allocations: 192 / 476.6 MB, free: 12.7 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.199e-05/0.1254, allocations: 47.94 kB / 476.7 MB, free: 12.65 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.615e-05/0.1254, allocations: 24 kB / 476.7 MB, free: 12.62 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001818/0.1273, allocations: 1.105 MB / 477.8 MB, free: 11.52 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004034/0.1313, allocations: 3.685 MB / 481.5 MB, free: 7.727 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001485/0.1328, allocations: 1.338 MB / 482.8 MB, free: 6.375 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005124/0.1333, allocations: 490.3 kB / 483.3 MB, free: 5.891 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.142e-05/0.1334, allocations: 28.53 kB / 483.3 MB, free: 5.863 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.369e-05/0.1334, allocations: 35.12 kB / 483.4 MB, free: 5.82 MB / 330.7 MB Notification: Performance of pre-optimization done (n=68): time 2.895e-06/0.1335, allocations: 0 / 483.4 MB, free: 5.82 MB / 330.7 MB Notification: Performance of matching and sorting (n=68): time 0.001763/0.1352, allocations: 1.532 MB / 484.9 MB, free: 4.285 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.92e-05/0.1353, allocations: 63.91 kB / 485 MB, free: 4.211 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00125/0.1365, allocations: 1.28 MB / 486.3 MB, free: 2.922 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.656e-05/0.1366, allocations: 41.7 kB / 486.3 MB, free: 2.875 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005031/0.1371, allocations: 0.7677 MB / 487.1 MB, free: 2.098 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001579/0.1373, allocations: 236.5 kB / 487.3 MB, free: 1.863 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001529/0.1374, allocations: 114.7 kB / 487.4 MB, free: 1.746 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.1375, allocations: 337.9 kB / 487.7 MB, free: 1.41 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004924/0.138, allocations: 437.8 kB / 488.2 MB, free: 0.9805 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005394/0.1386, allocations: 0.5311 MB / 488.7 MB, free: 424 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2046/0.3432, allocations: 1.003 MB / 489.7 MB, free: 32 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.3433, allocations: 4.906 kB / 489.7 MB, free: 32 MB / 330.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001652/0.3449, allocations: 1.188 MB / 490.9 MB, free: 31.8 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.329e-05/0.345, allocations: 6.375 kB / 490.9 MB, free: 31.8 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.345, allocations: 3.016 kB / 490.9 MB, free: 31.8 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.292e-05/0.345, allocations: 5.469 kB / 490.9 MB, free: 31.8 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000467/0.3455, allocations: 130.9 kB / 491 MB, free: 31.79 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.585e-05/0.3455, allocations: 11.94 kB / 491 MB, free: 31.79 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002704/0.3458, allocations: 53.66 kB / 491.1 MB, free: 31.78 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.836e-05/0.3458, allocations: 23.58 kB / 491.1 MB, free: 31.77 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 (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.0005509/0.3464, allocations: 372.9 kB / 491.5 MB, free: 31.57 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001911/0.3466, allocations: 145.1 kB / 491.6 MB, free: 31.57 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001724/0.3483, allocations: 1.203 MB / 492.8 MB, free: 31.23 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.787e-06/0.3483, allocations: 10.66 kB / 492.8 MB, free: 31.23 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.3484, allocations: 0 / 492.8 MB, free: 31.23 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.788e-06/0.3484, allocations: 3.562 kB / 492.8 MB, free: 31.23 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002833/0.3512, allocations: 2.365 MB / 495.2 MB, free: 30.4 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.3512, allocations: 0 / 495.2 MB, free: 30.4 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004504/0.3517, allocations: 116.5 kB / 495.3 MB, free: 30.39 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.113e-06/0.3517, allocations: 2.75 kB / 495.3 MB, free: 30.39 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.447e-05/0.3517, allocations: 15.7 kB / 495.3 MB, free: 30.38 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.312e-06/0.3518, allocations: 5.312 kB / 495.3 MB, free: 30.38 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.3518, allocations: 1.375 kB / 495.3 MB, free: 30.38 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0185/0.3703, allocations: 12 MB / 0.4955 GB, free: 26.2 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002165/0.3705, allocations: 208.1 kB / 0.4957 GB, free: 26.02 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.091e-05/0.3706, allocations: 19.17 kB / 0.4957 GB, free: 26.01 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002276/0.3708, allocations: 11.03 kB / 0.4957 GB, free: 26 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001059/0.371, allocations: 39.08 kB / 0.4957 GB, free: 26 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.451e-05/0.371, allocations: 24.09 kB / 0.4957 GB, free: 26 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001044/0.372, allocations: 0.8932 MB / 0.4966 GB, free: 25.68 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3721, allocations: 0 / 0.4966 GB, free: 25.68 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000889/0.3729, allocations: 290.8 kB / 0.4969 GB, free: 25.61 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 (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.0002412/0.3732, allocations: 135.4 kB / 0.497 GB, free: 25.49 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001277/0.3745, allocations: 0.9914 MB / 0.498 GB, free: 25.12 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.3745, allocations: 0 / 0.498 GB, free: 25.12 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004505/0.375, allocations: 0.5118 MB / 0.4985 GB, free: 24.66 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006299/0.3756, allocations: 96.06 kB / 0.4986 GB, free: 24.58 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004578/0.3802, allocations: 3.802 MB / 0.5023 GB, free: 20.95 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007595/0.381, allocations: 1.323 MB / 0.5036 GB, free: 19.59 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000537/0.3815, allocations: 142.5 kB / 0.5037 GB, free: 19.45 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002968/0.3818, allocations: 91.42 kB / 0.5038 GB, free: 19.36 MB / 330.7 MB Notification: Performance of SimCode: time 1.332e-06/0.3819, allocations: 0 / 0.5038 GB, free: 19.36 MB / 330.7 MB Notification: Performance of Templates: time 0.01452/0.3964, allocations: 9.134 MB / 0.5127 GB, free: 10.22 MB / 330.7 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)