Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.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_1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008783/0.0008783, allocations: 175.4 kB / 16.12 MB, free: 5.699 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.103/1.103, allocations: 205.4 MB / 222.3 MB, free: 8.945 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.0007238/0.0007238, allocations: 98.28 kB / 270.6 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo): time 0.1354/0.1354, allocations: 28.83 MB / 347.7 MB, free: 10.98 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003044/0.0003044, allocations: 12 kB / 413 MB, free: 47.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06787/0.06818, allocations: 54.65 MB / 467.7 MB, free: 8.863 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2154/0.2836, allocations: 79.89 MB / 0.5347 GB, free: 6.586 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001607/0.2838, allocations: 63.97 kB / 0.5348 GB, free: 6.523 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03069/0.3145, allocations: 14.14 MB / 0.5486 GB, free: 8.375 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.3145, allocations: 0 / 0.5486 GB, free: 8.375 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.346e-05/0.3146, allocations: 28 kB / 0.5486 GB, free: 8.348 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: 259 * Number of variables: 259 Notification: Performance of Generate backend data structure: time 0.001724/0.3163, allocations: 1.542 MB / 0.5501 GB, free: 6.742 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.307e-05/0.3163, allocations: 12.02 kB / 0.5501 GB, free: 6.73 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002195/0.3166, allocations: 194.5 kB / 0.5503 GB, free: 6.539 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008783/0.3175, allocations: 0.7971 MB / 0.5511 GB, free: 5.691 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.985e-05/0.3175, allocations: 78.42 kB / 0.5512 GB, free: 5.613 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001218/0.3176, allocations: 100.4 kB / 0.5513 GB, free: 5.516 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001551/0.3192, allocations: 1.255 MB / 0.5525 GB, free: 4.195 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.422e-05/0.3192, allocations: 4.188 kB / 0.5525 GB, free: 4.191 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.476e-05/0.3193, allocations: 43.94 kB / 0.5526 GB, free: 4.148 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.819e-05/0.3193, allocations: 24 kB / 0.5526 GB, free: 4.125 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001557/0.3209, allocations: 1.202 MB / 0.5538 GB, free: 2.918 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004315/0.3252, allocations: 3.765 MB / 0.5574 GB, free: 15.05 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001819/0.3271, allocations: 1.49 MB / 0.5589 GB, free: 13.55 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006137/0.3277, allocations: 0.5255 MB / 0.5594 GB, free: 13.02 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.396e-05/0.3278, allocations: 32.75 kB / 0.5594 GB, free: 12.99 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.044e-05/0.3278, allocations: 39.12 kB / 0.5595 GB, free: 12.94 MB / 394.7 MB Notification: Performance of pre-optimization done (n=66): time 1.763e-06/0.3278, allocations: 0 / 0.5595 GB, free: 12.94 MB / 394.7 MB Notification: Performance of matching and sorting (n=66): time 0.002038/0.3298, allocations: 1.688 MB / 0.5611 GB, free: 11.25 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.829e-05/0.3299, allocations: 59.95 kB / 0.5612 GB, free: 11.18 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001141/0.331, allocations: 1.222 MB / 0.5624 GB, free: 9.945 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.052e-05/0.3311, allocations: 37.7 kB / 0.5624 GB, free: 9.902 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004297/0.3315, allocations: 0.7362 MB / 0.5631 GB, free: 9.156 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001543/0.3317, allocations: 240.6 kB / 0.5633 GB, free: 8.918 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.019e-05/0.3317, allocations: 12 kB / 0.5634 GB, free: 8.906 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.389e-05/0.3318, allocations: 333.9 kB / 0.5637 GB, free: 8.574 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006031/0.3324, allocations: 492.9 kB / 0.5641 GB, free: 8.09 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006478/0.3331, allocations: 0.5744 MB / 0.5647 GB, free: 7.48 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001284/0.3344, allocations: 1.095 MB / 0.5658 GB, free: 6.352 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.3344, allocations: 7.938 kB / 0.5658 GB, free: 6.344 MB / 394.7 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001547/0.3359, allocations: 1.3 MB / 0.5671 GB, free: 5.035 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.336, allocations: 4 kB / 0.5671 GB, free: 5.031 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.336, allocations: 4 kB / 0.5671 GB, free: 5.027 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.313e-05/0.336, allocations: 4 kB / 0.5671 GB, free: 5.023 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000456/0.3365, allocations: 155.8 kB / 0.5672 GB, free: 4.871 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.155e-05/0.3365, allocations: 11.97 kB / 0.5672 GB, free: 4.859 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002155/0.3367, allocations: 47.44 kB / 0.5673 GB, free: 4.812 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.831e-05/0.3368, allocations: 71.98 kB / 0.5673 GB, free: 4.742 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 (81): * Single equations (assignments): 81 * 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.0004031/0.3372, allocations: 361.5 kB / 0.5677 GB, free: 4.379 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001379/0.3374, allocations: 134.4 kB / 0.5678 GB, free: 4.246 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002044/0.3394, allocations: 1.524 MB / 0.5693 GB, free: 2.703 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.3394, allocations: 4 kB / 0.5693 GB, free: 2.699 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.3394, allocations: 4 kB / 0.5693 GB, free: 2.695 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.3394, allocations: 3.984 kB / 0.5693 GB, free: 2.691 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002643/0.3421, allocations: 2.448 MB / 0.5717 GB, free: 184 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.3421, allocations: 11.92 kB / 0.5717 GB, free: 172 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004533/0.3426, allocations: 127.9 kB / 0.5718 GB, free: 44 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.3426, allocations: 4 kB / 0.5718 GB, free: 40 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.368e-05/0.3426, allocations: 27.98 kB / 0.5719 GB, free: 12 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.3427, allocations: 7.938 kB / 0.5719 GB, free: 4 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.3427, allocations: 0 / 0.5719 GB, free: 4 kB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002313/0.345, allocations: 2.097 MB / 0.5739 GB, free: 13.89 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000138/0.3451, allocations: 203.1 kB / 0.5741 GB, free: 13.67 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.99e-05/0.3452, allocations: 16.12 kB / 0.5741 GB, free: 13.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002043/0.3454, allocations: 16 kB / 0.5741 GB, free: 13.64 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.833e-05/0.3455, allocations: 52.48 kB / 0.5742 GB, free: 13.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.967e-05/0.3456, allocations: 71.92 kB / 0.5743 GB, free: 13.52 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008625/0.3465, allocations: 0.8402 MB / 0.5751 GB, free: 12.68 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3465, allocations: 0 / 0.5751 GB, free: 12.68 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004383/0.3469, allocations: 207 kB / 0.5753 GB, free: 12.47 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 (66): * Single equations (assignments): 66 * 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.0001364/0.3471, allocations: 123.1 kB / 0.5754 GB, free: 12.34 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0009396/0.348, allocations: 0.9373 MB / 0.5763 GB, free: 11.41 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.348, allocations: 0 / 0.5763 GB, free: 11.41 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004443/0.3485, allocations: 499 kB / 0.5768 GB, free: 10.92 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005339/0.349, allocations: 87.72 kB / 0.5769 GB, free: 10.84 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003147/0.3522, allocations: 3.098 MB / 0.5799 GB, free: 7.707 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007547/0.353, allocations: 1.28 MB / 0.5812 GB, free: 6.398 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002037/0.3532, allocations: 72.36 kB / 0.5812 GB, free: 6.328 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001034/0.3533, allocations: 51.42 kB / 0.5813 GB, free: 6.277 MB / 410.7 MB Notification: Performance of SimCode: time 2.61e-07/0.3533, allocations: 0 / 0.5813 GB, free: 6.277 MB / 410.7 MB Notification: Performance of Templates: time 0.009468/0.3628, allocations: 4.58 MB / 0.5857 GB, free: 1.691 MB / 410.7 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe 2>&1)