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.001359/0.001359, allocations: 105.6 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.001218/0.001218, allocations: 187 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.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1672/0.1672, allocations: 28.78 MB / 320 MB, free: 1.887 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001155/0.001155, allocations: 63.89 kB / 445 MB, free: 2.527 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1085, allocations: 56.42 MB / 0.4897 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.005066/0.1136, allocations: 3.645 MB / 0.4932 GB, free: 6.398 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001847/0.1155, allocations: 0.6779 MB / 0.4939 GB, free: 5.719 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007378/0.1163, allocations: 16 kB / 0.4939 GB, free: 5.703 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005064/0.1168, allocations: 174.3 kB / 0.4941 GB, free: 5.531 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003737/0.1172, allocations: 138.8 kB / 0.4942 GB, free: 5.395 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007507/0.1179, allocations: 351.6 kB / 0.4945 GB, free: 5.051 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007728/0.1187, allocations: 0.8599 MB / 0.4954 GB, free: 4.188 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007858/0.1195, allocations: 0.6364 MB / 0.496 GB, free: 3.512 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002909/0.1198, allocations: 338.4 kB / 0.4963 GB, free: 3.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003067/0.1201, allocations: 413.6 kB / 0.4967 GB, free: 2.773 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001273/0.1203, allocations: 84 kB / 0.4968 GB, free: 2.691 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001823/0.1205, allocations: 116 kB / 0.4969 GB, free: 2.578 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003246/0.1208, allocations: 434.5 kB / 0.4973 GB, free: 2.152 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004023/0.1212, allocations: 0.6125 MB / 0.4979 GB, free: 1.535 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001054/0.1223, allocations: 1.252 MB / 0.4992 GB, free: 284 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.254e-06/0.1223, allocations: 0 / 0.4992 GB, free: 284 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1223, allocations: 3.938 kB / 0.4992 GB, free: 280 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.225e-05/0.1223, allocations: 0 / 0.4992 GB, free: 280 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.002105/0.1244, allocations: 1.776 MB / 0.5009 GB, free: 14.43 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.1245, allocations: 12.03 kB / 0.5009 GB, free: 14.42 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001924/0.1247, allocations: 194.5 kB / 0.5011 GB, free: 14.23 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008603/0.1255, allocations: 0.7667 MB / 0.5018 GB, free: 13.41 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.08e-05/0.1256, allocations: 74.44 kB / 0.5019 GB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000115/0.1257, allocations: 104.4 kB / 0.502 GB, free: 13.24 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001499/0.1272, allocations: 1.158 MB / 0.5031 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.854e-05/0.1273, allocations: 192 / 0.5031 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.455e-05/0.1273, allocations: 43.94 kB / 0.5032 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.015e-05/0.1273, allocations: 24 kB / 0.5032 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001362/0.1287, allocations: 1.101 MB / 0.5043 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003966/0.1327, allocations: 3.638 MB / 0.5078 GB, free: 7.102 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001465/0.1342, allocations: 1.33 MB / 0.5091 GB, free: 5.758 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005116/0.1347, allocations: 490.3 kB / 0.5096 GB, free: 5.277 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.911e-05/0.1348, allocations: 24.77 kB / 0.5096 GB, free: 5.254 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.72e-05/0.1348, allocations: 39.12 kB / 0.5097 GB, free: 5.207 MB / 398.1 MB Notification: Performance of pre-optimization done (n=67): time 2.244e-06/0.1348, allocations: 0 / 0.5097 GB, free: 5.207 MB / 398.1 MB Notification: Performance of matching and sorting (n=67): time 0.001707/0.1365, allocations: 1.524 MB / 0.5111 GB, free: 3.676 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.836e-05/0.1366, allocations: 59.97 kB / 0.5112 GB, free: 3.605 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001299/0.1379, allocations: 1.292 MB / 0.5125 GB, free: 2.305 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.623e-05/0.1379, allocations: 37.7 kB / 0.5125 GB, free: 2.262 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005381/0.1385, allocations: 0.7676 MB / 0.5132 GB, free: 1.484 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001663/0.1386, allocations: 228.7 kB / 0.5135 GB, free: 1.258 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001552/0.1388, allocations: 114.2 kB / 0.5136 GB, free: 1.141 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.1389, allocations: 337.9 kB / 0.5139 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004791/0.1394, allocations: 433.1 kB / 0.5143 GB, free: 392 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.218/0.3574, allocations: 0.5236 MB / 0.5148 GB, free: 26.83 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001357/0.3588, allocations: 0.9945 MB / 0.5158 GB, free: 26.73 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.3588, allocations: 4.906 kB / 0.5158 GB, free: 26.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001336/0.3602, allocations: 1.178 MB / 0.5169 GB, free: 26.69 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.131e-05/0.3602, allocations: 8.531 kB / 0.517 GB, free: 26.69 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/0.3602, allocations: 3.219 kB / 0.517 GB, free: 26.69 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.49e-05/0.3602, allocations: 4.75 kB / 0.517 GB, free: 26.69 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004415/0.3607, allocations: 129.3 kB / 0.5171 GB, free: 26.69 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.302e-05/0.3607, allocations: 7.656 kB / 0.5171 GB, free: 26.69 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002379/0.3609, allocations: 58.64 kB / 0.5172 GB, free: 26.69 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.832e-05/0.361, allocations: 26.34 kB / 0.5172 GB, free: 26.69 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.0004802/0.3615, allocations: 379.4 kB / 0.5175 GB, free: 26.57 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001402/0.3616, allocations: 145.4 kB / 0.5177 GB, free: 26.57 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001445/0.3631, allocations: 1.188 MB / 0.5188 GB, free: 26.51 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.736e-06/0.3631, allocations: 10.98 kB / 0.5188 GB, free: 26.51 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.3631, allocations: 0 / 0.5188 GB, free: 26.51 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.543e-06/0.3631, allocations: 3.422 kB / 0.5189 GB, free: 26.51 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002538/0.3657, allocations: 2.36 MB / 0.5212 GB, free: 26.19 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.3657, allocations: 0 / 0.5212 GB, free: 26.19 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004262/0.3661, allocations: 112.1 kB / 0.5213 GB, free: 26.19 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.089e-06/0.3661, allocations: 2.938 kB / 0.5213 GB, free: 26.19 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.191e-05/0.3662, allocations: 18.22 kB / 0.5213 GB, free: 26.19 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.441e-06/0.3662, allocations: 6.75 kB / 0.5213 GB, free: 26.18 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.3662, allocations: 1.812 kB / 0.5213 GB, free: 26.18 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002048/0.3682, allocations: 1.871 MB / 0.5231 GB, free: 25.97 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000131/0.3684, allocations: 198.5 kB / 0.5233 GB, free: 25.8 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.715e-05/0.3684, allocations: 13.66 kB / 0.5233 GB, free: 25.8 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000207/0.3687, allocations: 20.28 kB / 0.5233 GB, free: 25.8 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.062e-05/0.3688, allocations: 37.73 kB / 0.5234 GB, free: 25.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.146e-05/0.3688, allocations: 20.69 kB / 0.5234 GB, free: 25.8 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001139/0.3699, allocations: 0.8957 MB / 0.5243 GB, free: 25.69 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3699, allocations: 0 / 0.5243 GB, free: 25.69 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000549/0.3705, allocations: 209.2 kB / 0.5245 GB, free: 25.66 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.0001752/0.3707, allocations: 120.8 kB / 0.5246 GB, free: 25.57 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001231/0.3719, allocations: 0.9834 MB / 0.5255 GB, free: 25.56 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.654e-06/0.3719, allocations: 4.922 kB / 0.5255 GB, free: 25.56 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005693/0.3725, allocations: 0.506 MB / 0.526 GB, free: 25.55 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005523/0.3731, allocations: 95.2 kB / 0.5261 GB, free: 25.55 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0036/0.3767, allocations: 2.841 MB / 0.5289 GB, free: 24.38 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008533/0.3775, allocations: 1.312 MB / 0.5302 GB, free: 23.62 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000157/0.3777, allocations: 52.47 kB / 0.5302 GB, free: 23.61 MB / 398.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3777, allocations: 5.375 kB / 0.5302 GB, free: 23.61 MB / 398.1 MB Notification: Performance of Templates: time 0.01838/0.3961, allocations: 11.05 MB / 0.541 GB, free: 19.96 MB / 398.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)