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 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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 4.0.0+maint.om/package.mo): time 0.003884/0.003884, allocations: 171 kB / 15.11 MB, free: 6.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.143/1.143, allocations: 223.2 MB / 239 MB, free: 1.758 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008556/0.0008556, allocations: 85.14 kB / 290.2 MB, free: 13.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1311/0.1311, allocations: 28.83 MB / 370.2 MB, free: 13.9 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002506/0.0002506, allocations: 8.75 kB / 438.1 MB, free: 70.77 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0717/0.07196, allocations: 57.47 MB / 495.6 MB, free: 13.25 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2467/0.3187, allocations: 80.7 MB / 0.5628 GB, free: 11.02 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001573/0.3189, allocations: 63.28 kB / 0.5628 GB, free: 10.98 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02641/0.3453, allocations: 14.15 MB / 0.5767 GB, free: 15.1 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.734e-06/0.3453, allocations: 0 / 0.5767 GB, free: 15.1 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.502e-05/0.3454, allocations: 32 kB / 0.5767 GB, free: 15.07 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.001669/0.3471, allocations: 1.562 MB / 0.5782 GB, free: 13.55 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.941e-05/0.3471, allocations: 8.031 kB / 0.5782 GB, free: 13.54 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002053/0.3473, allocations: 197.6 kB / 0.5784 GB, free: 13.34 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009679/0.3483, allocations: 0.7354 MB / 0.5791 GB, free: 12.64 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.441e-05/0.3483, allocations: 75.55 kB / 0.5792 GB, free: 12.59 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001145/0.3485, allocations: 105.2 kB / 0.5793 GB, free: 12.52 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001443/0.3499, allocations: 1.239 MB / 0.5805 GB, free: 11.55 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.723e-05/0.3499, allocations: 0 / 0.5805 GB, free: 11.55 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.079e-05/0.35, allocations: 43.94 kB / 0.5806 GB, free: 11.54 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.744e-05/0.35, allocations: 28 kB / 0.5806 GB, free: 11.52 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001537/0.3516, allocations: 1.195 MB / 0.5817 GB, free: 10.63 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004392/0.356, allocations: 3.765 MB / 0.5854 GB, free: 7.418 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001773/0.3578, allocations: 1.509 MB / 0.5869 GB, free: 6.281 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.59e-05/0.3578, allocations: 27.95 kB / 0.5869 GB, free: 6.258 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.057e-05/0.3579, allocations: 37.38 kB / 0.587 GB, free: 6.219 MB / 378.7 MB Notification: Performance of pre-optimization done (n=66): time 1.893e-06/0.3579, allocations: 4 kB / 0.587 GB, free: 6.215 MB / 378.7 MB Notification: Performance of matching and sorting (n=66): time 0.001994/0.3599, allocations: 1.694 MB / 0.5886 GB, free: 4.902 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.456e-05/0.3599, allocations: 67.91 kB / 0.5887 GB, free: 4.82 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001007/0.3609, allocations: 1.049 MB / 0.5897 GB, free: 3.984 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.233e-05/0.361, allocations: 39.77 kB / 0.5897 GB, free: 3.949 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004089/0.3614, allocations: 0.7422 MB / 0.5905 GB, free: 3.547 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001578/0.3616, allocations: 234.2 kB / 0.5907 GB, free: 3.344 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.991e-05/0.3616, allocations: 14.44 kB / 0.5907 GB, free: 3.34 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.977e-05/0.3617, allocations: 328.1 kB / 0.591 GB, free: 3.023 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000558/0.3623, allocations: 489.4 kB / 0.5915 GB, free: 2.664 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006166/0.3629, allocations: 0.5842 MB / 0.5921 GB, free: 2.184 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006059/0.3635, allocations: 0.5151 MB / 0.5926 GB, free: 1.82 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.3636, allocations: 0 / 0.5926 GB, free: 1.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001494/0.3651, allocations: 1.295 MB / 0.5938 GB, free: 0.8047 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/0.3651, allocations: 8.031 kB / 0.5938 GB, free: 0.7969 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.3651, allocations: 4 kB / 0.5938 GB, free: 0.793 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.601e-05/0.3651, allocations: 7.938 kB / 0.5938 GB, free: 0.7852 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004551/0.3656, allocations: 150.4 kB / 0.594 GB, free: 0.6445 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.211e-05/0.3656, allocations: 11.95 kB / 0.594 GB, free: 0.6328 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002158/0.3658, allocations: 41.72 kB / 0.594 GB, free: 0.6016 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.252e-05/0.3659, allocations: 75.09 kB / 0.5941 GB, free: 0.5352 MB / 378.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.0003841/0.3663, allocations: 359.9 kB / 0.5945 GB, free: 264 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001498/0.3665, allocations: 134.2 kB / 0.5946 GB, free: 128 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002027/0.3685, allocations: 1.535 MB / 0.5961 GB, free: 14.95 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.3685, allocations: 4 kB / 0.5961 GB, free: 14.95 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.3685, allocations: 4 kB / 0.5961 GB, free: 14.94 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/0.3685, allocations: 7.938 kB / 0.5961 GB, free: 14.93 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002556/0.3711, allocations: 2.442 MB / 0.5985 GB, free: 13.01 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.3711, allocations: 4 kB / 0.5985 GB, free: 13.01 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004771/0.3716, allocations: 135 kB / 0.5986 GB, free: 12.88 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.3716, allocations: 4 kB / 0.5986 GB, free: 12.88 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.068e-05/0.3717, allocations: 19.25 kB / 0.5986 GB, free: 12.87 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.042e-06/0.3717, allocations: 11.94 kB / 0.5986 GB, free: 12.86 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3717, allocations: 0 / 0.5986 GB, free: 12.86 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00221/0.3739, allocations: 2.096 MB / 0.6007 GB, free: 11.27 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001686/0.3741, allocations: 198.5 kB / 0.6009 GB, free: 11.05 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.046e-05/0.3742, allocations: 18.92 kB / 0.6009 GB, free: 11.04 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002011/0.3744, allocations: 15.62 kB / 0.6009 GB, free: 11.04 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.795e-05/0.3745, allocations: 55.58 kB / 0.601 GB, free: 10.99 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.18e-05/0.3745, allocations: 62.73 kB / 0.601 GB, free: 10.93 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0007823/0.3753, allocations: 0.843 MB / 0.6019 GB, free: 10.28 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3753, allocations: 0 / 0.6019 GB, free: 10.28 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004577/0.3758, allocations: 206.6 kB / 0.602 GB, free: 10.1 MB / 394.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.0001421/0.3759, allocations: 121.9 kB / 0.6022 GB, free: 9.98 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0008762/0.3768, allocations: 0.9381 MB / 0.6031 GB, free: 9.23 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.3768, allocations: 0 / 0.6031 GB, free: 9.23 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004187/0.3773, allocations: 491.4 kB / 0.6035 GB, free: 8.844 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003748/0.3776, allocations: 81.88 kB / 0.6036 GB, free: 8.809 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002937/0.3806, allocations: 3.098 MB / 0.6067 GB, free: 5.895 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007158/0.3813, allocations: 1.317 MB / 0.6079 GB, free: 4.586 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001882/0.3815, allocations: 76.34 kB / 0.608 GB, free: 4.508 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001027/0.3816, allocations: 42.81 kB / 0.6081 GB, free: 4.469 MB / 394.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3816, allocations: 4 kB / 0.6081 GB, free: 4.465 MB / 394.7 MB Notification: Performance of Templates: time 0.009009/0.3906, allocations: 4.571 MB / 0.6125 GB, free: 15.93 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)