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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001179/0.001179, allocations: 106.3 kB / 16.41 MB, free: 6.512 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.001323/0.001323, allocations: 192.3 kB / 17.35 MB, free: 5.738 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.387/1.387, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1927/0.1927, allocations: 28.78 MB / 320 MB, free: 1.91 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001503, allocations: 67.89 kB / 445 MB, free: 2.527 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1223, allocations: 56.41 MB / 0.4897 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.005466/0.1278, allocations: 3.638 MB / 0.4932 GB, free: 6.41 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002129/0.13, allocations: 0.6702 MB / 0.4939 GB, free: 5.738 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007714/0.1308, allocations: 16 kB / 0.4939 GB, free: 5.723 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005807/0.1314, allocations: 166.3 kB / 0.4941 GB, free: 5.559 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000601/0.132, allocations: 130.8 kB / 0.4942 GB, free: 5.43 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009423/0.133, allocations: 351.6 kB / 0.4945 GB, free: 5.086 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001177/0.1342, allocations: 0.8522 MB / 0.4954 GB, free: 4.23 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001014/0.1352, allocations: 0.6286 MB / 0.496 GB, free: 3.562 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004267/0.1357, allocations: 342.3 kB / 0.4963 GB, free: 3.227 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004574/0.1361, allocations: 417.6 kB / 0.4967 GB, free: 2.816 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001788/0.1363, allocations: 88 kB / 0.4968 GB, free: 2.73 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002378/0.1366, allocations: 111.9 kB / 0.4969 GB, free: 2.621 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004122/0.137, allocations: 430.5 kB / 0.4973 GB, free: 2.199 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005917/0.1376, allocations: 0.6009 MB / 0.4979 GB, free: 1.594 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00133/0.1389, allocations: 1.217 MB / 0.4991 GB, free: 380 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.1389, allocations: 0 / 0.4991 GB, free: 380 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.995e-06/0.1389, allocations: 4 kB / 0.4991 GB, free: 376 kB / 382.1 MB Notification: Performance of Transformations before backend: time 3.603e-05/0.139, allocations: 0 / 0.4991 GB, free: 376 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: 259 * Number of variables: 259 Notification: Performance of Generate backend data structure: time 0.002587/0.1416, allocations: 1.737 MB / 0.5008 GB, free: 14.57 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.209e-05/0.1416, allocations: 8.031 kB / 0.5008 GB, free: 14.56 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003136/0.142, allocations: 190.5 kB / 0.501 GB, free: 14.37 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00128/0.1432, allocations: 0.7464 MB / 0.5017 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.005e-05/0.1433, allocations: 74.42 kB / 0.5018 GB, free: 13.5 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001368/0.1435, allocations: 100.4 kB / 0.5019 GB, free: 13.4 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001946/0.1454, allocations: 1.134 MB / 0.503 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.01e-05/0.1455, allocations: 12.12 kB / 0.503 GB, free: 12.19 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.247e-05/0.1456, allocations: 43.94 kB / 0.503 GB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.203e-05/0.1456, allocations: 24 kB / 0.503 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00175/0.1474, allocations: 1.046 MB / 0.5041 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006149/0.1535, allocations: 3.578 MB / 0.5076 GB, free: 7.391 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001785/0.1553, allocations: 1.279 MB / 0.5088 GB, free: 6.102 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005332/0.1559, allocations: 454.4 kB / 0.5092 GB, free: 5.656 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.69e-05/0.156, allocations: 32.75 kB / 0.5093 GB, free: 5.625 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.955e-05/0.156, allocations: 43.12 kB / 0.5093 GB, free: 5.574 MB / 398.1 MB Notification: Performance of pre-optimization done (n=66): time 3.397e-06/0.156, allocations: 0 / 0.5093 GB, free: 5.574 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.001947/0.158, allocations: 1.446 MB / 0.5107 GB, free: 4.121 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.053e-05/0.158, allocations: 59.97 kB / 0.5108 GB, free: 4.051 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001521/0.1596, allocations: 1.226 MB / 0.512 GB, free: 2.812 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.233e-05/0.1596, allocations: 37.7 kB / 0.512 GB, free: 2.77 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005248/0.1602, allocations: 0.7479 MB / 0.5127 GB, free: 2.012 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001883/0.1604, allocations: 228.6 kB / 0.513 GB, free: 1.785 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001615/0.1605, allocations: 118.3 kB / 0.5131 GB, free: 1.664 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.1606, allocations: 330 kB / 0.5134 GB, free: 1.336 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004688/0.1611, allocations: 417.1 kB / 0.5138 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005126/0.1616, allocations: 0.5004 MB / 0.5143 GB, free: 404 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.301/0.4626, allocations: 0.952 MB / 0.5152 GB, free: 26.67 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.783e-06/0.4627, allocations: 1.828 kB / 0.5152 GB, free: 26.67 MB / 398.1 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001771/0.4645, allocations: 1.133 MB / 0.5163 GB, free: 26.62 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.266e-05/0.4645, allocations: 10 kB / 0.5163 GB, free: 26.62 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.525e-05/0.4645, allocations: 3.406 kB / 0.5163 GB, free: 26.62 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.937e-05/0.4646, allocations: 5 kB / 0.5163 GB, free: 26.62 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00049/0.4651, allocations: 127 kB / 0.5165 GB, free: 26.62 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.229e-05/0.4651, allocations: 7.984 kB / 0.5165 GB, free: 26.62 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002745/0.4654, allocations: 52.8 kB / 0.5165 GB, free: 26.62 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.725e-05/0.4654, allocations: 21.06 kB / 0.5165 GB, free: 26.62 MB / 398.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006276/0.4661, allocations: 372.3 kB / 0.5169 GB, free: 26.5 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00018/0.4662, allocations: 134.2 kB / 0.517 GB, free: 26.5 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00209/0.4683, allocations: 1.139 MB / 0.5181 GB, free: 26.45 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.68e-05/0.4684, allocations: 8.656 kB / 0.5181 GB, free: 26.45 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.4684, allocations: 3.031 kB / 0.5181 GB, free: 26.45 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002369/0.4686, allocations: 197.3 kB / 0.5183 GB, free: 26.31 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.357e-05/0.4687, allocations: 18.05 kB / 0.5183 GB, free: 26.31 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002112/0.4689, allocations: 13.66 kB / 0.5184 GB, free: 26.31 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.742e-05/0.469, allocations: 42.48 kB / 0.5184 GB, free: 26.31 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001619/0.4707, allocations: 1.066 MB / 0.5194 GB, free: 26.19 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002141/0.4728, allocations: 1.868 MB / 0.5213 GB, free: 25.88 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006194/0.4734, allocations: 481.1 kB / 0.5217 GB, free: 25.87 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001366/0.4748, allocations: 0.8558 MB / 0.5226 GB, free: 25.76 MB / 398.1 MB Notification: Performance of Backend: time 7.51e-07/0.4748, allocations: 0 / 0.5226 GB, free: 25.76 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001394/0.4762, allocations: 0.6223 MB / 0.5232 GB, free: 25.69 MB / 398.1 MB Notification: Performance of SimCode: time 0.003767/0.48, allocations: 2.804 MB / 0.5259 GB, free: 24.25 MB / 398.1 MB Notification: Performance of Templates: time 0.01959/0.4996, allocations: 7.465 MB / 0.5332 GB, free: 23.71 MB / 398.1 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)