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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo", uses=false) Using package SystemDynamics with version 2.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001458/0.001458, allocations: 183.2 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.572/1.572, allocations: 205.1 MB / 221.8 MB, free: 8.48 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001247/0.001247, allocations: 94.3 kB / 269.2 MB, free: 8.449 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.1-master/package.mo): time 0.2695/0.2695, allocations: 28.77 MB / 345.3 MB, free: 12.19 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001131/0.001131, allocations: 55.92 kB / 409.7 MB, free: 47.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0935/0.09465, allocations: 53.6 MB / 463.3 MB, free: 10.3 MB / 314.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.005257/0.09998, allocations: 3.653 MB / 466.9 MB, free: 6.637 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001721/0.1017, allocations: 0.6662 MB / 467.6 MB, free: 5.969 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003777/0.1021, allocations: 15.94 kB / 467.6 MB, free: 5.953 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000392/0.1025, allocations: 127.1 kB / 467.8 MB, free: 5.828 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002795/0.1029, allocations: 91.44 kB / 467.8 MB, free: 5.738 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000596/0.1035, allocations: 315.7 kB / 468.1 MB, free: 5.43 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008233/0.1043, allocations: 0.8133 MB / 469 MB, free: 4.613 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008494/0.1052, allocations: 0.6172 MB / 469.6 MB, free: 3.965 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003069/0.1055, allocations: 306.4 kB / 469.9 MB, free: 3.664 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003887/0.1059, allocations: 429.4 kB / 470.3 MB, free: 3.242 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001067/0.106, allocations: 59.98 kB / 470.4 MB, free: 3.184 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002049/0.1062, allocations: 79.97 kB / 470.4 MB, free: 3.105 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003649/0.1066, allocations: 410.5 kB / 470.8 MB, free: 2.703 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004225/0.107, allocations: 0.5813 MB / 471.4 MB, free: 2.117 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009124/0.1079, allocations: 1.124 MB / 472.5 MB, free: 0.9883 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.108, allocations: 4 kB / 472.5 MB, free: 0.9844 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.108, allocations: 3.938 kB / 472.5 MB, free: 0.9805 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.326e-05/0.108, allocations: 0 / 472.5 MB, free: 0.9805 MB / 314.7 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.002259/0.1102, allocations: 1.776 MB / 474.3 MB, free: 15.14 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.1103, allocations: 12.03 kB / 474.3 MB, free: 15.13 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001969/0.1105, allocations: 198.5 kB / 474.5 MB, free: 14.93 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007972/0.1113, allocations: 0.751 MB / 475.3 MB, free: 14.13 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.823e-05/0.1114, allocations: 82.44 kB / 475.4 MB, free: 14.05 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001092/0.1115, allocations: 96.38 kB / 475.5 MB, free: 13.96 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001498/0.113, allocations: 1.162 MB / 476.6 MB, free: 12.73 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.793e-05/0.113, allocations: 192 / 476.6 MB, free: 12.73 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.903e-05/0.1131, allocations: 47.94 kB / 476.7 MB, free: 12.68 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.776e-05/0.1131, allocations: 24 kB / 476.7 MB, free: 12.66 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001335/0.1145, allocations: 1.097 MB / 477.8 MB, free: 11.56 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004079/0.1186, allocations: 3.67 MB / 481.5 MB, free: 7.785 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001546/0.1201, allocations: 1.334 MB / 482.8 MB, free: 6.438 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005574/0.1207, allocations: 482.3 kB / 483.3 MB, free: 5.961 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.285e-05/0.1208, allocations: 32.75 kB / 483.3 MB, free: 5.93 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.688e-05/0.1208, allocations: 43.12 kB / 483.3 MB, free: 5.879 MB / 330.7 MB Notification: Performance of pre-optimization done (n=67): time 2.304e-06/0.1208, allocations: 0 / 483.3 MB, free: 5.879 MB / 330.7 MB Notification: Performance of matching and sorting (n=67): time 0.001786/0.1226, allocations: 1.52 MB / 484.9 MB, free: 4.355 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.47e-05/0.1227, allocations: 55.97 kB / 484.9 MB, free: 4.289 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001382/0.1241, allocations: 1.292 MB / 486.2 MB, free: 2.988 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.193e-05/0.1241, allocations: 37.7 kB / 486.2 MB, free: 2.945 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006234/0.1248, allocations: 0.7677 MB / 487 MB, free: 2.168 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001808/0.125, allocations: 228.6 kB / 487.2 MB, free: 1.941 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001587/0.1251, allocations: 118.2 kB / 487.3 MB, free: 1.816 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.1253, allocations: 333.9 kB / 487.7 MB, free: 1.484 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005208/0.1258, allocations: 437.1 kB / 488.1 MB, free: 1.059 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005961/0.1264, allocations: 0.5278 MB / 488.6 MB, free: 0.4961 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1916/0.318, allocations: 0.9937 MB / 489.6 MB, free: 32.02 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.296e-06/0.318, allocations: 4.031 kB / 489.6 MB, free: 32.02 MB / 330.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001752/0.3198, allocations: 1.176 MB / 490.8 MB, free: 31.84 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.403e-05/0.3198, allocations: 10.03 kB / 490.8 MB, free: 31.84 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.3198, allocations: 3.031 kB / 490.8 MB, free: 31.84 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.354e-05/0.3199, allocations: 5.438 kB / 490.8 MB, free: 31.84 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005027/0.3204, allocations: 131.8 kB / 490.9 MB, free: 31.82 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.01e-05/0.3204, allocations: 10 kB / 491 MB, free: 31.82 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002906/0.3207, allocations: 55.34 kB / 491 MB, free: 31.81 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.191e-05/0.3208, allocations: 27.77 kB / 491 MB, free: 31.8 MB / 330.7 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.0007681/0.3215, allocations: 378.3 kB / 491.4 MB, free: 31.6 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001921/0.3217, allocations: 137.3 kB / 491.5 MB, free: 31.6 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002192/0.3239, allocations: 1.189 MB / 492.7 MB, free: 31.27 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.379e-05/0.324, allocations: 11.53 kB / 492.7 MB, free: 31.26 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.324, allocations: 0 / 492.7 MB, free: 31.26 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.36e-05/0.324, allocations: 3.281 kB / 492.7 MB, free: 31.26 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003277/0.3273, allocations: 2.358 MB / 495.1 MB, free: 30.43 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.3273, allocations: 0 / 495.1 MB, free: 30.43 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005023/0.3278, allocations: 113.3 kB / 495.2 MB, free: 30.42 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.472e-06/0.3278, allocations: 2.781 kB / 495.2 MB, free: 30.42 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.476e-05/0.3279, allocations: 16.28 kB / 495.2 MB, free: 30.41 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.594e-06/0.3279, allocations: 6.438 kB / 495.2 MB, free: 30.41 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.3279, allocations: 0.5156 kB / 495.2 MB, free: 30.41 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01868/0.3466, allocations: 11.96 MB / 0.4953 GB, free: 26.25 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002075/0.3468, allocations: 207.2 kB / 0.4955 GB, free: 26.07 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.594e-05/0.3469, allocations: 12.73 kB / 0.4955 GB, free: 26.06 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000223/0.3471, allocations: 16.39 kB / 0.4955 GB, free: 26.05 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.132e-05/0.3472, allocations: 38.34 kB / 0.4956 GB, free: 26.05 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.128e-05/0.3473, allocations: 21.06 kB / 0.4956 GB, free: 26.04 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001377/0.3486, allocations: 0.8937 MB / 0.4965 GB, free: 25.73 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3487, allocations: 1.844 kB / 0.4965 GB, free: 25.73 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008904/0.3496, allocations: 293.5 kB / 0.4967 GB, free: 25.65 MB / 330.7 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.0002076/0.3498, allocations: 130.7 kB / 0.4969 GB, free: 25.54 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001203/0.351, allocations: 0.9851 MB / 0.4978 GB, free: 25.28 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.624e-06/0.351, allocations: 0 / 0.4978 GB, free: 25.28 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004174/0.3514, allocations: 0.5096 MB / 0.4983 GB, free: 24.83 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005666/0.352, allocations: 97.06 kB / 0.4984 GB, free: 24.74 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003431/0.3554, allocations: 3.805 MB / 0.5021 GB, free: 21.14 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005839/0.356, allocations: 1.323 MB / 0.5034 GB, free: 19.79 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0004438/0.3565, allocations: 138.4 kB / 0.5036 GB, free: 19.65 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002829/0.3568, allocations: 91.41 kB / 0.5037 GB, free: 19.56 MB / 330.7 MB Notification: Performance of SimCode: time 3.3e-07/0.3568, allocations: 0 / 0.5037 GB, free: 19.56 MB / 330.7 MB Notification: Performance of Templates: time 0.01428/0.3711, allocations: 9.126 MB / 0.5126 GB, free: 10.43 MB / 330.7 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)