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.001777/0.001777, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001772/0.001772, allocations: 188.3 kB / 16.13 MB, free: 6.652 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.423/1.423, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3721/0.3721, allocations: 28.8 MB / 318.8 MB, free: 5.965 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001067/0.001067, allocations: 55.92 kB / 385.9 MB, free: 4.102 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3545/0.3555, allocations: 56.41 MB / 442.3 MB, free: 39.76 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.004139/0.3597, allocations: 3.262 MB / 445.6 MB, free: 37.75 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001325/0.3611, allocations: 0.526 MB / 446.1 MB, free: 37.57 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003017/0.3614, allocations: 19.22 kB / 446.1 MB, free: 37.56 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003051/0.3617, allocations: 100.8 kB / 446.2 MB, free: 37.52 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002687/0.362, allocations: 86.05 kB / 446.3 MB, free: 37.49 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005366/0.3625, allocations: 241.6 kB / 446.6 MB, free: 37.48 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005862/0.3631, allocations: 0.703 MB / 447.3 MB, free: 37.4 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005762/0.3637, allocations: 455.3 kB / 447.7 MB, free: 37.3 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001869/0.3639, allocations: 283 kB / 448 MB, free: 37.22 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002623/0.3642, allocations: 403.8 kB / 448.4 MB, free: 37.09 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.268e-05/0.3643, allocations: 54.91 kB / 448.4 MB, free: 37.09 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001585/0.3645, allocations: 80.09 kB / 448.5 MB, free: 37.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002873/0.3648, allocations: 411.5 kB / 448.9 MB, free: 37 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003124/0.3651, allocations: 0.56 MB / 449.5 MB, free: 36.65 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006814/0.3658, allocations: 1.039 MB / 450.5 MB, free: 36.11 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.3658, allocations: 3.031 kB / 450.5 MB, free: 36.11 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.41e-07/0.3658, allocations: 0 / 450.5 MB, free: 36.11 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.55e-05/0.3658, allocations: 0 / 450.5 MB, free: 36.11 MB / 366.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.001858/0.3677, allocations: 1.706 MB / 452.2 MB, free: 34.91 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.3677, allocations: 14.56 kB / 452.2 MB, free: 34.91 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002068/0.3679, allocations: 192.8 kB / 452.4 MB, free: 34.8 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004122/0.3684, allocations: 0.5606 MB / 453 MB, free: 34.32 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.544e-05/0.3684, allocations: 75.34 kB / 453.1 MB, free: 34.29 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.565e-05/0.3685, allocations: 97.56 kB / 453.2 MB, free: 34.26 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001421/0.37, allocations: 1.078 MB / 454.2 MB, free: 33.91 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.654e-05/0.37, allocations: 192 / 454.2 MB, free: 33.91 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.882e-05/0.3701, allocations: 52.89 kB / 454.3 MB, free: 33.87 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.786e-05/0.3701, allocations: 53.41 kB / 454.3 MB, free: 33.87 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001428/0.3716, allocations: 1.221 MB / 455.6 MB, free: 33.59 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003368/0.3749, allocations: 2.863 MB / 458.4 MB, free: 32.41 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001123/0.3761, allocations: 1.005 MB / 459.4 MB, free: 32.16 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005307/0.3766, allocations: 0.4961 MB / 459.9 MB, free: 32.04 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.787e-05/0.3767, allocations: 35.06 kB / 460 MB, free: 32.04 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.78e-05/0.3767, allocations: 42.16 kB / 460 MB, free: 31.99 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 2.475e-06/0.3767, allocations: 0 / 460 MB, free: 31.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.001817/0.3786, allocations: 1.588 MB / 461.6 MB, free: 31.58 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.938e-05/0.3786, allocations: 60.5 kB / 461.6 MB, free: 31.52 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001129/0.3797, allocations: 1.256 MB / 462.9 MB, free: 31.08 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.05e-05/0.3798, allocations: 36.23 kB / 462.9 MB, free: 31.04 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003904/0.3802, allocations: 0.7808 MB / 463.7 MB, free: 30.43 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001213/0.3803, allocations: 232.8 kB / 463.9 MB, free: 30.25 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001473/0.3805, allocations: 127.1 kB / 464.1 MB, free: 30.18 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.295e-05/0.3805, allocations: 342.3 kB / 464.4 MB, free: 29.86 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005261/0.3811, allocations: 473.8 kB / 464.9 MB, free: 29.77 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005958/0.3817, allocations: 0.6586 MB / 465.5 MB, free: 29.45 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004137/0.3858, allocations: 2.118 MB / 467.6 MB, free: 28.79 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.937e-06/0.3859, allocations: 6.219 kB / 467.6 MB, free: 28.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002475/0.3884, allocations: 1.338 MB / 469 MB, free: 28.39 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.55e-05/0.3884, allocations: 11.19 kB / 469 MB, free: 28.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.523e-05/0.3884, allocations: 5.25 kB / 469 MB, free: 28.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.926e-05/0.3885, allocations: 10.47 kB / 469 MB, free: 28.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005638/0.389, allocations: 184.7 kB / 469.2 MB, free: 28.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.864e-05/0.389, allocations: 12.44 kB / 469.2 MB, free: 28.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004167/0.3895, allocations: 81.72 kB / 469.3 MB, free: 28.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.287e-05/0.3895, allocations: 35.48 kB / 469.3 MB, free: 28.3 MB / 366.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.0008357/0.3904, allocations: 395.1 kB / 469.7 MB, free: 28.09 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001778/0.3906, allocations: 139.8 kB / 469.8 MB, free: 28.01 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002214/0.3928, allocations: 1.258 MB / 471.1 MB, free: 27.65 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.365e-05/0.3928, allocations: 5.875 kB / 471.1 MB, free: 27.65 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.458e-06/0.3928, allocations: 1.562 kB / 471.1 MB, free: 27.65 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.979e-06/0.3928, allocations: 3.094 kB / 471.1 MB, free: 27.65 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003176/0.396, allocations: 2.37 MB / 473.5 MB, free: 26.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.396, allocations: 5.234 kB / 473.5 MB, free: 26.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005352/0.3966, allocations: 120.8 kB / 473.6 MB, free: 26.78 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.414e-06/0.3966, allocations: 2.156 kB / 473.6 MB, free: 26.78 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.851e-05/0.3967, allocations: 18 kB / 473.6 MB, free: 26.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.53e-06/0.3967, allocations: 2.156 kB / 473.6 MB, free: 26.77 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3967, allocations: 0 / 473.6 MB, free: 26.77 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002507/0.3992, allocations: 1.939 MB / 475.6 MB, free: 26.17 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002174/0.3994, allocations: 205.4 kB / 475.8 MB, free: 25.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.23e-05/0.3995, allocations: 13.78 kB / 475.8 MB, free: 25.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002487/0.3998, allocations: 27.2 kB / 475.8 MB, free: 25.96 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000147/0.3999, allocations: 39.44 kB / 475.8 MB, free: 25.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.851e-05/0.4, allocations: 23.27 kB / 475.9 MB, free: 25.96 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001502/0.4015, allocations: 0.8719 MB / 476.7 MB, free: 25.65 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4015, allocations: 0 / 476.7 MB, free: 25.65 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008537/0.4023, allocations: 212.9 kB / 476.9 MB, free: 25.58 MB / 366.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.0001895/0.4025, allocations: 122.5 kB / 477.1 MB, free: 25.47 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001781/0.4043, allocations: 1.09 MB / 478.2 MB, free: 25.24 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.4044, allocations: 3.938 kB / 478.2 MB, free: 25.23 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009285/0.4053, allocations: 0.5456 MB / 478.7 MB, free: 25.12 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005719/0.4059, allocations: 69.12 kB / 478.8 MB, free: 25.06 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005168/0.411, allocations: 3.328 MB / 482.1 MB, free: 23.24 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008581/0.4119, allocations: 1.294 MB / 483.4 MB, free: 22.48 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004076/0.4123, allocations: 121.3 kB / 483.5 MB, free: 22.45 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000163/0.4125, allocations: 48.41 kB / 483.6 MB, free: 22.44 MB / 366.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4125, allocations: 0 / 483.6 MB, free: 22.44 MB / 366.1 MB Notification: Performance of Templates: time 0.0145/0.427, allocations: 4.925 MB / 488.5 MB, free: 21.98 MB / 366.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)