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.001196/0.001196, allocations: 102.4 kB / 16.27 MB, free: 5.984 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.001262/0.001262, allocations: 194 kB / 17.2 MB, free: 5.609 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.396/1.396, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1752/0.1752, allocations: 28.77 MB / 319.8 MB, free: 1.996 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001518/0.001518, allocations: 64.77 kB / 387.2 MB, free: 41.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1099, allocations: 56.45 MB / 443.7 MB, free: 3.789 MB / 318.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.005509/0.1154, allocations: 3.637 MB / 447.3 MB, free: 136 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002174/0.1177, allocations: 0.6779 MB / 448 MB, free: 15.45 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009846/0.1187, allocations: 15.94 kB / 448 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006987/0.1195, allocations: 178.3 kB / 448.2 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008767/0.1203, allocations: 134.8 kB / 448.3 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00119/0.1215, allocations: 359.5 kB / 448.7 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001192/0.1228, allocations: 0.8289 MB / 449.5 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001057/0.1238, allocations: 0.6403 MB / 450.1 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003791/0.1242, allocations: 334.4 kB / 450.5 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000466/0.1247, allocations: 417.6 kB / 450.9 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002034/0.1249, allocations: 84 kB / 451 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00025/0.1252, allocations: 112 kB / 451.1 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000392/0.1256, allocations: 434.5 kB / 451.5 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006177/0.1262, allocations: 0.6164 MB / 452.1 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001293/0.1275, allocations: 1.175 MB / 453.3 MB, free: 10.11 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.1275, allocations: 0 / 453.3 MB, free: 10.11 MB / 334.1 MB Notification: Performance of FrontEnd: time 5.29e-06/0.1275, allocations: 3.984 kB / 453.3 MB, free: 10.11 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.211e-05/0.1276, allocations: 4 kB / 453.3 MB, free: 10.11 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.002205/0.1298, allocations: 1.784 MB / 455.1 MB, free: 8.258 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/0.1298, allocations: 8.031 kB / 455.1 MB, free: 8.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002383/0.1301, allocations: 194.5 kB / 455.3 MB, free: 8.059 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008326/0.1309, allocations: 0.7433 MB / 456 MB, free: 7.266 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.431e-05/0.131, allocations: 78.44 kB / 456.1 MB, free: 7.188 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001253/0.1311, allocations: 108.4 kB / 456.2 MB, free: 7.082 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001542/0.1327, allocations: 1.158 MB / 457.4 MB, free: 5.859 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.098e-05/0.1327, allocations: 8.125 kB / 457.4 MB, free: 5.852 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.004e-05/0.1328, allocations: 43.94 kB / 457.4 MB, free: 5.809 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.024e-05/0.1328, allocations: 24 kB / 457.4 MB, free: 5.785 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00139/0.1342, allocations: 1.097 MB / 458.5 MB, free: 4.688 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004304/0.1385, allocations: 3.677 MB / 462.2 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001629/0.1402, allocations: 1.33 MB / 463.5 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005457/0.1407, allocations: 498.2 kB / 464 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.11e-05/0.1408, allocations: 24.77 kB / 464 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.661e-05/0.1409, allocations: 39.12 kB / 464.1 MB, free: 15 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 2.415e-06/0.1409, allocations: 0 / 464.1 MB, free: 15 MB / 350.1 MB Notification: Performance of matching and sorting (n=67): time 0.00192/0.1428, allocations: 1.516 MB / 465.6 MB, free: 13.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.705e-05/0.1429, allocations: 63.97 kB / 465.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001597/0.1445, allocations: 1.288 MB / 466.9 MB, free: 12.11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.771e-05/0.1445, allocations: 37.7 kB / 467 MB, free: 12.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006168/0.1451, allocations: 0.7638 MB / 467.7 MB, free: 11.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002015/0.1453, allocations: 224.7 kB / 468 MB, free: 11.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001679/0.1455, allocations: 118.2 kB / 468.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001772/0.1457, allocations: 337.9 kB / 468.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005231/0.1462, allocations: 437 kB / 468.8 MB, free: 10.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007021/0.147, allocations: 0.5278 MB / 469.4 MB, free: 9.621 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001135/0.1481, allocations: 0.9978 MB / 470.4 MB, free: 8.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.1481, allocations: 0 / 470.4 MB, free: 8.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001629/0.1497, allocations: 1.179 MB / 471.5 MB, free: 7.402 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.206e-05/0.1498, allocations: 4 kB / 471.5 MB, free: 7.398 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/0.1498, allocations: 4 kB / 471.6 MB, free: 7.395 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.633e-05/0.1498, allocations: 4.312 kB / 471.6 MB, free: 7.391 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004706/0.1503, allocations: 135.8 kB / 471.7 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.558e-05/0.1503, allocations: 7.938 kB / 471.7 MB, free: 7.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003058/0.1506, allocations: 55.38 kB / 471.7 MB, free: 7.195 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.131e-05/0.1507, allocations: 27.98 kB / 471.8 MB, free: 7.168 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.0005273/0.1512, allocations: 375.9 kB / 472.1 MB, free: 6.793 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002149/0.1514, allocations: 142.1 kB / 472.3 MB, free: 6.652 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001542/0.153, allocations: 1.193 MB / 473.5 MB, free: 5.449 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.704e-06/0.153, allocations: 8 kB / 473.5 MB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.153, allocations: 0 / 473.5 MB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-06/0.153, allocations: 3.984 kB / 473.5 MB, free: 5.438 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003019/0.1561, allocations: 2.364 MB / 475.9 MB, free: 3.012 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.1561, allocations: 3.984 kB / 475.9 MB, free: 3.008 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004804/0.1566, allocations: 111.8 kB / 476 MB, free: 2.898 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.026e-05/0.1566, allocations: 8 kB / 476 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.071e-05/0.1567, allocations: 23.98 kB / 476 MB, free: 2.867 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.19e-06/0.1567, allocations: 7.938 kB / 476 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.1567, allocations: 0 / 476 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002179/0.1589, allocations: 1.867 MB / 477.9 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002123/0.1591, allocations: 207 kB / 478.1 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.139e-05/0.1592, allocations: 12.06 kB / 478.1 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002149/0.1594, allocations: 15.94 kB / 478.1 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.288e-05/0.1595, allocations: 44.44 kB / 478.1 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.126e-05/0.1595, allocations: 20 kB / 478.2 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001149/0.1607, allocations: 0.8967 MB / 479.1 MB, free: 15.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1607, allocations: 0 / 479.1 MB, free: 15.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000653/0.1614, allocations: 207 kB / 479.3 MB, free: 15.57 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.0001908/0.1616, allocations: 107.2 kB / 479.4 MB, free: 15.45 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001514/0.1631, allocations: 1.019 MB / 480.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.1631, allocations: 0 / 480.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005881/0.1637, allocations: 0.5107 MB / 480.9 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007881/0.1645, allocations: 95.41 kB / 481 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004282/0.1688, allocations: 2.88 MB / 483.9 MB, free: 10.91 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009854/0.1698, allocations: 1.311 MB / 485.2 MB, free: 9.57 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001871/0.17, allocations: 59.42 kB / 485.2 MB, free: 9.512 MB / 366.1 MB Notification: Performance of SimCode: time 7.32e-07/0.17, allocations: 0 / 485.2 MB, free: 9.512 MB / 366.1 MB Notification: Performance of Templates: time 0.01635/0.1864, allocations: 10.98 MB / 496.2 MB, free: 14.52 MB / 382.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 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe 2>&1)