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.001562/0.001562, allocations: 114.9 kB / 16.37 MB, free: 5.539 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.001423/0.001423, allocations: 189.4 kB / 17.3 MB, free: 5.18 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.36/1.36, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1703/0.1703, allocations: 28.78 MB / 319.9 MB, free: 1.906 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 60.72 kB / 388 MB, free: 40.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08689/0.08814, allocations: 56.43 MB / 444.4 MB, free: 3.059 MB / 318.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.004666/0.09284, allocations: 3.659 MB / 448.1 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001268/0.09412, allocations: 0.6779 MB / 448.8 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002856/0.09442, allocations: 16 kB / 448.8 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003647/0.09479, allocations: 170.3 kB / 449 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000283/0.0951, allocations: 138.8 kB / 449.1 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006561/0.09577, allocations: 363.5 kB / 449.5 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007311/0.09651, allocations: 0.8444 MB / 450.3 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007775/0.0973, allocations: 0.6325 MB / 450.9 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002615/0.09757, allocations: 334.4 kB / 451.3 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003201/0.0979, allocations: 417.6 kB / 451.7 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001124/0.09802, allocations: 84 kB / 451.8 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001713/0.09819, allocations: 116 kB / 451.9 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000332/0.09853, allocations: 430.5 kB / 452.3 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004123/0.09895, allocations: 0.6164 MB / 452.9 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001052/0.1, allocations: 1.248 MB / 454.1 MB, free: 9.285 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.1, allocations: 0 / 454.1 MB, free: 9.285 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1, allocations: 0 / 454.1 MB, free: 9.285 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.291e-05/0.1001, allocations: 0 / 454.1 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.002017/0.1021, allocations: 1.78 MB / 455.9 MB, free: 7.441 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.084e-05/0.1021, allocations: 12.03 kB / 455.9 MB, free: 7.43 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001866/0.1023, allocations: 194.5 kB / 456.1 MB, free: 7.238 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008831/0.1032, allocations: 0.755 MB / 456.9 MB, free: 6.434 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.794e-05/0.1033, allocations: 78.44 kB / 457 MB, free: 6.355 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000121/0.1034, allocations: 108.3 kB / 457.1 MB, free: 6.25 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001458/0.1049, allocations: 1.154 MB / 458.2 MB, free: 5.031 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.846e-05/0.1049, allocations: 192 / 458.2 MB, free: 5.031 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.073e-05/0.105, allocations: 51.92 kB / 458.3 MB, free: 4.98 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.932e-05/0.105, allocations: 28 kB / 458.3 MB, free: 4.953 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001338/0.1063, allocations: 1.093 MB / 459.4 MB, free: 3.859 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004105/0.1104, allocations: 3.646 MB / 463 MB, free: 108 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001508/0.112, allocations: 1.334 MB / 464.4 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005571/0.1125, allocations: 482.3 kB / 464.8 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.405e-05/0.1126, allocations: 28.69 kB / 464.9 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.298e-05/0.1127, allocations: 35.12 kB / 464.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 3.597e-06/0.1127, allocations: 3.984 kB / 464.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=67): time 0.001679/0.1144, allocations: 1.524 MB / 466.4 MB, free: 12.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.644e-05/0.1144, allocations: 63.97 kB / 466.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001302/0.1157, allocations: 1.285 MB / 467.8 MB, free: 11.31 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.897e-05/0.1158, allocations: 41.7 kB / 467.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005699/0.1163, allocations: 0.7677 MB / 468.6 MB, free: 10.49 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001725/0.1165, allocations: 224.7 kB / 468.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001732/0.1167, allocations: 114.2 kB / 468.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001449/0.1168, allocations: 337.9 kB / 469.3 MB, free: 9.809 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005257/0.1174, allocations: 437.1 kB / 469.7 MB, free: 9.383 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000574/0.118, allocations: 0.5239 MB / 470.2 MB, free: 8.824 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001118/0.1191, allocations: 0.9978 MB / 471.2 MB, free: 7.793 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.1191, allocations: 4 kB / 471.2 MB, free: 7.789 MB / 350.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001413/0.1205, allocations: 1.183 MB / 472.4 MB, free: 6.598 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/0.1206, allocations: 4 kB / 472.4 MB, free: 6.594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.1206, allocations: 4.312 kB / 472.4 MB, free: 6.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.834e-05/0.1206, allocations: 11.98 kB / 472.4 MB, free: 6.578 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004581/0.1211, allocations: 131.8 kB / 472.5 MB, free: 6.449 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.14e-05/0.1211, allocations: 4 kB / 472.5 MB, free: 6.445 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002522/0.1214, allocations: 51.38 kB / 472.6 MB, free: 6.395 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.269e-05/0.1214, allocations: 35.92 kB / 472.6 MB, free: 6.359 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.0005209/0.1219, allocations: 371.9 kB / 473 MB, free: 5.988 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001463/0.1221, allocations: 142.1 kB / 473.1 MB, free: 5.848 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001511/0.1236, allocations: 1.197 MB / 474.3 MB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/0.1236, allocations: 12 kB / 474.3 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.1236, allocations: 0 / 474.3 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.1236, allocations: 3.984 kB / 474.3 MB, free: 4.625 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002598/0.1262, allocations: 2.356 MB / 476.7 MB, free: 2.207 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.1263, allocations: 0 / 476.7 MB, free: 2.207 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004436/0.1267, allocations: 111.9 kB / 476.8 MB, free: 2.098 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.553e-06/0.1267, allocations: 4 kB / 476.8 MB, free: 2.094 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.391e-05/0.1268, allocations: 12 kB / 476.8 MB, free: 2.082 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.573e-06/0.1268, allocations: 4 kB / 476.8 MB, free: 2.078 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.1268, allocations: 4 kB / 476.8 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002002/0.1288, allocations: 1.867 MB / 478.7 MB, free: 196 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002393/0.129, allocations: 211.1 kB / 478.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.733e-05/0.1291, allocations: 12 kB / 478.9 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002135/0.1294, allocations: 8 kB / 478.9 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.791e-05/0.1294, allocations: 44.39 kB / 479 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.205e-05/0.1295, allocations: 20 kB / 479 MB, free: 15.88 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001042/0.1305, allocations: 0.9006 MB / 479.9 MB, free: 14.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1305, allocations: 0 / 479.9 MB, free: 14.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005335/0.1311, allocations: 207 kB / 480.1 MB, free: 14.78 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.0001669/0.1312, allocations: 115.1 kB / 480.2 MB, free: 14.66 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001129/0.1324, allocations: 0.9926 MB / 481.2 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1324, allocations: 4 kB / 481.2 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005312/0.1329, allocations: 0.5068 MB / 481.7 MB, free: 13.14 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005261/0.1335, allocations: 94.14 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.003341/0.1368, allocations: 2.753 MB / 484.5 MB, free: 10.27 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008821/0.1377, allocations: 1.307 MB / 485.9 MB, free: 8.941 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002202/0.1379, allocations: 68.36 kB / 485.9 MB, free: 8.871 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001116/0.1381, allocations: 47.42 kB / 486 MB, free: 8.824 MB / 366.1 MB Notification: Performance of SimCode: time 9.22e-07/0.1381, allocations: 3.938 kB / 486 MB, free: 8.82 MB / 366.1 MB Notification: Performance of Templates: time 0.01128/0.1494, allocations: 5.196 MB / 491.2 MB, free: 3.625 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 gbode -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe 2>&1)