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.001748/0.001748, allocations: 111 kB / 16.41 MB, free: 6.453 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.001815/0.001815, allocations: 189.2 kB / 17.34 MB, free: 5.715 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.405/1.405, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1892/0.1892, allocations: 28.78 MB / 320 MB, free: 1.895 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001895/0.001895, allocations: 67.89 kB / 445 MB, free: 2.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1084, allocations: 56.42 MB / 0.4897 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.005037/0.1134, allocations: 3.65 MB / 0.4932 GB, free: 6.383 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001467/0.1149, allocations: 0.6779 MB / 0.4939 GB, free: 5.703 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002941/0.1152, allocations: 19.94 kB / 0.4939 GB, free: 5.684 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004079/0.1156, allocations: 170.3 kB / 0.4941 GB, free: 5.516 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003169/0.1159, allocations: 138.8 kB / 0.4942 GB, free: 5.379 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007113/0.1166, allocations: 359.5 kB / 0.4946 GB, free: 5.027 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009097/0.1175, allocations: 0.8483 MB / 0.4954 GB, free: 4.176 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007205/0.1182, allocations: 499.8 kB / 0.4959 GB, free: 3.648 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003196/0.1185, allocations: 338.4 kB / 0.4962 GB, free: 3.316 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003785/0.1189, allocations: 413.6 kB / 0.4966 GB, free: 2.91 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001279/0.119, allocations: 84 kB / 0.4967 GB, free: 2.828 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001956/0.1192, allocations: 120 kB / 0.4968 GB, free: 2.711 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003909/0.1196, allocations: 442.4 kB / 0.4972 GB, free: 2.277 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005023/0.1201, allocations: 0.6164 MB / 0.4978 GB, free: 1.656 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001346/0.1215, allocations: 1.259 MB / 0.499 GB, free: 400 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1215, allocations: 4 kB / 0.499 GB, free: 396 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1215, allocations: 0 / 0.499 GB, free: 396 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.82e-05/0.1215, allocations: 0 / 0.499 GB, free: 396 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.00241/0.1239, allocations: 1.849 MB / 0.5008 GB, free: 14.47 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.1239, allocations: 12.03 kB / 0.5009 GB, free: 14.46 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002445/0.1242, allocations: 203.6 kB / 0.5011 GB, free: 14.26 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001042/0.1252, allocations: 0.772 MB / 0.5018 GB, free: 13.44 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.739e-05/0.1253, allocations: 74.44 kB / 0.5019 GB, free: 13.36 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001332/0.1254, allocations: 104.4 kB / 0.502 GB, free: 13.26 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001685/0.1271, allocations: 1.154 MB / 0.5031 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.416e-05/0.1271, allocations: 8.125 kB / 0.5031 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.263e-05/0.1272, allocations: 47.94 kB / 0.5032 GB, free: 11.99 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.407e-05/0.1272, allocations: 24 kB / 0.5032 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001605/0.1288, allocations: 1.093 MB / 0.5042 GB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004654/0.1335, allocations: 3.655 MB / 0.5078 GB, free: 7.109 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00177/0.1353, allocations: 1.299 MB / 0.5091 GB, free: 5.797 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005962/0.1359, allocations: 466.3 kB / 0.5095 GB, free: 5.34 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.192e-05/0.1359, allocations: 24.77 kB / 0.5096 GB, free: 5.316 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.126e-05/0.136, allocations: 39.11 kB / 0.5096 GB, free: 5.27 MB / 398.1 MB Notification: Performance of pre-optimization done (n=67): time 2.425e-06/0.136, allocations: 4 kB / 0.5096 GB, free: 5.266 MB / 398.1 MB Notification: Performance of matching and sorting (n=67): time 0.002081/0.1381, allocations: 1.525 MB / 0.5111 GB, free: 3.734 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.565e-05/0.1381, allocations: 59.97 kB / 0.5111 GB, free: 3.664 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001564/0.1397, allocations: 1.289 MB / 0.5124 GB, free: 2.367 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.545e-05/0.1397, allocations: 37.7 kB / 0.5124 GB, free: 2.324 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006958/0.1404, allocations: 0.7727 MB / 0.5132 GB, free: 1.543 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002128/0.1406, allocations: 241.9 kB / 0.5134 GB, free: 1.305 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001702/0.1408, allocations: 114.3 kB / 0.5135 GB, free: 1.188 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.141, allocations: 341.8 kB / 0.5139 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000574/0.1415, allocations: 437.1 kB / 0.5143 GB, free: 432 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.203/0.3445, allocations: 0.5219 MB / 0.5148 GB, free: 26.73 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001228/0.3458, allocations: 0.9933 MB / 0.5158 GB, free: 26.64 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.668e-06/0.3458, allocations: 1.25 kB / 0.5158 GB, free: 26.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001256/0.347, allocations: 1.194 MB / 0.5169 GB, free: 26.59 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.465e-05/0.3471, allocations: 5.625 kB / 0.5169 GB, free: 26.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.3471, allocations: 4.844 kB / 0.5169 GB, free: 26.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.504e-05/0.3471, allocations: 5.688 kB / 0.5169 GB, free: 26.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004559/0.3475, allocations: 130.4 kB / 0.5171 GB, free: 26.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.147e-05/0.3476, allocations: 5.188 kB / 0.5171 GB, free: 26.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002467/0.3478, allocations: 54.59 kB / 0.5171 GB, free: 26.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.435e-05/0.3478, allocations: 24.56 kB / 0.5171 GB, free: 26.59 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.0004224/0.3483, allocations: 381.5 kB / 0.5175 GB, free: 26.47 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001251/0.3484, allocations: 151 kB / 0.5176 GB, free: 26.47 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00137/0.3498, allocations: 1.197 MB / 0.5188 GB, free: 26.41 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.3498, allocations: 7.031 kB / 0.5188 GB, free: 26.41 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.3498, allocations: 0 / 0.5188 GB, free: 26.41 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.3498, allocations: 3.656 kB / 0.5188 GB, free: 26.41 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002452/0.3522, allocations: 2.36 MB / 0.5211 GB, free: 26.09 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.3522, allocations: 0 / 0.5211 GB, free: 26.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004411/0.3527, allocations: 110.2 kB / 0.5212 GB, free: 26.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.394e-06/0.3527, allocations: 5.406 kB / 0.5212 GB, free: 26.09 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.452e-05/0.3527, allocations: 14.19 kB / 0.5213 GB, free: 26.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.355e-06/0.3527, allocations: 10.8 kB / 0.5213 GB, free: 26.09 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.3527, allocations: 1.094 kB / 0.5213 GB, free: 26.09 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002196/0.3549, allocations: 1.874 MB / 0.5231 GB, free: 25.88 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000197/0.3551, allocations: 209.7 kB / 0.5233 GB, free: 25.7 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.531e-05/0.3552, allocations: 13.14 kB / 0.5233 GB, free: 25.7 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00022/0.3554, allocations: 17.83 kB / 0.5233 GB, free: 25.7 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.589e-05/0.3555, allocations: 47.31 kB / 0.5234 GB, free: 25.69 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.081e-05/0.3555, allocations: 17.86 kB / 0.5234 GB, free: 25.69 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001123/0.3567, allocations: 0.8971 MB / 0.5243 GB, free: 25.58 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3567, allocations: 0 / 0.5243 GB, free: 25.58 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005925/0.3573, allocations: 209.4 kB / 0.5245 GB, free: 25.55 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.0001518/0.3574, allocations: 127.2 kB / 0.5246 GB, free: 25.46 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001145/0.3585, allocations: 0.9535 MB / 0.5255 GB, free: 25.45 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3586, allocations: 0 / 0.5255 GB, free: 25.45 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005285/0.3591, allocations: 0.4932 MB / 0.526 GB, free: 25.45 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005678/0.3596, allocations: 95.81 kB / 0.5261 GB, free: 25.44 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003592/0.3632, allocations: 2.801 MB / 0.5288 GB, free: 24.31 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008138/0.3641, allocations: 1.308 MB / 0.5301 GB, free: 23.55 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002352/0.3643, allocations: 73.11 kB / 0.5302 GB, free: 23.54 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001157/0.3644, allocations: 47.45 kB / 0.5302 GB, free: 23.52 MB / 398.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3644, allocations: 5.531 kB / 0.5302 GB, free: 23.52 MB / 398.1 MB Notification: Performance of Templates: time 0.01336/0.3778, allocations: 5.332 MB / 0.5354 GB, free: 23.07 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 -s cvode -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe 2>&1)