Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.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_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.003979/0.003979, allocations: 98.56 kB / 15.73 MB, free: 6.059 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.0009921/0.0009921, allocations: 195.6 kB / 16.68 MB, free: 5.977 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.216/1.216, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.258/0.258, allocations: 28.81 MB / 319.3 MB, free: 5.617 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001051/0.001051, allocations: 60.69 kB / 444.4 MB, free: 36.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08267/0.08374, allocations: 56.43 MB / 0.489 GB, free: 8.551 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.003514/0.08729, allocations: 3.644 MB / 0.4926 GB, free: 5.625 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001004/0.0883, allocations: 0.6772 MB / 0.4933 GB, free: 5.055 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002648/0.08858, allocations: 17.28 kB / 0.4933 GB, free: 5.051 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000328/0.08891, allocations: 173.9 kB / 0.4935 GB, free: 4.91 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002796/0.08921, allocations: 137.8 kB / 0.4936 GB, free: 4.809 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005159/0.08973, allocations: 349.3 kB / 0.4939 GB, free: 4.531 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005547/0.09029, allocations: 0.8531 MB / 0.4947 GB, free: 3.949 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005457/0.09085, allocations: 0.6403 MB / 0.4954 GB, free: 3.27 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001618/0.09102, allocations: 338.3 kB / 0.4957 GB, free: 2.938 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001934/0.09122, allocations: 421.6 kB / 0.4961 GB, free: 2.523 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.284e-05/0.09132, allocations: 84 kB / 0.4962 GB, free: 2.441 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001447/0.09147, allocations: 120 kB / 0.4963 GB, free: 2.324 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001981/0.09167, allocations: 434.4 kB / 0.4967 GB, free: 1.898 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002311/0.09191, allocations: 0.6126 MB / 0.4973 GB, free: 1.281 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007019/0.09262, allocations: 1.262 MB / 0.4985 GB, free: 12 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.09263, allocations: 0 / 0.4985 GB, free: 12 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.09263, allocations: 0 / 0.4985 GB, free: 12 kB / 366.1 MB Notification: Performance of Transformations before backend: time 1.053e-05/0.09265, allocations: 0 / 0.4985 GB, free: 12 kB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.001853/0.0945, allocations: 1.841 MB / 0.5003 GB, free: 14.11 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.09455, allocations: 12.03 kB / 0.5003 GB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001809/0.09473, allocations: 203.6 kB / 0.5005 GB, free: 13.89 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007924/0.09553, allocations: 0.7759 MB / 0.5013 GB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.9e-05/0.09559, allocations: 74.44 kB / 0.5014 GB, free: 13 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001072/0.0957, allocations: 104.4 kB / 0.5015 GB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001513/0.09722, allocations: 1.162 MB / 0.5026 GB, free: 11.67 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.12e-05/0.09725, allocations: 192 / 0.5026 GB, free: 11.67 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.286e-05/0.09732, allocations: 43.94 kB / 0.5026 GB, free: 11.62 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.975e-05/0.09735, allocations: 24 kB / 0.5027 GB, free: 11.6 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001382/0.09873, allocations: 1.097 MB / 0.5037 GB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003685/0.1024, allocations: 3.655 MB / 0.5073 GB, free: 6.742 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001386/0.1038, allocations: 1.33 MB / 0.5086 GB, free: 5.398 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004832/0.1043, allocations: 482.3 kB / 0.5091 GB, free: 4.926 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.129e-05/0.1044, allocations: 32.75 kB / 0.5091 GB, free: 4.895 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.257e-05/0.1044, allocations: 39.12 kB / 0.5091 GB, free: 4.848 MB / 382.1 MB Notification: Performance of pre-optimization done (n=67): time 1.603e-06/0.1044, allocations: 0 / 0.5091 GB, free: 4.848 MB / 382.1 MB Notification: Performance of matching and sorting (n=67): time 0.001605/0.106, allocations: 1.525 MB / 0.5106 GB, free: 3.316 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.11e-05/0.1061, allocations: 59.97 kB / 0.5107 GB, free: 3.246 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001218/0.1073, allocations: 1.289 MB / 0.5119 GB, free: 1.949 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.973e-05/0.1073, allocations: 33.7 kB / 0.512 GB, free: 1.91 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004904/0.1078, allocations: 0.7766 MB / 0.5127 GB, free: 1.125 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001467/0.108, allocations: 245.9 kB / 0.513 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001444/0.1081, allocations: 114.3 kB / 0.5131 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001044/0.1083, allocations: 333.9 kB / 0.5134 GB, free: 444 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004595/0.1087, allocations: 433.1 kB / 0.5138 GB, free: 12 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005403/0.1093, allocations: 0.5394 MB / 0.5143 GB, free: 15.44 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001026/0.1103, allocations: 0.9861 MB / 0.5153 GB, free: 14.42 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.1103, allocations: 4 kB / 0.5153 GB, free: 14.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001243/0.1116, allocations: 1.195 MB / 0.5165 GB, free: 13.21 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.1116, allocations: 8 kB / 0.5165 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.1116, allocations: 0 / 0.5165 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.1116, allocations: 11.94 kB / 0.5165 GB, free: 13.19 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004173/0.112, allocations: 127.8 kB / 0.5166 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.1121, allocations: 8 kB / 0.5166 GB, free: 13.06 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002164/0.1123, allocations: 51.94 kB / 0.5167 GB, free: 13.01 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.327e-05/0.1123, allocations: 24 kB / 0.5167 GB, free: 12.98 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 (82): * Single equations (assignments): 82 * 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.0003939/0.1127, allocations: 389.1 kB / 0.5171 GB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001339/0.1129, allocations: 147 kB / 0.5172 GB, free: 12.45 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001325/0.1142, allocations: 1.189 MB / 0.5184 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.1142, allocations: 8 kB / 0.5184 GB, free: 11.24 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.1142, allocations: 0 / 0.5184 GB, free: 11.24 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.1142, allocations: 3.984 kB / 0.5184 GB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00229/0.1165, allocations: 2.368 MB / 0.5207 GB, free: 8.809 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.1165, allocations: 0 / 0.5207 GB, free: 8.809 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004076/0.117, allocations: 111.8 kB / 0.5208 GB, free: 8.699 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.117, allocations: 0 / 0.5208 GB, free: 8.699 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.669e-05/0.117, allocations: 23.98 kB / 0.5208 GB, free: 8.676 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.117, allocations: 0 / 0.5208 GB, free: 8.676 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.117, allocations: 4 kB / 0.5208 GB, free: 8.672 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001824/0.1188, allocations: 1.88 MB / 0.5227 GB, free: 6.77 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001647/0.119, allocations: 208 kB / 0.5229 GB, free: 6.547 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.123e-05/0.1191, allocations: 12.06 kB / 0.5229 GB, free: 6.535 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002041/0.1193, allocations: 12 kB / 0.5229 GB, free: 6.523 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.376e-05/0.1194, allocations: 44.44 kB / 0.5229 GB, free: 6.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.783e-05/0.1194, allocations: 16 kB / 0.5229 GB, free: 6.465 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009092/0.1203, allocations: 0.8928 MB / 0.5238 GB, free: 5.574 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.1203, allocations: 0 / 0.5238 GB, free: 5.574 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004483/0.1208, allocations: 219.2 kB / 0.524 GB, free: 5.359 MB / 398.1 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 (67): * Single equations (assignments): 67 * 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.00015/0.121, allocations: 121.2 kB / 0.5241 GB, free: 5.23 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001072/0.122, allocations: 0.9802 MB / 0.5251 GB, free: 4.25 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.122, allocations: 3.938 kB / 0.5251 GB, free: 4.246 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005172/0.1226, allocations: 0.5107 MB / 0.5256 GB, free: 3.734 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005452/0.1231, allocations: 102.6 kB / 0.5257 GB, free: 3.641 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003145/0.1263, allocations: 2.812 MB / 0.5284 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008343/0.1271, allocations: 1.303 MB / 0.5297 GB, free: 15.46 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001991/0.1273, allocations: 76.48 kB / 0.5298 GB, free: 15.39 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001095/0.1274, allocations: 47.42 kB / 0.5298 GB, free: 15.34 MB / 414.1 MB Notification: Performance of SimCode: time 2e-07/0.1275, allocations: 0 / 0.5298 GB, free: 15.34 MB / 414.1 MB Notification: Performance of Templates: time 0.01083/0.1383, allocations: 5.291 MB / 0.535 GB, free: 10.05 MB / 414.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe 2>&1)