Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.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_5,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_5,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001515/0.001515, allocations: 182.8 kB / 15.98 MB, free: 5.766 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.469/1.469, allocations: 205.1 MB / 221.8 MB, free: 8.473 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.0009917/0.0009917, allocations: 84.81 kB / 269.2 MB, free: 8.453 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo): time 0.1912/0.1912, allocations: 28.77 MB / 345.3 MB, free: 12.19 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001195, allocations: 52.16 kB / 409.7 MB, free: 47.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1098, allocations: 53.6 MB / 463.3 MB, free: 10.31 MB / 314.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.004456/0.1143, allocations: 3.276 MB / 466.6 MB, free: 7.023 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001359/0.1157, allocations: 0.5377 MB / 467.1 MB, free: 6.484 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002777/0.116, allocations: 8 kB / 467.1 MB, free: 6.477 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002609/0.1163, allocations: 107.2 kB / 467.2 MB, free: 6.371 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002796/0.1166, allocations: 83.62 kB / 467.3 MB, free: 6.289 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005073/0.1171, allocations: 239.8 kB / 467.5 MB, free: 6.055 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006211/0.1178, allocations: 0.72 MB / 468.2 MB, free: 5.332 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005629/0.1184, allocations: 457.2 kB / 468.7 MB, free: 4.867 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002172/0.1186, allocations: 282.6 kB / 469 MB, free: 4.59 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003169/0.1189, allocations: 401.7 kB / 469.4 MB, free: 4.195 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 9.989e-05/0.119, allocations: 56 kB / 469.4 MB, free: 4.141 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001692/0.1192, allocations: 75.97 kB / 469.5 MB, free: 4.066 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003271/0.1195, allocations: 418.5 kB / 469.9 MB, free: 3.656 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003744/0.1199, allocations: 0.5541 MB / 470.5 MB, free: 3.098 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007942/0.1207, allocations: 1.031 MB / 471.5 MB, free: 2.062 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1207, allocations: 0 / 471.5 MB, free: 2.062 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1207, allocations: 0 / 471.5 MB, free: 2.062 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.21e-05/0.1207, allocations: 0 / 471.5 MB, free: 2.062 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: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.002104/0.1229, allocations: 1.721 MB / 473.2 MB, free: 284 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.1229, allocations: 11.97 kB / 473.2 MB, free: 272 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001965/0.1231, allocations: 190.5 kB / 473.4 MB, free: 80 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005226/0.1236, allocations: 0.5625 MB / 474 MB, free: 15.46 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.342e-05/0.1237, allocations: 78.38 kB / 474 MB, free: 15.39 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001047/0.1238, allocations: 96.38 kB / 474.1 MB, free: 15.3 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001616/0.1254, allocations: 1.075 MB / 475.2 MB, free: 14.2 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.523e-05/0.1255, allocations: 192 / 475.2 MB, free: 14.2 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.754e-05/0.1256, allocations: 47.88 kB / 475.3 MB, free: 14.16 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.979e-05/0.1256, allocations: 58.05 kB / 475.3 MB, free: 14.1 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001696/0.1273, allocations: 1.215 MB / 476.5 MB, free: 12.88 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004152/0.1315, allocations: 2.878 MB / 479.4 MB, free: 9.926 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001318/0.1328, allocations: 0.9982 MB / 480.4 MB, free: 8.914 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006504/0.1335, allocations: 0.4984 MB / 480.9 MB, free: 8.41 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.188e-05/0.1336, allocations: 36.67 kB / 480.9 MB, free: 8.375 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.904e-05/0.1336, allocations: 39.12 kB / 481 MB, free: 8.328 MB / 330.7 MB Notification: Performance of pre-optimization done (n=66): time 2.705e-06/0.1336, allocations: 0 / 481 MB, free: 8.328 MB / 330.7 MB Notification: Performance of matching and sorting (n=66): time 0.002121/0.1358, allocations: 1.59 MB / 482.6 MB, free: 6.734 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.274e-05/0.1358, allocations: 59.97 kB / 482.6 MB, free: 6.664 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001247/0.1371, allocations: 1.258 MB / 483.9 MB, free: 5.395 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.335e-05/0.1371, allocations: 37.7 kB / 483.9 MB, free: 5.352 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000554/0.1377, allocations: 0.7704 MB / 484.7 MB, free: 4.57 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001601/0.1379, allocations: 236.6 kB / 484.9 MB, free: 4.336 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001611/0.138, allocations: 130.6 kB / 485.1 MB, free: 4.203 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.1382, allocations: 334 kB / 485.4 MB, free: 3.871 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000615/0.1388, allocations: 477.7 kB / 485.8 MB, free: 3.402 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000747/0.1395, allocations: 0.652 MB / 486.5 MB, free: 2.676 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004084/0.1436, allocations: 2.126 MB / 488.6 MB, free: 480 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.118e-05/0.1437, allocations: 4 kB / 488.6 MB, free: 476 kB / 330.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.1921/0.3358, allocations: 1.33 MB / 490 MB, free: 31.97 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.74e-05/0.3358, allocations: 12.36 kB / 490 MB, free: 31.97 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.3358, allocations: 5.906 kB / 490 MB, free: 31.97 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.389e-05/0.3359, allocations: 16.19 kB / 490 MB, free: 31.97 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005672/0.3364, allocations: 180.1 kB / 490.2 MB, free: 31.96 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.977e-05/0.3365, allocations: 14.92 kB / 490.2 MB, free: 31.96 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003501/0.3368, allocations: 78.38 kB / 490.3 MB, free: 31.96 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.359e-05/0.3369, allocations: 34.53 kB / 490.3 MB, free: 31.96 MB / 330.7 MB Warning: Assuming fixed start value for the following 6 variables: years:VARIABLE(start = 1900.0 fixed = true ) "Time in calendar years" type: Real Population.level:VARIABLE(start = Population.x0 fixed = true ) "Reversible state variable" type: Real Natural_Resources.level:VARIABLE(start = Natural_Resources.x0 fixed = true ) "Reversible state variable" type: Real Capital_Investment.level:VARIABLE(start = Capital_Investment.x0 fixed = true ) "Reversible state variable" type: Real Pollution.level:VARIABLE(start = Pollution.x0 fixed = true ) "Reversible state variable" type: Real CIAF.level:VARIABLE(start = CIAF.x0 fixed = true ) "Reversible state variable" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 96 * 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.0007108/0.3376, allocations: 394.1 kB / 490.7 MB, free: 31.8 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001717/0.3378, allocations: 138 kB / 490.8 MB, free: 31.8 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001906/0.3397, allocations: 1.249 MB / 492.1 MB, free: 31.48 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.048e-05/0.3397, allocations: 10.81 kB / 492.1 MB, free: 31.48 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.3397, allocations: 0 / 492.1 MB, free: 31.48 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.336e-06/0.3398, allocations: 3.281 kB / 492.1 MB, free: 31.48 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003077/0.3428, allocations: 2.368 MB / 494.4 MB, free: 30.66 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.3429, allocations: 1.875 kB / 494.4 MB, free: 30.66 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005262/0.3434, allocations: 127.2 kB / 494.6 MB, free: 30.65 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.793e-06/0.3434, allocations: 1.469 kB / 494.6 MB, free: 30.65 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.615e-05/0.3435, allocations: 20.41 kB / 494.6 MB, free: 30.64 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.28e-06/0.3435, allocations: 1.688 kB / 494.6 MB, free: 30.64 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.3435, allocations: 5.719 kB / 494.6 MB, free: 30.64 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02025/0.3637, allocations: 12.13 MB / 0.4948 GB, free: 26.54 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002389/0.364, allocations: 204.4 kB / 0.495 GB, free: 26.35 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.51e-05/0.3641, allocations: 12.66 kB / 0.4951 GB, free: 26.34 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002731/0.3644, allocations: 25.23 kB / 0.4951 GB, free: 26.33 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001536/0.3645, allocations: 44.5 kB / 0.4951 GB, free: 26.33 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.084e-05/0.3646, allocations: 27.66 kB / 0.4951 GB, free: 26.32 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001219/0.3658, allocations: 0.8651 MB / 0.496 GB, free: 26.02 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.3658, allocations: 0 / 0.496 GB, free: 26.02 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001026/0.3669, allocations: 301.6 kB / 0.4963 GB, free: 25.94 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (years,Population.level,Natural_Resources.level,Capital_Investment.level,Pollution.level,CIAF.level) * 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.0002052/0.3671, allocations: 128.6 kB / 0.4964 GB, free: 25.83 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001361/0.3684, allocations: 1.094 MB / 0.4975 GB, free: 25.6 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3685, allocations: 0 / 0.4975 GB, free: 25.6 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005332/0.369, allocations: 0.5459 MB / 0.498 GB, free: 25.29 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004351/0.3694, allocations: 68.16 kB / 0.4981 GB, free: 25.22 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003395/0.3728, allocations: 3.765 MB / 0.5017 GB, free: 21.5 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006015/0.3735, allocations: 1.311 MB / 0.503 GB, free: 20.16 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005719/0.374, allocations: 186.5 kB / 0.5032 GB, free: 19.97 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003105/0.3744, allocations: 99.41 kB / 0.5033 GB, free: 19.88 MB / 330.7 MB Notification: Performance of SimCode: time 5.51e-07/0.3744, allocations: 3.938 kB / 0.5033 GB, free: 19.87 MB / 330.7 MB Notification: Performance of Templates: time 0.01362/0.388, allocations: 8.966 MB / 0.5121 GB, free: 10.91 MB / 330.7 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe 2>&1)