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.001338/0.001338, allocations: 113.2 kB / 16.37 MB, free: 5.984 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.001465/0.001465, allocations: 194.8 kB / 17.31 MB, free: 5.602 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.406/1.406, 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.1701/0.1701, allocations: 28.77 MB / 319.9 MB, free: 1.91 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001283, allocations: 65.34 kB / 388 MB, free: 40.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08531/0.08661, allocations: 56.44 MB / 444.5 MB, free: 3.051 MB / 318.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.005109/0.09176, allocations: 3.631 MB / 448.1 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001835/0.09363, allocations: 0.6778 MB / 448.8 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007349/0.09438, allocations: 12 kB / 448.8 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005127/0.09491, allocations: 162.4 kB / 448.9 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004776/0.09542, allocations: 130.7 kB / 449.1 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008026/0.09623, allocations: 355.6 kB / 449.4 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008982/0.09715, allocations: 0.8444 MB / 450.3 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008452/0.098, allocations: 0.6325 MB / 450.9 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003058/0.09832, allocations: 338.4 kB / 451.2 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003607/0.09868, allocations: 421.6 kB / 451.6 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001326/0.09883, allocations: 84 kB / 451.7 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001976/0.09903, allocations: 116 kB / 451.8 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003449/0.09938, allocations: 434.5 kB / 452.2 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005073/0.0999, allocations: 0.5931 MB / 452.8 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001183/0.1011, allocations: 1.213 MB / 454.1 MB, free: 9.379 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.204e-06/0.1011, allocations: 4 kB / 454.1 MB, free: 9.375 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1011, allocations: 0 / 454.1 MB, free: 9.375 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.802e-05/0.1012, allocations: 0 / 454.1 MB, free: 9.375 MB / 334.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.002291/0.1035, allocations: 1.744 MB / 455.8 MB, free: 7.566 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.343e-05/0.1035, allocations: 8.031 kB / 455.8 MB, free: 7.559 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002207/0.1037, allocations: 186.6 kB / 456 MB, free: 7.375 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009466/0.1047, allocations: 0.7425 MB / 456.7 MB, free: 6.582 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.924e-05/0.1047, allocations: 74.42 kB / 456.8 MB, free: 6.508 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001199/0.1049, allocations: 104.3 kB / 456.9 MB, free: 6.406 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001543/0.1064, allocations: 1.13 MB / 458 MB, free: 5.211 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.399e-05/0.1065, allocations: 8.125 kB / 458 MB, free: 5.203 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.392e-05/0.1065, allocations: 47.94 kB / 458.1 MB, free: 5.156 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.036e-05/0.1066, allocations: 24 kB / 458.1 MB, free: 5.133 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001342/0.1079, allocations: 1.046 MB / 459.2 MB, free: 4.086 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004296/0.1122, allocations: 3.578 MB / 462.7 MB, free: 408 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001424/0.1136, allocations: 1.271 MB / 464 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004806/0.1141, allocations: 466.3 kB / 464.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.459e-05/0.1142, allocations: 24.77 kB / 464.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.84e-05/0.1143, allocations: 55.11 kB / 464.5 MB, free: 14.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 2.214e-06/0.1143, allocations: 0 / 464.5 MB, free: 14.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.001643/0.1159, allocations: 1.438 MB / 466 MB, free: 13.13 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.344e-05/0.116, allocations: 59.97 kB / 466 MB, free: 13.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001498/0.1175, allocations: 1.226 MB / 467.3 MB, free: 11.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.423e-05/0.1175, allocations: 37.7 kB / 467.3 MB, free: 11.78 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005793/0.1181, allocations: 0.7479 MB / 468.1 MB, free: 11.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001761/0.1183, allocations: 224.6 kB / 468.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001669/0.1185, allocations: 122.3 kB / 468.4 MB, free: 10.67 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.1186, allocations: 333.9 kB / 468.7 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004763/0.1191, allocations: 417.1 kB / 469.1 MB, free: 9.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005396/0.1197, allocations: 0.5004 MB / 469.6 MB, free: 9.395 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001033/0.1207, allocations: 0.9588 MB / 470.6 MB, free: 8.402 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.1207, allocations: 0 / 470.6 MB, free: 8.402 MB / 350.1 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001338/0.1221, allocations: 1.128 MB / 471.7 MB, free: 7.266 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.171e-05/0.1221, allocations: 12.03 kB / 471.7 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.1221, allocations: 0 / 471.7 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.307e-05/0.1221, allocations: 8 kB / 471.7 MB, free: 7.246 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004658/0.1226, allocations: 131.8 kB / 471.9 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.474e-05/0.1226, allocations: 7.938 kB / 471.9 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002698/0.1229, allocations: 51.44 kB / 471.9 MB, free: 7.059 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.538e-05/0.123, allocations: 24 kB / 471.9 MB, free: 7.035 MB / 350.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.0004732/0.1234, allocations: 371.8 kB / 472.3 MB, free: 6.664 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001574/0.1236, allocations: 138.2 kB / 472.4 MB, free: 6.527 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001411/0.125, allocations: 1.142 MB / 473.6 MB, free: 5.375 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.755e-06/0.125, allocations: 8 kB / 473.6 MB, free: 5.367 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.1251, allocations: 0 / 473.6 MB, free: 5.367 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.153e-06/0.1251, allocations: 3.984 kB / 473.6 MB, free: 5.363 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002547/0.1276, allocations: 2.281 MB / 475.9 MB, free: 3.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.1276, allocations: 0 / 475.9 MB, free: 3.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004368/0.1281, allocations: 107.8 kB / 476 MB, free: 2.914 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.943e-06/0.1281, allocations: 4 kB / 476 MB, free: 2.91 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.543e-05/0.1281, allocations: 12 kB / 476 MB, free: 2.898 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/0.1282, allocations: 4 kB / 476 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.1282, allocations: 4 kB / 476 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001823/0.13, allocations: 1.789 MB / 477.8 MB, free: 1.086 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002111/0.1302, allocations: 195.3 kB / 478 MB, free: 0.875 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.139e-05/0.1303, allocations: 12 kB / 478 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002116/0.1305, allocations: 12 kB / 478 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.405e-05/0.1306, allocations: 36.45 kB / 478 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.293e-05/0.1306, allocations: 27.92 kB / 478.1 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009862/0.1316, allocations: 0.8559 MB / 478.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.1316, allocations: 0 / 478.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005514/0.1322, allocations: 203 kB / 479.1 MB, free: 15.73 MB / 366.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 (66): * Single equations (assignments): 66 * 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.0001694/0.1324, allocations: 118.5 kB / 479.2 MB, free: 15.61 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001105/0.1335, allocations: 0.9411 MB / 480.2 MB, free: 14.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1335, allocations: 0.625 kB / 480.2 MB, free: 14.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005021/0.134, allocations: 0.4912 MB / 480.7 MB, free: 14.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005708/0.1346, allocations: 91.81 kB / 480.8 MB, free: 14.08 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003468/0.1381, allocations: 2.655 MB / 483.4 MB, free: 11.4 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008966/0.139, allocations: 1.276 MB / 484.7 MB, free: 10.1 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002199/0.1392, allocations: 76.36 kB / 484.8 MB, free: 10.02 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001165/0.1393, allocations: 51.42 kB / 484.8 MB, free: 9.969 MB / 366.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1394, allocations: 0 / 484.8 MB, free: 9.969 MB / 366.1 MB Notification: Performance of Templates: time 0.01162/0.151, allocations: 5.106 MB / 489.9 MB, free: 4.867 MB / 366.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 -s gbode -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe 2>&1)