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.001446/0.001446, allocations: 108.7 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.001374/0.001374, allocations: 186.7 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.301/1.301, allocations: 222.9 MB / 241 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.1608/0.1608, allocations: 28.78 MB / 320 MB, free: 1.902 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 59.91 kB / 445 MB, free: 2.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09204/0.09328, 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.005393/0.09871, allocations: 3.634 MB / 0.4932 GB, free: 6.406 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001696/0.1004, allocations: 0.6702 MB / 0.4939 GB, free: 5.734 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000568/0.101, allocations: 19.94 kB / 0.4939 GB, free: 5.715 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004785/0.1015, allocations: 162.3 kB / 0.4941 GB, free: 5.555 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004206/0.102, allocations: 130.8 kB / 0.4942 GB, free: 5.426 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007774/0.1027, allocations: 347.5 kB / 0.4945 GB, free: 5.086 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008738/0.1036, allocations: 0.856 MB / 0.4953 GB, free: 4.227 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000795/0.1044, allocations: 0.6325 MB / 0.496 GB, free: 3.555 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002679/0.1047, allocations: 338.3 kB / 0.4963 GB, free: 3.223 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003106/0.105, allocations: 421.6 kB / 0.4967 GB, free: 2.809 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001169/0.1052, allocations: 88 kB / 0.4968 GB, free: 2.723 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002052/0.1054, allocations: 119.9 kB / 0.4969 GB, free: 2.605 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003241/0.1057, allocations: 426.5 kB / 0.4973 GB, free: 2.188 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004149/0.1061, allocations: 0.6048 MB / 0.4979 GB, free: 1.578 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009731/0.1071, allocations: 1.213 MB / 0.4991 GB, free: 368 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.1071, allocations: 4 kB / 0.4991 GB, free: 364 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1071, allocations: 0 / 0.4991 GB, free: 364 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.589e-05/0.1071, allocations: 0 / 0.4991 GB, free: 364 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.001907/0.1091, allocations: 1.733 MB / 0.5008 GB, free: 14.56 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.1091, allocations: 12.03 kB / 0.5008 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002025/0.1093, allocations: 190.5 kB / 0.501 GB, free: 14.36 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008455/0.1102, allocations: 0.7424 MB / 0.5017 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.228e-05/0.1102, allocations: 74.42 kB / 0.5018 GB, free: 13.49 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001055/0.1103, allocations: 100.4 kB / 0.5019 GB, free: 13.39 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001365/0.1117, allocations: 1.13 MB / 0.503 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.245e-05/0.1117, allocations: 192 / 0.503 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.593e-05/0.1118, allocations: 51.94 kB / 0.503 GB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.28e-05/0.1118, allocations: 28 kB / 0.503 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001258/0.1131, allocations: 1.05 MB / 0.5041 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003785/0.1169, allocations: 3.571 MB / 0.5075 GB, free: 7.391 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001406/0.1183, allocations: 1.283 MB / 0.5088 GB, free: 6.098 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004687/0.1188, allocations: 462.4 kB / 0.5092 GB, free: 5.645 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.686e-05/0.1189, allocations: 24.53 kB / 0.5093 GB, free: 5.621 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.969e-05/0.1189, allocations: 47.06 kB / 0.5093 GB, free: 5.566 MB / 398.1 MB Notification: Performance of pre-optimization done (n=66): time 2.535e-06/0.1189, allocations: 0 / 0.5093 GB, free: 5.566 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.001593/0.1205, allocations: 1.442 MB / 0.5107 GB, free: 4.117 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.004e-05/0.1206, allocations: 55.97 kB / 0.5108 GB, free: 4.051 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001197/0.1218, allocations: 1.23 MB / 0.512 GB, free: 2.809 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.886e-05/0.1218, allocations: 41.7 kB / 0.512 GB, free: 2.762 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004899/0.1223, allocations: 0.7478 MB / 0.5127 GB, free: 2.004 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001542/0.1225, allocations: 232.6 kB / 0.513 GB, free: 1.773 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001507/0.1226, allocations: 110.3 kB / 0.5131 GB, free: 1.66 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001058/0.1227, allocations: 330 kB / 0.5134 GB, free: 1.332 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004419/0.1232, allocations: 413.1 kB / 0.5138 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005327/0.1237, allocations: 0.5082 MB / 0.5143 GB, free: 396 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2068/0.3305, allocations: 0.9527 MB / 0.5152 GB, free: 26.62 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.703e-06/0.3305, allocations: 0 / 0.5152 GB, free: 26.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001356/0.3319, allocations: 1.132 MB / 0.5163 GB, free: 26.58 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.3319, allocations: 8.625 kB / 0.5163 GB, free: 26.58 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.3319, allocations: 0 / 0.5163 GB, free: 26.58 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.207e-05/0.332, allocations: 10.7 kB / 0.5163 GB, free: 26.58 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004216/0.3324, allocations: 124.3 kB / 0.5164 GB, free: 26.58 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.31e-05/0.3324, allocations: 10.36 kB / 0.5165 GB, free: 26.58 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002681/0.3327, allocations: 54.41 kB / 0.5165 GB, free: 26.58 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.508e-05/0.3327, allocations: 23.8 kB / 0.5165 GB, free: 26.58 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.0004494/0.3332, allocations: 364.5 kB / 0.5169 GB, free: 26.46 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001362/0.3333, allocations: 132.9 kB / 0.517 GB, free: 26.46 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001288/0.3346, allocations: 1.144 MB / 0.5181 GB, free: 26.4 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.3347, allocations: 5.203 kB / 0.5181 GB, free: 26.4 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.215e-06/0.3347, allocations: 3.547 kB / 0.5181 GB, free: 26.4 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001601/0.3348, allocations: 198 kB / 0.5183 GB, free: 26.27 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.397e-05/0.3349, allocations: 15.83 kB / 0.5183 GB, free: 26.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002003/0.3351, allocations: 10.16 kB / 0.5183 GB, free: 26.27 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.051e-05/0.3352, allocations: 42.97 kB / 0.5184 GB, free: 26.27 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001215/0.3364, allocations: 1.068 MB / 0.5194 GB, free: 26.14 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001718/0.3381, allocations: 1.868 MB / 0.5213 GB, free: 25.84 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005031/0.3387, allocations: 484.5 kB / 0.5217 GB, free: 25.83 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001004/0.3397, allocations: 0.8555 MB / 0.5225 GB, free: 25.72 MB / 398.1 MB Notification: Performance of Backend: time 1.283e-06/0.3397, allocations: 0 / 0.5225 GB, free: 25.72 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001129/0.3408, allocations: 0.6234 MB / 0.5232 GB, free: 25.65 MB / 398.1 MB Notification: Performance of SimCode: time 0.003127/0.3439, allocations: 2.795 MB / 0.5259 GB, free: 24.21 MB / 398.1 MB Notification: Performance of Templates: time 0.01606/0.36, allocations: 7.474 MB / 0.5332 GB, free: 23.64 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)