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.0008576/0.0008576, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.007208/0.007208, allocations: 173.9 kB / 16.26 MB, free: 6.676 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.481/1.481, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3654/0.3654, allocations: 28.85 MB / 320.3 MB, free: 6.191 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004412/0.0004412, allocations: 8 kB / 388.5 MB, free: 3.168 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3332/0.3336, allocations: 57.48 MB / 446 MB, free: 32.96 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.002891/0.3366, allocations: 3.179 MB / 449.1 MB, free: 30.53 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00123/0.3378, allocations: 0.6587 MB / 449.8 MB, free: 30.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003119/0.3382, allocations: 17.34 kB / 449.8 MB, free: 30.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003004/0.3385, allocations: 125.8 kB / 449.9 MB, free: 29.99 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00027/0.3388, allocations: 91.52 kB / 450 MB, free: 29.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005189/0.3393, allocations: 309.1 kB / 450.3 MB, free: 29.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005817/0.3399, allocations: 0.8075 MB / 451.1 MB, free: 29.42 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006606/0.3405, allocations: 0.6022 MB / 451.7 MB, free: 29.06 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001496/0.3407, allocations: 207.4 kB / 452 MB, free: 28.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002149/0.3409, allocations: 314.8 kB / 452.3 MB, free: 28.76 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.056e-05/0.341, allocations: 20 kB / 452.3 MB, free: 28.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001245/0.3411, allocations: 46.7 kB / 452.3 MB, free: 28.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002488/0.3414, allocations: 352 kB / 452.7 MB, free: 28.62 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002625/0.3417, allocations: 0.5209 MB / 453.2 MB, free: 28.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007405/0.3424, allocations: 1.094 MB / 454.3 MB, free: 27.72 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.3424, allocations: 0 / 454.3 MB, free: 27.72 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3424, allocations: 0.5 kB / 454.3 MB, free: 27.72 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.722e-05/0.3424, allocations: 0 / 454.3 MB, free: 27.72 MB / 350.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.001568/0.344, allocations: 1.509 MB / 455.8 MB, free: 26.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.3441, allocations: 11.88 kB / 455.8 MB, free: 26.63 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001866/0.3443, allocations: 195.6 kB / 456 MB, free: 26.53 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007115/0.345, allocations: 0.7527 MB / 456.7 MB, free: 25.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.079e-05/0.3451, allocations: 75.34 kB / 456.8 MB, free: 25.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/0.3452, allocations: 102.3 kB / 456.9 MB, free: 25.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001435/0.3466, allocations: 1.16 MB / 458.1 MB, free: 25.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.088e-05/0.3466, allocations: 192 / 458.1 MB, free: 25.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.409e-05/0.3467, allocations: 46.06 kB / 458.1 MB, free: 25.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.216e-05/0.3467, allocations: 23.78 kB / 458.1 MB, free: 25.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001306/0.3481, allocations: 1.091 MB / 459.2 MB, free: 25.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004206/0.3523, allocations: 3.679 MB / 462.9 MB, free: 23.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001745/0.354, allocations: 1.335 MB / 464.3 MB, free: 22.76 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005602/0.3546, allocations: 483.2 kB / 464.7 MB, free: 22.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.925e-05/0.3547, allocations: 32.34 kB / 464.8 MB, free: 22.63 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.241e-05/0.3547, allocations: 42.56 kB / 464.8 MB, free: 22.58 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 2.935e-06/0.3548, allocations: 0 / 464.8 MB, free: 22.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=67): time 0.002066/0.3568, allocations: 1.52 MB / 466.3 MB, free: 22.17 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.624e-05/0.3569, allocations: 58.91 kB / 466.4 MB, free: 22.11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001734/0.3586, allocations: 1.287 MB / 467.7 MB, free: 21.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.611e-05/0.3587, allocations: 40.78 kB / 467.7 MB, free: 21.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006091/0.3593, allocations: 0.764 MB / 468.5 MB, free: 21.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000222/0.3595, allocations: 235.3 kB / 468.7 MB, free: 20.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.98e-05/0.3596, allocations: 59.23 kB / 468.8 MB, free: 20.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.3597, allocations: 339.3 kB / 469.1 MB, free: 20.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007156/0.3605, allocations: 436 kB / 469.5 MB, free: 20.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007826/0.3613, allocations: 0.5298 MB / 470 MB, free: 20.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001477/0.3627, allocations: 0.991 MB / 471 MB, free: 19.83 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.3628, allocations: 4 kB / 471 MB, free: 19.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001635/0.3644, allocations: 1.18 MB / 472.2 MB, free: 19.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/0.3644, allocations: 8.047 kB / 472.2 MB, free: 19.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.3644, allocations: 1.781 kB / 472.2 MB, free: 19.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.906e-05/0.3645, allocations: 5.375 kB / 472.2 MB, free: 19.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004691/0.3649, allocations: 128 kB / 472.4 MB, free: 19.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.272e-05/0.365, allocations: 10.55 kB / 472.4 MB, free: 19.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002775/0.3653, allocations: 52.48 kB / 472.4 MB, free: 19.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.081e-05/0.3653, allocations: 23 kB / 472.4 MB, free: 19.41 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.0005248/0.3658, allocations: 383.1 kB / 472.8 MB, free: 19.19 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001438/0.366, allocations: 138.4 kB / 472.9 MB, free: 19.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001857/0.3678, allocations: 1.199 MB / 474.1 MB, free: 18.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-05/0.3679, allocations: 10.39 kB / 474.2 MB, free: 18.74 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.3679, allocations: 1.062 kB / 474.2 MB, free: 18.74 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.264e-05/0.3679, allocations: 3.891 kB / 474.2 MB, free: 18.74 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003412/0.3713, allocations: 2.361 MB / 476.5 MB, free: 17.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.3713, allocations: 0.7969 kB / 476.5 MB, free: 17.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004715/0.3718, allocations: 116.5 kB / 476.6 MB, free: 17.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.673e-06/0.3718, allocations: 2.344 kB / 476.6 MB, free: 17.85 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.797e-05/0.3719, allocations: 19 kB / 476.7 MB, free: 17.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.688e-06/0.3719, allocations: 2.281 kB / 476.7 MB, free: 17.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.3719, allocations: 4 kB / 476.7 MB, free: 17.83 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00275/0.3746, allocations: 1.871 MB / 478.5 MB, free: 17.04 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000162/0.3748, allocations: 198 kB / 478.7 MB, free: 16.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.117e-05/0.3749, allocations: 8.062 kB / 478.7 MB, free: 16.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002183/0.3751, allocations: 17.31 kB / 478.8 MB, free: 16.8 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001064/0.3753, allocations: 46.75 kB / 478.8 MB, free: 16.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.127e-05/0.3753, allocations: 17.36 kB / 478.8 MB, free: 16.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001096/0.3764, allocations: 0.8985 MB / 479.7 MB, free: 16.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3764, allocations: 0 / 479.7 MB, free: 16.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00056/0.377, allocations: 203.6 kB / 479.9 MB, free: 15.82 MB / 350.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.0001772/0.3771, allocations: 120.7 kB / 480 MB, free: 15.69 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001089/0.3782, allocations: 0.9812 MB / 481 MB, free: 14.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.3783, allocations: 7.938 kB / 481 MB, free: 14.81 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004986/0.3788, allocations: 0.5022 MB / 481.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006826/0.3795, allocations: 89.19 kB / 481.6 MB, free: 14.28 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003641/0.3831, allocations: 3.398 MB / 485 MB, free: 11.13 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008692/0.384, allocations: 1.301 MB / 486.3 MB, free: 10.03 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002151/0.3842, allocations: 76.91 kB / 486.4 MB, free: 9.969 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000104/0.3843, allocations: 49.11 kB / 486.4 MB, free: 9.922 MB / 350.1 MB Notification: Performance of SimCode: time 3.5e-07/0.3843, allocations: 0 / 486.4 MB, free: 9.922 MB / 350.1 MB Notification: Performance of Templates: time 0.01004/0.3944, allocations: 4.8 MB / 491.2 MB, free: 5.367 MB / 350.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: