Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.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_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008074/0.0008074, allocations: 172.7 kB / 16.11 MB, free: 5.695 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.114/1.114, allocations: 205.4 MB / 222.3 MB, free: 9.043 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.0007468/0.0007468, allocations: 89.42 kB / 270.6 MB, free: 8.273 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo): time 0.1366/0.1366, allocations: 28.82 MB / 347.7 MB, free: 11 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003066/0.0003067, allocations: 15.94 kB / 413 MB, free: 47.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06571/0.06603, allocations: 54.63 MB / 467.7 MB, free: 8.895 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2178/0.2839, allocations: 80.04 MB / 0.5349 GB, free: 6.465 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001721/0.2841, allocations: 63.97 kB / 0.5349 GB, free: 6.402 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03158/0.3157, allocations: 14.36 MB / 0.549 GB, free: 8.02 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3157, allocations: 0 / 0.549 GB, free: 8.02 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.173e-05/0.3158, allocations: 28.88 kB / 0.549 GB, free: 7.992 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: 263 * Number of variables: 263 Notification: Performance of Generate backend data structure: time 0.001871/0.3177, allocations: 1.585 MB / 0.5505 GB, free: 6.344 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.086e-05/0.3177, allocations: 12.03 kB / 0.5505 GB, free: 6.332 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002381/0.3179, allocations: 198.4 kB / 0.5507 GB, free: 6.137 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009021/0.3188, allocations: 0.8291 MB / 0.5515 GB, free: 5.258 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.556e-05/0.3189, allocations: 78.39 kB / 0.5516 GB, free: 5.18 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001244/0.319, allocations: 108.3 kB / 0.5517 GB, free: 5.074 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001672/0.3207, allocations: 1.283 MB / 0.553 GB, free: 3.727 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.265e-05/0.3208, allocations: 192 / 0.553 GB, free: 3.727 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.062e-05/0.3208, allocations: 51.92 kB / 0.553 GB, free: 3.676 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.844e-05/0.3209, allocations: 24 kB / 0.553 GB, free: 3.652 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001735/0.3226, allocations: 1.264 MB / 0.5543 GB, free: 2.383 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004492/0.3271, allocations: 3.86 MB / 0.558 GB, free: 14.42 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001969/0.3291, allocations: 1.568 MB / 0.5596 GB, free: 12.84 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006933/0.3298, allocations: 0.5528 MB / 0.5601 GB, free: 12.28 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.78e-05/0.3299, allocations: 28.77 kB / 0.5601 GB, free: 12.25 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.242e-05/0.3299, allocations: 43.06 kB / 0.5602 GB, free: 12.2 MB / 394.7 MB Notification: Performance of pre-optimization done (n=68): time 2.124e-06/0.3299, allocations: 0 / 0.5602 GB, free: 12.2 MB / 394.7 MB Notification: Performance of matching and sorting (n=68): time 0.002272/0.3322, allocations: 1.789 MB / 0.5619 GB, free: 10.41 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.02e-05/0.3322, allocations: 63.95 kB / 0.562 GB, free: 10.34 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001224/0.3335, allocations: 1.273 MB / 0.5632 GB, free: 9.055 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.139e-05/0.3335, allocations: 33.7 kB / 0.5633 GB, free: 9.016 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004686/0.334, allocations: 0.7677 MB / 0.564 GB, free: 8.238 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001628/0.3342, allocations: 236.5 kB / 0.5642 GB, free: 8.004 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.345e-05/0.3342, allocations: 12 kB / 0.5643 GB, free: 7.992 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.436e-05/0.3343, allocations: 337.9 kB / 0.5646 GB, free: 7.656 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006811/0.335, allocations: 0.5093 MB / 0.5651 GB, free: 7.145 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007335/0.3357, allocations: 0.6128 MB / 0.5657 GB, free: 6.496 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001452/0.3372, allocations: 1.161 MB / 0.5668 GB, free: 5.301 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.3372, allocations: 3.938 kB / 0.5668 GB, free: 5.297 MB / 394.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001742/0.339, allocations: 1.378 MB / 0.5682 GB, free: 3.91 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.339, allocations: 4 kB / 0.5682 GB, free: 3.906 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.339, allocations: 4 kB / 0.5682 GB, free: 3.902 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.339, allocations: 4 kB / 0.5682 GB, free: 3.898 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000486/0.3395, allocations: 155.8 kB / 0.5683 GB, free: 3.746 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.219e-05/0.3395, allocations: 11.94 kB / 0.5683 GB, free: 3.734 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002363/0.3398, allocations: 47.53 kB / 0.5684 GB, free: 3.688 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001016/0.3399, allocations: 75.97 kB / 0.5684 GB, free: 3.613 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 (83): * Single equations (assignments): 83 * 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.0004329/0.3403, allocations: 378.4 kB / 0.5688 GB, free: 3.234 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001449/0.3405, allocations: 142.1 kB / 0.5689 GB, free: 3.094 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002235/0.3427, allocations: 1.607 MB / 0.5705 GB, free: 1.473 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.431e-06/0.3427, allocations: 4 kB / 0.5705 GB, free: 1.469 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.3427, allocations: 0 / 0.5705 GB, free: 1.469 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.094e-06/0.3428, allocations: 7.984 kB / 0.5705 GB, free: 1.461 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002881/0.3456, allocations: 2.562 MB / 0.573 GB, free: 14.83 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.3457, allocations: 0 / 0.573 GB, free: 14.83 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004767/0.3461, allocations: 135.8 kB / 0.5732 GB, free: 14.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.201e-06/0.3462, allocations: 4 kB / 0.5732 GB, free: 14.7 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.553e-05/0.3462, allocations: 27.98 kB / 0.5732 GB, free: 14.67 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.3462, allocations: 0 / 0.5732 GB, free: 14.67 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.3462, allocations: 3.938 kB / 0.5732 GB, free: 14.66 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002559/0.3488, allocations: 2.222 MB / 0.5754 GB, free: 12.42 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000146/0.349, allocations: 203 kB / 0.5756 GB, free: 12.2 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.597e-05/0.3491, allocations: 12.06 kB / 0.5756 GB, free: 12.19 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002237/0.3493, allocations: 11.98 kB / 0.5756 GB, free: 12.18 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001088/0.3494, allocations: 64.38 kB / 0.5756 GB, free: 12.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.532e-05/0.3495, allocations: 68.09 kB / 0.5757 GB, free: 12.05 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0009086/0.3504, allocations: 0.8848 MB / 0.5766 GB, free: 11.17 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.263e-06/0.3504, allocations: 0 / 0.5766 GB, free: 11.17 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004589/0.3509, allocations: 214.9 kB / 0.5768 GB, free: 10.96 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 (68): * Single equations (assignments): 68 * 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.0001529/0.351, allocations: 127 kB / 0.5769 GB, free: 10.83 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001067/0.3521, allocations: 0.9924 MB / 0.5779 GB, free: 9.84 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.3521, allocations: 4.125 kB / 0.5779 GB, free: 9.836 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005062/0.3526, allocations: 0.5068 MB / 0.5784 GB, free: 9.324 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005376/0.3532, allocations: 85.2 kB / 0.5784 GB, free: 9.242 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003358/0.3566, allocations: 3.215 MB / 0.5816 GB, free: 5.992 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00078/0.3573, allocations: 1.308 MB / 0.5829 GB, free: 4.66 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002336/0.3576, allocations: 80.33 kB / 0.5829 GB, free: 4.582 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001075/0.3577, allocations: 47.44 kB / 0.583 GB, free: 4.535 MB / 410.7 MB Notification: Performance of SimCode: time 2.51e-07/0.3577, allocations: 0 / 0.583 GB, free: 4.535 MB / 410.7 MB Notification: Performance of Templates: time 0.009778/0.3675, allocations: 4.671 MB / 0.5875 GB, free: 15.86 MB / 426.7 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe 2>&1)