Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.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_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004724/0.004724, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.0009645/0.0009645, allocations: 192.1 kB / 16.67 MB, free: 5.969 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.223/1.223, allocations: 222.9 MB / 240.4 MB, free: 15.12 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1786/0.1786, allocations: 28.78 MB / 319.3 MB, free: 1.883 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001052/0.001052, allocations: 59.89 kB / 444.3 MB, free: 2.516 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08829/0.08936, allocations: 56.42 MB / 0.489 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.004122/0.09351, allocations: 3.642 MB / 0.4926 GB, free: 6.387 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00111/0.09463, allocations: 0.6818 MB / 0.4932 GB, free: 5.703 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002431/0.09489, allocations: 19.94 kB / 0.4933 GB, free: 5.684 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003543/0.09525, allocations: 174.3 kB / 0.4934 GB, free: 5.512 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002866/0.09555, allocations: 138.8 kB / 0.4936 GB, free: 5.375 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005746/0.09613, allocations: 355.5 kB / 0.4939 GB, free: 5.027 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006669/0.09681, allocations: 0.8483 MB / 0.4947 GB, free: 4.176 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000688/0.0975, allocations: 0.6403 MB / 0.4953 GB, free: 3.496 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002279/0.09774, allocations: 338.4 kB / 0.4957 GB, free: 3.164 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000278/0.09802, allocations: 417.6 kB / 0.4961 GB, free: 2.754 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001146/0.09814, allocations: 84 kB / 0.4961 GB, free: 2.672 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001651/0.09831, allocations: 120 kB / 0.4963 GB, free: 2.555 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002932/0.09862, allocations: 430.5 kB / 0.4967 GB, free: 2.133 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003748/0.099, allocations: 0.6125 MB / 0.4973 GB, free: 1.516 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009967/0.1, allocations: 1.266 MB / 0.4985 GB, free: 248 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.1, allocations: 4 kB / 0.4985 GB, free: 244 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1, allocations: 8 kB / 0.4985 GB, free: 236 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.095e-05/0.1, allocations: 0 / 0.4985 GB, free: 236 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: 263 * Number of variables: 263 Notification: Performance of Generate backend data structure: time 0.001834/0.1019, allocations: 1.833 MB / 0.5003 GB, free: 14.33 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.907e-05/0.1019, allocations: 8.031 kB / 0.5003 GB, free: 14.32 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001843/0.1021, allocations: 207.6 kB / 0.5005 GB, free: 14.12 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007529/0.1029, allocations: 0.7835 MB / 0.5013 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.614e-05/0.1029, allocations: 78.45 kB / 0.5014 GB, free: 13.21 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.605e-05/0.103, allocations: 100.4 kB / 0.5015 GB, free: 13.11 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001429/0.1045, allocations: 1.17 MB / 0.5026 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.035e-05/0.1045, allocations: 192 / 0.5026 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.253e-05/0.1046, allocations: 43.94 kB / 0.5026 GB, free: 11.83 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.869e-05/0.1046, allocations: 28 kB / 0.5027 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00129/0.1059, allocations: 1.101 MB / 0.5037 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003567/0.1095, allocations: 3.651 MB / 0.5073 GB, free: 6.945 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001373/0.1108, allocations: 1.334 MB / 0.5086 GB, free: 5.598 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004956/0.1113, allocations: 490.3 kB / 0.5091 GB, free: 5.117 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.868e-05/0.1114, allocations: 24.77 kB / 0.5091 GB, free: 5.094 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.194e-05/0.1114, allocations: 47.12 kB / 0.5091 GB, free: 5.039 MB / 398.1 MB Notification: Performance of pre-optimization done (n=68): time 1.773e-06/0.1115, allocations: 0 / 0.5091 GB, free: 5.039 MB / 398.1 MB Notification: Performance of matching and sorting (n=68): time 0.001644/0.1131, allocations: 1.533 MB / 0.5106 GB, free: 3.5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.199e-05/0.1131, allocations: 59.97 kB / 0.5107 GB, free: 3.43 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001197/0.1143, allocations: 1.292 MB / 0.512 GB, free: 2.129 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.18e-05/0.1144, allocations: 37.7 kB / 0.512 GB, free: 2.086 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005083/0.1149, allocations: 0.7726 MB / 0.5127 GB, free: 1.305 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001496/0.1151, allocations: 249.8 kB / 0.513 GB, free: 1.059 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001487/0.1152, allocations: 118.6 kB / 0.5131 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.1153, allocations: 333.9 kB / 0.5134 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000474/0.1158, allocations: 441.8 kB / 0.5138 GB, free: 176 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1837/0.2995, allocations: 0.5298 MB / 0.5144 GB, free: 26.84 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001038/0.3006, allocations: 1.006 MB / 0.5153 GB, free: 26.74 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.3006, allocations: 0.5625 kB / 0.5153 GB, free: 26.74 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001214/0.3018, allocations: 1.194 MB / 0.5165 GB, free: 26.7 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.3018, allocations: 7.719 kB / 0.5165 GB, free: 26.7 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.906e-06/0.3019, allocations: 5.609 kB / 0.5165 GB, free: 26.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.176e-05/0.3019, allocations: 6.094 kB / 0.5165 GB, free: 26.7 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004435/0.3023, allocations: 132.8 kB / 0.5167 GB, free: 26.7 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.104e-05/0.3023, allocations: 8.594 kB / 0.5167 GB, free: 26.7 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00023/0.3026, allocations: 51.66 kB / 0.5167 GB, free: 26.7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.623e-05/0.3026, allocations: 28.08 kB / 0.5167 GB, free: 26.7 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 (83): * Single equations (assignments): 83 * 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.0003964/0.303, allocations: 380.3 kB / 0.5171 GB, free: 26.58 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001308/0.3032, allocations: 146.5 kB / 0.5172 GB, free: 26.58 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001312/0.3045, allocations: 1.203 MB / 0.5184 GB, free: 26.52 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.3045, allocations: 6.75 kB / 0.5184 GB, free: 26.52 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.3045, allocations: 3.531 kB / 0.5184 GB, free: 26.52 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.3045, allocations: 5.062 kB / 0.5184 GB, free: 26.52 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002256/0.3068, allocations: 2.363 MB / 0.5207 GB, free: 26.2 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.3068, allocations: 0.6094 kB / 0.5207 GB, free: 26.2 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004472/0.3072, allocations: 115.8 kB / 0.5208 GB, free: 26.2 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/0.3073, allocations: 4.312 kB / 0.5208 GB, free: 26.2 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.157e-05/0.3073, allocations: 14.7 kB / 0.5209 GB, free: 26.2 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.26e-06/0.3073, allocations: 6.859 kB / 0.5209 GB, free: 26.19 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3073, allocations: 0.9688 kB / 0.5209 GB, free: 26.19 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001892/0.3092, allocations: 1.885 MB / 0.5227 GB, free: 25.97 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001309/0.3094, allocations: 215.5 kB / 0.5229 GB, free: 25.8 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.289e-05/0.3094, allocations: 14.06 kB / 0.5229 GB, free: 25.8 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002304/0.3097, allocations: 15.02 kB / 0.5229 GB, free: 25.79 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.773e-05/0.3098, allocations: 41.36 kB / 0.523 GB, free: 25.79 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.895e-05/0.3098, allocations: 20.08 kB / 0.523 GB, free: 25.79 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009594/0.3108, allocations: 0.895 MB / 0.5239 GB, free: 25.68 MB / 398.1 MB Notification: Performance of sort global known variables: time 7.91e-07/0.3108, allocations: 0 / 0.5239 GB, free: 25.68 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004998/0.3113, allocations: 208.6 kB / 0.5241 GB, free: 25.65 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 (68): * Single equations (assignments): 68 * 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.0001322/0.3114, allocations: 125.5 kB / 0.5242 GB, free: 25.56 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001102/0.3125, allocations: 0.9949 MB / 0.5252 GB, free: 25.55 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3125, allocations: 0 / 0.5252 GB, free: 25.55 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005145/0.3131, allocations: 0.5099 MB / 0.5257 GB, free: 25.54 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005273/0.3136, allocations: 92 kB / 0.5258 GB, free: 25.54 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003123/0.3167, allocations: 2.809 MB / 0.5285 GB, free: 24.32 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007122/0.3174, allocations: 1.311 MB / 0.5298 GB, free: 23.56 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000209/0.3177, allocations: 71.36 kB / 0.5298 GB, free: 23.55 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001113/0.3178, allocations: 45.08 kB / 0.5299 GB, free: 23.54 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3178, allocations: 3.406 kB / 0.5299 GB, free: 23.54 MB / 398.1 MB Notification: Performance of Templates: time 0.01103/0.3288, allocations: 5.311 MB / 0.5351 GB, free: 23.09 MB / 398.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe 2>&1)