Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.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_4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001049/0.001049, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001682/0.001682, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.49/1.49, allocations: 223.2 MB / 239.9 MB, free: 5.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.3476/0.3476, allocations: 28.84 MB / 319.8 MB, free: 6.285 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004747/0.0004749, allocations: 8 kB / 387.8 MB, free: 3.547 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3279/0.3284, allocations: 57.48 MB / 445.3 MB, free: 32.91 MB / 350.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.003109/0.3315, allocations: 2.968 MB / 448.2 MB, free: 30.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001449/0.333, allocations: 0.6617 MB / 448.9 MB, free: 30.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003888/0.3334, allocations: 18.31 kB / 448.9 MB, free: 30.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000238/0.3337, allocations: 86.7 kB / 449 MB, free: 30.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003279/0.334, allocations: 120.1 kB / 449.1 MB, free: 30.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006447/0.3347, allocations: 252.7 kB / 449.4 MB, free: 29.99 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006565/0.3353, allocations: 0.5198 MB / 449.9 MB, free: 29.74 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006775/0.336, allocations: 493.7 kB / 450.4 MB, free: 29.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001944/0.3362, allocations: 243.5 kB / 450.6 MB, free: 29.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002964/0.3365, allocations: 312.5 kB / 450.9 MB, free: 29.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.108e-05/0.3366, allocations: 20.28 kB / 450.9 MB, free: 29.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001544/0.3368, allocations: 48.52 kB / 451 MB, free: 29.24 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003039/0.3371, allocations: 358.2 kB / 451.3 MB, free: 29.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001641/0.3373, allocations: 235 kB / 451.6 MB, free: 28.94 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007164/0.338, allocations: 0.7999 MB / 452.4 MB, free: 28.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.338, allocations: 0 / 452.4 MB, free: 28.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.338, allocations: 2.406 kB / 452.4 MB, free: 28.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.677e-05/0.338, allocations: 0 / 452.4 MB, free: 28.71 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: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.001884/0.3399, allocations: 1.576 MB / 453.9 MB, free: 27.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.34, allocations: 8.156 kB / 453.9 MB, free: 27.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001845/0.3401, allocations: 207.5 kB / 454.1 MB, free: 27.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006955/0.3408, allocations: 0.6892 MB / 454.8 MB, free: 26.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.601e-05/0.3409, allocations: 80.11 kB / 454.9 MB, free: 26.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.889e-05/0.341, allocations: 104.2 kB / 455 MB, free: 26.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001485/0.3425, allocations: 1.265 MB / 456.3 MB, free: 26.39 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.781e-05/0.3425, allocations: 3.938 kB / 456.3 MB, free: 26.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.245e-05/0.3426, allocations: 47.17 kB / 456.3 MB, free: 26.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.35e-05/0.3427, allocations: 48.09 kB / 456.4 MB, free: 26.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001737/0.3445, allocations: 1.224 MB / 457.6 MB, free: 26.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004606/0.3491, allocations: 3.915 MB / 461.5 MB, free: 23.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002033/0.3511, allocations: 1.355 MB / 462.9 MB, free: 23.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001027/0.3513, allocations: 39.16 kB / 462.9 MB, free: 23.51 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.152e-05/0.3513, allocations: 46.22 kB / 462.9 MB, free: 23.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=70): time 2.735e-06/0.3513, allocations: 0 / 462.9 MB, free: 23.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.002236/0.3535, allocations: 1.544 MB / 464.5 MB, free: 23.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.139e-05/0.3536, allocations: 88.7 kB / 464.6 MB, free: 22.95 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001773/0.3554, allocations: 1.353 MB / 465.9 MB, free: 22.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.332e-05/0.3554, allocations: 41.52 kB / 466 MB, free: 22.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000596/0.356, allocations: 0.8476 MB / 466.8 MB, free: 21.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001773/0.3562, allocations: 239 kB / 467.1 MB, free: 21.58 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.965e-05/0.3562, allocations: 20.25 kB / 467.1 MB, free: 21.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.094e-05/0.3563, allocations: 340.2 kB / 467.4 MB, free: 21.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006686/0.357, allocations: 473.3 kB / 467.9 MB, free: 21.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007482/0.3578, allocations: 0.7122 MB / 468.6 MB, free: 20.72 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007709/0.3586, allocations: 0.534 MB / 469.1 MB, free: 20.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.648e-06/0.3586, allocations: 4.297 kB / 469.1 MB, free: 20.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.002183/0.3608, allocations: 1.378 MB / 470.5 MB, free: 20.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.969e-05/0.3608, allocations: 8.875 kB / 470.5 MB, free: 20.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.031e-05/0.3608, allocations: 8.781 kB / 470.5 MB, free: 20.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.731e-05/0.3609, allocations: 14.16 kB / 470.5 MB, free: 20.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006479/0.3615, allocations: 182.6 kB / 470.7 MB, free: 20.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.876e-05/0.3616, allocations: 21.14 kB / 470.7 MB, free: 20.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004808/0.3621, allocations: 82.17 kB / 470.8 MB, free: 20.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.988e-05/0.3621, allocations: 43.67 kB / 470.8 MB, free: 20.05 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 (109): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006724/0.3628, allocations: 411.7 kB / 471.3 MB, free: 19.81 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001655/0.363, allocations: 150.5 kB / 471.4 MB, free: 19.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001855/0.3648, allocations: 1.244 MB / 472.6 MB, free: 19.35 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.156e-05/0.3649, allocations: 7.031 kB / 472.6 MB, free: 19.35 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.316e-06/0.3649, allocations: 0.9688 kB / 472.7 MB, free: 19.35 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.241e-05/0.3649, allocations: 8.875 kB / 472.7 MB, free: 19.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003566/0.3685, allocations: 2.396 MB / 475.1 MB, free: 18.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.3685, allocations: 0.875 kB / 475.1 MB, free: 18.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005055/0.369, allocations: 125.5 kB / 475.2 MB, free: 18.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.227e-06/0.369, allocations: 3.219 kB / 475.2 MB, free: 18.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.978e-05/0.3691, allocations: 15.77 kB / 475.2 MB, free: 18.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.976e-06/0.3691, allocations: 7.344 kB / 475.2 MB, free: 18.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.3691, allocations: 0.875 kB / 475.2 MB, free: 18.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002552/0.3716, allocations: 1.993 MB / 477.2 MB, free: 17.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002517/0.3719, allocations: 221.6 kB / 477.4 MB, free: 17.51 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001294/0.372, allocations: 12.72 kB / 477.4 MB, free: 17.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003175/0.3724, allocations: 17.41 kB / 477.4 MB, free: 17.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.461e-05/0.3725, allocations: 40.41 kB / 477.5 MB, free: 17.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.606e-05/0.3725, allocations: 25.31 kB / 477.5 MB, free: 17.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001309/0.3738, allocations: 0.9218 MB / 478.4 MB, free: 16.69 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3738, allocations: 0 / 478.4 MB, free: 16.69 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007517/0.3746, allocations: 222.9 kB / 478.6 MB, free: 16.47 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (70): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001754/0.3748, allocations: 125.2 kB / 478.8 MB, free: 16.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001453/0.3762, allocations: 1.075 MB / 479.8 MB, free: 15.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.3763, allocations: 4 kB / 479.8 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005547/0.3768, allocations: 0.521 MB / 480.4 MB, free: 14.92 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005362/0.3774, allocations: 78.55 kB / 480.4 MB, free: 14.85 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004231/0.3816, allocations: 3.333 MB / 483.8 MB, free: 11.76 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00102/0.3826, allocations: 1.366 MB / 485.1 MB, free: 10.63 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004378/0.3831, allocations: 133.9 kB / 485.3 MB, free: 10.53 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001407/0.3832, allocations: 54.2 kB / 485.3 MB, free: 10.48 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3832, allocations: 0 / 485.3 MB, free: 10.48 MB / 350.1 MB Notification: Performance of Templates: time 0.0103/0.3936, allocations: 5.074 MB / 490.4 MB, free: 5.582 MB / 350.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.makefile Environment - environmentSimulation: (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe 2>&1) Environment - environmentSimulation: