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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001092/0.001092, allocations: 109.2 kB / 15.99 MB, free: 6.359 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.001128/0.001128, allocations: 194.5 kB / 16.91 MB, free: 6.195 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.355/1.355, allocations: 222.9 MB / 240.6 MB, free: 13.74 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1742/0.1742, allocations: 28.78 MB / 319.5 MB, free: 1.957 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 63.81 kB / 386.7 MB, free: 40.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1105, allocations: 56.44 MB / 443.1 MB, free: 4.137 MB / 318.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.004602/0.1152, allocations: 3.247 MB / 446.4 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001976/0.1172, allocations: 0.5299 MB / 446.9 MB, free: 348 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005711/0.1178, allocations: 12 kB / 446.9 MB, free: 336 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003479/0.1182, allocations: 107.2 kB / 447 MB, free: 228 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000339/0.1185, allocations: 87.5 kB / 447.1 MB, free: 140 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007188/0.1193, allocations: 247.8 kB / 447.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006583/0.1199, allocations: 0.728 MB / 448.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006152/0.1206, allocations: 481.2 kB / 448.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002604/0.1208, allocations: 310.5 kB / 448.9 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003554/0.1212, allocations: 409.8 kB / 449.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001063/0.1213, allocations: 76 kB / 449.3 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001748/0.1215, allocations: 103.9 kB / 449.4 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003666/0.1219, allocations: 438.5 kB / 449.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005016/0.1224, allocations: 0.5775 MB / 450.5 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000772/0.1232, allocations: 0.7491 MB / 451.2 MB, free: 12.03 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.1232, allocations: 3.938 kB / 451.2 MB, free: 12.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1232, allocations: 0 / 451.2 MB, free: 12.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.489e-05/0.1232, allocations: 0 / 451.2 MB, free: 12.02 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: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.002049/0.1253, allocations: 1.713 MB / 452.9 MB, free: 10.25 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.535e-05/0.1253, allocations: 12.03 kB / 452.9 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002106/0.1255, allocations: 190.5 kB / 453.1 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006111/0.1262, allocations: 0.5625 MB / 453.7 MB, free: 9.434 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.338e-05/0.1262, allocations: 78.31 kB / 453.8 MB, free: 9.359 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001028/0.1263, allocations: 96.38 kB / 453.9 MB, free: 9.266 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00164/0.128, allocations: 1.075 MB / 454.9 MB, free: 8.172 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.463e-05/0.128, allocations: 192 / 454.9 MB, free: 8.172 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.424e-05/0.1281, allocations: 43.94 kB / 455 MB, free: 8.129 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000137/0.1282, allocations: 62.12 kB / 455 MB, free: 8.066 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001646/0.1299, allocations: 1.211 MB / 456.2 MB, free: 6.848 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004012/0.1339, allocations: 2.882 MB / 459.1 MB, free: 3.891 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001406/0.1353, allocations: 0.9827 MB / 460.1 MB, free: 2.898 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006779/0.136, allocations: 0.4983 MB / 460.6 MB, free: 2.395 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.946e-05/0.1361, allocations: 40.53 kB / 460.6 MB, free: 2.355 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.983e-05/0.1362, allocations: 43.06 kB / 460.7 MB, free: 2.305 MB / 334.1 MB Notification: Performance of pre-optimization done (n=66): time 2.264e-06/0.1362, allocations: 0 / 460.7 MB, free: 2.305 MB / 334.1 MB Notification: Performance of matching and sorting (n=66): time 0.002233/0.1384, allocations: 1.59 MB / 462.3 MB, free: 0.707 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.81e-05/0.1385, allocations: 55.97 kB / 462.3 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001245/0.1397, allocations: 1.258 MB / 463.6 MB, free: 15.37 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.746e-05/0.1398, allocations: 37.7 kB / 463.6 MB, free: 15.33 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005426/0.1403, allocations: 0.7821 MB / 464.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001704/0.1405, allocations: 232.6 kB / 464.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001578/0.1407, allocations: 130.6 kB / 464.8 MB, free: 14.17 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001862/0.1409, allocations: 333.9 kB / 465.1 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006812/0.1415, allocations: 473.7 kB / 465.5 MB, free: 13.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008043/0.1424, allocations: 0.6559 MB / 466.2 MB, free: 12.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003836/0.1462, allocations: 2.138 MB / 468.3 MB, free: 10.42 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.207e-06/0.1462, allocations: 0 / 468.3 MB, free: 10.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001713/0.1479, allocations: 1.331 MB / 469.7 MB, free: 9.082 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.519e-05/0.148, allocations: 16.09 kB / 469.7 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.192e-05/0.148, allocations: 4 kB / 469.7 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.429e-05/0.148, allocations: 12 kB / 469.7 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005296/0.1486, allocations: 175.7 kB / 469.9 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.516e-05/0.1486, allocations: 11.94 kB / 469.9 MB, free: 8.867 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003334/0.1489, allocations: 83.2 kB / 470 MB, free: 8.785 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.319e-05/0.149, allocations: 39.98 kB / 470 MB, free: 8.746 MB / 350.1 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.0006405/0.1496, allocations: 403.2 kB / 470.4 MB, free: 8.344 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001358/0.1498, allocations: 138.2 kB / 470.5 MB, free: 8.207 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001677/0.1515, allocations: 1.255 MB / 471.8 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.775e-06/0.1515, allocations: 8 kB / 471.8 MB, free: 6.934 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.1515, allocations: 0 / 471.8 MB, free: 6.934 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.177e-06/0.1515, allocations: 3.984 kB / 471.8 MB, free: 6.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002696/0.1542, allocations: 2.37 MB / 474.2 MB, free: 4.496 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.1542, allocations: 0 / 474.2 MB, free: 4.496 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004905/0.1547, allocations: 123.8 kB / 474.3 MB, free: 4.375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.855e-06/0.1547, allocations: 4 kB / 474.3 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.769e-05/0.1548, allocations: 15.98 kB / 474.3 MB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-06/0.1548, allocations: 8 kB / 474.3 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.1548, allocations: 0 / 474.3 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002305/0.1571, allocations: 1.945 MB / 476.3 MB, free: 2.383 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002008/0.1573, allocations: 195.2 kB / 476.5 MB, free: 2.172 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.616e-05/0.1574, allocations: 12.06 kB / 476.5 MB, free: 2.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002507/0.1577, allocations: 23.98 kB / 476.5 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.895e-05/0.1578, allocations: 44.5 kB / 476.5 MB, free: 2.094 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.15e-05/0.1578, allocations: 23.98 kB / 476.6 MB, free: 2.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001023/0.1588, allocations: 0.8716 MB / 477.4 MB, free: 1.199 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1589, allocations: 3.938 kB / 477.4 MB, free: 1.195 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006238/0.1595, allocations: 215 kB / 477.6 MB, free: 0.9844 MB / 350.1 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.0001808/0.1597, allocations: 111.2 kB / 477.8 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001703/0.1614, allocations: 1.121 MB / 478.9 MB, free: 15.74 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.1614, allocations: 0 / 478.9 MB, free: 15.74 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006554/0.1621, allocations: 0.5466 MB / 479.4 MB, free: 15.19 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004677/0.1625, allocations: 67.75 kB / 479.5 MB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004134/0.1667, allocations: 3.414 MB / 482.9 MB, free: 11.67 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000857/0.1676, allocations: 1.303 MB / 484.2 MB, free: 10.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002086/0.1678, allocations: 67.42 kB / 484.3 MB, free: 10.27 MB / 366.1 MB Notification: Performance of SimCode: time 1.232e-06/0.1678, allocations: 0 / 484.3 MB, free: 10.27 MB / 366.1 MB Notification: Performance of Templates: time 0.01732/0.1851, allocations: 10.77 MB / 495 MB, free: 15.48 MB / 382.1 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)