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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo", uses=false) Using package SystemDynamics with version 2.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001221/0.001221, allocations: 174.3 kB / 16.12 MB, free: 5.672 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.131/1.131, allocations: 205.4 MB / 222.3 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007191/0.0007191, allocations: 94.34 kB / 270.6 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo): time 0.1321/0.1321, allocations: 28.83 MB / 347.7 MB, free: 10.99 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000312/0.000312, allocations: 12 kB / 413 MB, free: 47.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06517/0.06549, allocations: 54.65 MB / 467.7 MB, free: 8.855 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2231/0.2886, allocations: 79.99 MB / 0.5348 GB, free: 6.461 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001799/0.2888, allocations: 63.95 kB / 0.5349 GB, free: 6.398 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03171/0.3206, allocations: 14.34 MB / 0.5489 GB, free: 8.043 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.976e-06/0.3206, allocations: 0 / 0.5489 GB, free: 8.043 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.573e-05/0.3207, allocations: 31.94 kB / 0.5489 GB, free: 8.012 MB / 378.7 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.001663/0.3223, allocations: 1.581 MB / 0.5505 GB, free: 6.367 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.331e-05/0.3224, allocations: 8.031 kB / 0.5505 GB, free: 6.359 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001916/0.3226, allocations: 198.4 kB / 0.5507 GB, free: 6.164 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008447/0.3234, allocations: 0.8369 MB / 0.5515 GB, free: 5.277 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.136e-05/0.3235, allocations: 78.44 kB / 0.5516 GB, free: 5.199 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00012/0.3236, allocations: 104.4 kB / 0.5517 GB, free: 5.098 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0016/0.3252, allocations: 1.279 MB / 0.5529 GB, free: 3.754 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.173e-05/0.3252, allocations: 192 / 0.5529 GB, free: 3.754 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.791e-05/0.3253, allocations: 47.94 kB / 0.553 GB, free: 3.707 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.681e-05/0.3254, allocations: 24 kB / 0.553 GB, free: 3.684 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001642/0.327, allocations: 1.261 MB / 0.5542 GB, free: 2.422 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004211/0.3312, allocations: 3.841 MB / 0.558 GB, free: 14.47 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001917/0.3332, allocations: 1.572 MB / 0.5595 GB, free: 12.89 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006536/0.3338, allocations: 0.5528 MB / 0.56 GB, free: 12.33 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.165e-05/0.3339, allocations: 28.77 kB / 0.5601 GB, free: 12.3 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.115e-05/0.3339, allocations: 39.11 kB / 0.5601 GB, free: 12.26 MB / 394.7 MB Notification: Performance of pre-optimization done (n=67): time 2.084e-06/0.3339, allocations: 4 kB / 0.5601 GB, free: 12.25 MB / 394.7 MB Notification: Performance of matching and sorting (n=67): time 0.002218/0.3362, allocations: 1.777 MB / 0.5618 GB, free: 10.47 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.632e-05/0.3362, allocations: 59.97 kB / 0.5619 GB, free: 10.4 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001196/0.3374, allocations: 1.277 MB / 0.5631 GB, free: 9.117 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.121e-05/0.3375, allocations: 41.7 kB / 0.5632 GB, free: 9.07 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004479/0.3379, allocations: 0.7639 MB / 0.5639 GB, free: 8.297 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001547/0.3381, allocations: 228.5 kB / 0.5642 GB, free: 8.07 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.365e-05/0.3381, allocations: 16 kB / 0.5642 GB, free: 8.055 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.601e-05/0.3382, allocations: 333.9 kB / 0.5645 GB, free: 7.723 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000645/0.3389, allocations: 0.5048 MB / 0.565 GB, free: 7.215 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006912/0.3396, allocations: 0.6095 MB / 0.5656 GB, free: 6.57 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001375/0.341, allocations: 1.15 MB / 0.5667 GB, free: 5.387 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.341, allocations: 0 / 0.5667 GB, free: 5.387 MB / 394.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001662/0.3427, allocations: 1.366 MB / 0.568 GB, free: 4.012 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.3427, allocations: 4 kB / 0.568 GB, free: 4.008 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.3427, allocations: 7.828 kB / 0.568 GB, free: 4.004 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.3427, allocations: 4 kB / 0.568 GB, free: 4 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004736/0.3432, allocations: 155.8 kB / 0.5682 GB, free: 3.848 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.729e-06/0.3432, allocations: 4.312 kB / 0.5682 GB, free: 3.844 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002281/0.3434, allocations: 59.38 kB / 0.5683 GB, free: 3.785 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001018/0.3435, allocations: 75.98 kB / 0.5683 GB, free: 3.711 MB / 394.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004415/0.344, allocations: 374.3 kB / 0.5687 GB, free: 3.336 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000139/0.3441, allocations: 142.2 kB / 0.5688 GB, free: 3.195 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002197/0.3463, allocations: 1.603 MB / 0.5704 GB, free: 1.574 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.3464, allocations: 12 kB / 0.5704 GB, free: 1.562 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.3464, allocations: 0 / 0.5704 GB, free: 1.562 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.3464, allocations: 3.984 kB / 0.5704 GB, free: 1.559 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002795/0.3492, allocations: 2.547 MB / 0.5729 GB, free: 14.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.3492, allocations: 0 / 0.5729 GB, free: 14.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004735/0.3497, allocations: 135.8 kB / 0.573 GB, free: 14.81 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.3497, allocations: 0 / 0.573 GB, free: 14.81 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.696e-05/0.3498, allocations: 31.98 kB / 0.573 GB, free: 14.78 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.586e-06/0.3498, allocations: 11.94 kB / 0.5731 GB, free: 14.77 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.3498, allocations: 0 / 0.5731 GB, free: 14.77 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002464/0.3522, allocations: 2.206 MB / 0.5752 GB, free: 12.54 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001405/0.3524, allocations: 203.1 kB / 0.5754 GB, free: 12.32 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.333e-05/0.3525, allocations: 16.06 kB / 0.5754 GB, free: 12.31 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00021/0.3527, allocations: 8 kB / 0.5754 GB, free: 12.3 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001105/0.3528, allocations: 60.44 kB / 0.5755 GB, free: 12.24 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.115e-05/0.3529, allocations: 71.97 kB / 0.5756 GB, free: 12.17 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008701/0.3538, allocations: 0.8811 MB / 0.5764 GB, free: 11.29 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3538, allocations: 0 / 0.5764 GB, free: 11.29 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004747/0.3543, allocations: 214.9 kB / 0.5766 GB, free: 11.08 MB / 410.7 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 (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.0001452/0.3544, allocations: 123 kB / 0.5767 GB, free: 10.95 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0009977/0.3554, allocations: 0.9809 MB / 0.5777 GB, free: 9.977 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.3555, allocations: 4 kB / 0.5777 GB, free: 9.973 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004744/0.3559, allocations: 0.5067 MB / 0.5782 GB, free: 9.461 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005525/0.3565, allocations: 89.22 kB / 0.5783 GB, free: 9.375 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003171/0.3597, allocations: 3.199 MB / 0.5814 GB, free: 6.141 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007443/0.3604, allocations: 1.311 MB / 0.5827 GB, free: 4.805 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002158/0.3607, allocations: 76.36 kB / 0.5828 GB, free: 4.727 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.817e-05/0.3608, allocations: 43.44 kB / 0.5828 GB, free: 4.684 MB / 410.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3608, allocations: 0 / 0.5828 GB, free: 4.684 MB / 410.7 MB Notification: Performance of Templates: time 0.009474/0.3702, allocations: 4.68 MB / 0.5874 GB, free: 4 kB / 410.7 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)