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.001408/0.001408, allocations: 110 kB / 16.41 MB, free: 6.508 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.001201/0.001201, allocations: 189.7 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.335/1.335, 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.1767/0.1767, allocations: 28.78 MB / 320 MB, free: 1.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002425/0.002426, allocations: 63.91 kB / 445 MB, free: 2.539 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1326/0.1351, allocations: 56.43 MB / 0.4897 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.005224/0.1403, allocations: 3.657 MB / 0.4933 GB, free: 6.383 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002154/0.1425, allocations: 0.6896 MB / 0.4939 GB, free: 5.691 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009086/0.1435, allocations: 12 kB / 0.4939 GB, free: 5.68 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007416/0.1442, allocations: 186.3 kB / 0.4941 GB, free: 5.496 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008345/0.1451, allocations: 138.8 kB / 0.4943 GB, free: 5.359 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001115/0.1463, allocations: 355.6 kB / 0.4946 GB, free: 5.012 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001375/0.1477, allocations: 0.864 MB / 0.4954 GB, free: 4.145 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001093/0.1488, allocations: 0.6403 MB / 0.4961 GB, free: 3.465 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000396/0.1492, allocations: 342.4 kB / 0.4964 GB, free: 3.129 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004642/0.1497, allocations: 421.6 kB / 0.4968 GB, free: 2.715 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002073/0.1499, allocations: 92 kB / 0.4969 GB, free: 2.625 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002618/0.1502, allocations: 116 kB / 0.497 GB, free: 2.512 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003844/0.1505, allocations: 442.4 kB / 0.4974 GB, free: 2.078 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005011/0.1511, allocations: 0.6358 MB / 0.498 GB, free: 1.438 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001323/0.1524, allocations: 1.291 MB / 0.4993 GB, free: 144 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1524, allocations: 0 / 0.4993 GB, free: 144 kB / 382.1 MB Notification: Performance of FrontEnd: time 4.128e-06/0.1524, allocations: 0 / 0.4993 GB, free: 144 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.75e-05/0.1524, allocations: 3.938 kB / 0.4993 GB, free: 140 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.002252/0.1547, allocations: 1.819 MB / 0.5011 GB, free: 14.25 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.1548, allocations: 12.03 kB / 0.5011 GB, free: 14.24 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002287/0.155, allocations: 202.3 kB / 0.5013 GB, free: 14.04 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009015/0.1559, allocations: 0.7626 MB / 0.502 GB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.404e-05/0.156, allocations: 82.47 kB / 0.5021 GB, free: 13.15 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001254/0.1561, allocations: 108.4 kB / 0.5022 GB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001732/0.1578, allocations: 1.274 MB / 0.5034 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.663e-05/0.1579, allocations: 4.188 kB / 0.5035 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.518e-05/0.158, allocations: 47.88 kB / 0.5035 GB, free: 11.65 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.165e-05/0.158, allocations: 51.98 kB / 0.5035 GB, free: 11.6 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001588/0.1596, allocations: 1.226 MB / 0.5047 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004623/0.1642, allocations: 3.885 MB / 0.5085 GB, free: 6.363 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001677/0.166, allocations: 1.362 MB / 0.5099 GB, free: 4.977 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005928/0.1666, allocations: 499.4 kB / 0.5103 GB, free: 4.484 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.778e-05/0.1667, allocations: 36.52 kB / 0.5104 GB, free: 4.449 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.083e-05/0.1667, allocations: 39.12 kB / 0.5104 GB, free: 4.402 MB / 398.1 MB Notification: Performance of pre-optimization done (n=70): time 2.876e-06/0.1667, allocations: 0 / 0.5104 GB, free: 4.402 MB / 398.1 MB Notification: Performance of matching and sorting (n=70): time 0.002227/0.1689, allocations: 1.555 MB / 0.5119 GB, free: 2.84 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.827e-05/0.169, allocations: 85.67 kB / 0.512 GB, free: 2.738 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001748/0.1708, allocations: 1.37 MB / 0.5134 GB, free: 1.359 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.999e-05/0.1708, allocations: 37.7 kB / 0.5134 GB, free: 1.316 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006834/0.1715, allocations: 0.8409 MB / 0.5142 GB, free: 476 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002281/0.1718, allocations: 260.5 kB / 0.5145 GB, free: 212 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002225/0.172, allocations: 150.6 kB / 0.5146 GB, free: 56 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.2552/0.4272, allocations: 334 kB / 0.5149 GB, free: 26.72 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001064/0.4283, allocations: 473.7 kB / 0.5154 GB, free: 26.72 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008171/0.4292, allocations: 0.7137 MB / 0.5161 GB, free: 26.43 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001227/0.4304, allocations: 1.239 MB / 0.5173 GB, free: 26.14 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.806e-06/0.4304, allocations: 6.219 kB / 0.5173 GB, free: 26.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.001857/0.4323, allocations: 1.386 MB / 0.5186 GB, free: 26.09 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.558e-05/0.4323, allocations: 9.062 kB / 0.5186 GB, free: 26.09 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.667e-05/0.4323, allocations: 7.844 kB / 0.5187 GB, free: 26.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.624e-05/0.4324, allocations: 12.84 kB / 0.5187 GB, free: 26.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006005/0.433, allocations: 187.9 kB / 0.5188 GB, free: 26.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.514e-05/0.433, allocations: 19.5 kB / 0.5189 GB, free: 26.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004141/0.4334, allocations: 82.5 kB / 0.5189 GB, free: 26.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.53e-05/0.4335, allocations: 42.16 kB / 0.519 GB, free: 26.09 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.0005599/0.4341, allocations: 408.4 kB / 0.5194 GB, free: 25.97 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001658/0.4342, allocations: 149.8 kB / 0.5195 GB, free: 25.97 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001693/0.4359, allocations: 1.246 MB / 0.5207 GB, free: 25.91 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.07e-05/0.436, allocations: 8.281 kB / 0.5207 GB, free: 25.91 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.116e-06/0.436, allocations: 4.625 kB / 0.5207 GB, free: 25.91 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.104e-05/0.436, allocations: 7.844 kB / 0.5208 GB, free: 25.91 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003074/0.4391, allocations: 2.391 MB / 0.5231 GB, free: 25.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.4391, allocations: 4.109 kB / 0.5231 GB, free: 25.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004952/0.4396, allocations: 119.4 kB / 0.5232 GB, free: 25.58 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.074e-05/0.4396, allocations: 7.406 kB / 0.5232 GB, free: 25.57 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.149e-05/0.4397, allocations: 18.58 kB / 0.5232 GB, free: 25.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.115e-06/0.4397, allocations: 3.25 kB / 0.5232 GB, free: 25.57 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.4397, allocations: 1.281 kB / 0.5232 GB, free: 25.57 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00251/0.4422, allocations: 1.991 MB / 0.5252 GB, free: 25.29 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002305/0.4424, allocations: 207.3 kB / 0.5254 GB, free: 25.11 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.78e-05/0.4425, allocations: 20.48 kB / 0.5254 GB, free: 25.11 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002801/0.4428, allocations: 14.44 kB / 0.5254 GB, free: 25.11 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001284/0.443, allocations: 42.44 kB / 0.5255 GB, free: 25.1 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.222e-05/0.443, allocations: 31.78 kB / 0.5255 GB, free: 25.1 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001339/0.4444, allocations: 0.9323 MB / 0.5264 GB, free: 24.99 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4444, allocations: 4 kB / 0.5264 GB, free: 24.99 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008442/0.4452, allocations: 224.8 kB / 0.5266 GB, free: 24.96 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.0002117/0.4454, allocations: 117.6 kB / 0.5267 GB, free: 24.87 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00166/0.4471, allocations: 1.091 MB / 0.5278 GB, free: 24.75 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.4471, allocations: 1.062 kB / 0.5278 GB, free: 24.75 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007702/0.4479, allocations: 0.521 MB / 0.5283 GB, free: 24.63 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007017/0.4486, allocations: 102.7 kB / 0.5284 GB, free: 24.57 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004243/0.4529, allocations: 2.953 MB / 0.5313 GB, free: 23.24 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009549/0.4538, allocations: 1.322 MB / 0.5326 GB, free: 22.48 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002595/0.4541, allocations: 74.12 kB / 0.5326 GB, free: 22.46 MB / 398.1 MB Notification: Performance of SimCode: time 1.103e-06/0.4541, allocations: 0 / 0.5326 GB, free: 22.46 MB / 398.1 MB Notification: Performance of Templates: time 0.02412/0.4782, allocations: 11.92 MB / 0.5443 GB, free: 18.13 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)