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.001366/0.001366, allocations: 108.4 kB / 16.41 MB, free: 6.438 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.001192/0.001192, allocations: 189.6 kB / 17.34 MB, free: 5.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.337/1.337, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.175/0.175, allocations: 28.79 MB / 320 MB, free: 1.906 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 59.91 kB / 445 MB, free: 2.531 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1066, allocations: 56.42 MB / 0.4897 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.004405/0.111, allocations: 3.654 MB / 0.4932 GB, free: 6.387 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001501/0.1126, allocations: 0.6935 MB / 0.4939 GB, free: 5.691 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003238/0.1129, allocations: 12 kB / 0.4939 GB, free: 5.68 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004007/0.1133, allocations: 178.3 kB / 0.4941 GB, free: 5.504 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002845/0.1136, allocations: 138.8 kB / 0.4942 GB, free: 5.367 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006707/0.1143, allocations: 359.6 kB / 0.4946 GB, free: 5.016 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007724/0.1151, allocations: 0.8717 MB / 0.4954 GB, free: 4.141 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007778/0.1159, allocations: 0.6364 MB / 0.4961 GB, free: 3.465 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002811/0.1162, allocations: 338.4 kB / 0.4964 GB, free: 3.133 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003211/0.1165, allocations: 425.6 kB / 0.4968 GB, free: 2.715 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001201/0.1166, allocations: 84 kB / 0.4969 GB, free: 2.633 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001797/0.1168, allocations: 112 kB / 0.497 GB, free: 2.523 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003426/0.1172, allocations: 458.4 kB / 0.4974 GB, free: 2.074 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004022/0.1176, allocations: 0.628 MB / 0.498 GB, free: 1.441 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001108/0.1187, allocations: 1.291 MB / 0.4993 GB, free: 148 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.1187, allocations: 0 / 0.4993 GB, free: 148 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1187, allocations: 0 / 0.4993 GB, free: 148 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.806e-05/0.1187, allocations: 4 kB / 0.4993 GB, free: 144 kB / 382.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.002063/0.1208, allocations: 1.815 MB / 0.5011 GB, free: 14.26 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/0.1208, allocations: 11.89 kB / 0.5011 GB, free: 14.25 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002127/0.1211, allocations: 214.3 kB / 0.5013 GB, free: 14.04 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008357/0.1219, allocations: 0.7626 MB / 0.502 GB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.948e-05/0.122, allocations: 82.47 kB / 0.5021 GB, free: 13.14 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001093/0.1221, allocations: 104.4 kB / 0.5022 GB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001626/0.1237, allocations: 1.282 MB / 0.5034 GB, free: 11.69 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.111e-05/0.1238, allocations: 4.188 kB / 0.5034 GB, free: 11.69 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.564e-05/0.1238, allocations: 51.88 kB / 0.5035 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.522e-05/0.1239, allocations: 43.98 kB / 0.5035 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001519/0.1254, allocations: 1.226 MB / 0.5047 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004107/0.1295, allocations: 3.885 MB / 0.5085 GB, free: 6.359 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001456/0.131, allocations: 1.362 MB / 0.5099 GB, free: 4.973 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005348/0.1316, allocations: 499.2 kB / 0.5103 GB, free: 4.48 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.434e-05/0.1316, allocations: 36.77 kB / 0.5104 GB, free: 4.445 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.78e-05/0.1317, allocations: 43.11 kB / 0.5104 GB, free: 4.395 MB / 398.1 MB Notification: Performance of pre-optimization done (n=70): time 2.715e-06/0.1317, allocations: 0 / 0.5104 GB, free: 4.395 MB / 398.1 MB Notification: Performance of matching and sorting (n=70): time 0.001847/0.1335, allocations: 1.551 MB / 0.5119 GB, free: 2.836 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.955e-05/0.1336, allocations: 85.8 kB / 0.512 GB, free: 2.734 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001352/0.135, allocations: 1.374 MB / 0.5134 GB, free: 1.352 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.525e-05/0.135, allocations: 33.7 kB / 0.5134 GB, free: 1.312 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005572/0.1356, allocations: 0.8409 MB / 0.5142 GB, free: 472 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001668/0.1357, allocations: 244.4 kB / 0.5144 GB, free: 224 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001787/0.1359, allocations: 154.6 kB / 0.5146 GB, free: 64 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.232/0.3679, allocations: 337.9 kB / 0.5149 GB, free: 27.29 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009584/0.369, allocations: 469.8 kB / 0.5154 GB, free: 27.29 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007568/0.3697, allocations: 0.7171 MB / 0.5161 GB, free: 27 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001202/0.3709, allocations: 1.239 MB / 0.5173 GB, free: 26.71 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-06/0.371, allocations: 5.031 kB / 0.5173 GB, free: 26.71 MB / 398.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.001771/0.3727, allocations: 1.384 MB / 0.5186 GB, free: 26.66 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.578e-05/0.3728, allocations: 10.38 kB / 0.5186 GB, free: 26.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.489e-05/0.3728, allocations: 7.531 kB / 0.5186 GB, free: 26.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.054e-05/0.3728, allocations: 12.38 kB / 0.5187 GB, free: 26.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005648/0.3734, allocations: 189.4 kB / 0.5188 GB, free: 26.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.277e-05/0.3734, allocations: 18.39 kB / 0.5189 GB, free: 26.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003432/0.3738, allocations: 83.91 kB / 0.5189 GB, free: 26.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.22e-05/0.3738, allocations: 44.58 kB / 0.519 GB, free: 26.66 MB / 398.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005183/0.3744, allocations: 402.4 kB / 0.5194 GB, free: 26.54 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001503/0.3745, allocations: 153.2 kB / 0.5195 GB, free: 26.54 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00155/0.3761, allocations: 1.244 MB / 0.5207 GB, free: 26.48 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.448e-06/0.3761, allocations: 7.188 kB / 0.5207 GB, free: 26.48 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.754e-06/0.3761, allocations: 4.906 kB / 0.5207 GB, free: 26.48 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.678e-05/0.3761, allocations: 3.891 kB / 0.5207 GB, free: 26.48 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002973/0.3791, allocations: 2.397 MB / 0.5231 GB, free: 26.15 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.618e-06/0.3791, allocations: 1.781 kB / 0.5231 GB, free: 26.15 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004621/0.3796, allocations: 120.2 kB / 0.5232 GB, free: 26.14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.046e-05/0.3796, allocations: 12.88 kB / 0.5232 GB, free: 26.14 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.541e-05/0.3797, allocations: 21.5 kB / 0.5232 GB, free: 26.14 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.921e-06/0.3797, allocations: 4.672 kB / 0.5232 GB, free: 26.14 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.3797, allocations: 0.5625 kB / 0.5232 GB, free: 26.14 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00215/0.3818, allocations: 1.982 MB / 0.5252 GB, free: 25.86 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001529/0.382, allocations: 209.7 kB / 0.5254 GB, free: 25.68 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.463e-05/0.3821, allocations: 17.44 kB / 0.5254 GB, free: 25.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002599/0.3823, allocations: 17.44 kB / 0.5254 GB, free: 25.67 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000101/0.3825, allocations: 50.34 kB / 0.5254 GB, free: 25.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.784e-05/0.3825, allocations: 24.98 kB / 0.5255 GB, free: 25.66 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001188/0.3837, allocations: 0.9329 MB / 0.5264 GB, free: 25.42 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3837, allocations: 0 / 0.5264 GB, free: 25.42 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007657/0.3845, allocations: 225.8 kB / 0.5266 GB, free: 25.37 MB / 398.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001677/0.3846, allocations: 117.5 kB / 0.5267 GB, free: 25.27 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001444/0.3861, allocations: 1.093 MB / 0.5278 GB, free: 25.03 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.3861, allocations: 0 / 0.5278 GB, free: 25.03 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007029/0.3868, allocations: 0.5253 MB / 0.5283 GB, free: 24.9 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000649/0.3875, allocations: 96.12 kB / 0.5284 GB, free: 24.84 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00356/0.391, allocations: 2.953 MB / 0.5313 GB, free: 23.5 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008407/0.3919, allocations: 1.329 MB / 0.5326 GB, free: 22.74 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000223/0.3921, allocations: 71.42 kB / 0.5326 GB, free: 22.73 MB / 398.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3921, allocations: 0 / 0.5326 GB, free: 22.73 MB / 398.1 MB Notification: Performance of Templates: time 0.02325/0.4154, allocations: 11.91 MB / 0.5443 GB, free: 18.39 MB / 398.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.makefile (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)