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.001221/0.001221, allocations: 105.2 kB / 16.41 MB, free: 6.496 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.001125/0.001125, allocations: 189.5 kB / 17.34 MB, free: 5.766 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.261/1.261, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1622/0.1622, allocations: 28.79 MB / 320 MB, free: 1.91 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 59.91 kB / 445 MB, free: 2.543 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09008/0.09134, allocations: 56.42 MB / 0.4897 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.004253/0.09562, allocations: 3.635 MB / 0.4932 GB, free: 6.422 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001483/0.09713, allocations: 0.6624 MB / 0.4939 GB, free: 5.758 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004748/0.09762, allocations: 15.94 kB / 0.4939 GB, free: 5.742 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004228/0.09805, allocations: 174.3 kB / 0.4941 GB, free: 5.57 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003126/0.09839, allocations: 122.8 kB / 0.4942 GB, free: 5.449 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006408/0.09904, allocations: 359.5 kB / 0.4945 GB, free: 5.098 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006828/0.09973, allocations: 0.8444 MB / 0.4953 GB, free: 4.25 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007026/0.1004, allocations: 0.6442 MB / 0.496 GB, free: 3.566 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002291/0.1007, allocations: 334.4 kB / 0.4963 GB, free: 3.238 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002819/0.101, allocations: 421.6 kB / 0.4967 GB, free: 2.824 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001127/0.1011, allocations: 84 kB / 0.4968 GB, free: 2.742 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001638/0.1013, allocations: 116 kB / 0.4969 GB, free: 2.629 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002919/0.1016, allocations: 426.5 kB / 0.4973 GB, free: 2.211 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003455/0.1019, allocations: 0.6009 MB / 0.4979 GB, free: 1.605 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009029/0.1028, allocations: 1.225 MB / 0.4991 GB, free: 384 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1028, allocations: 4 kB / 0.4991 GB, free: 380 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1028, allocations: 0 / 0.4991 GB, free: 380 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.089e-05/0.1029, allocations: 0 / 0.4991 GB, free: 380 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: 259 * Number of variables: 259 Notification: Performance of Generate backend data structure: time 0.001707/0.1046, allocations: 1.729 MB / 0.5008 GB, free: 14.58 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.916e-05/0.1046, allocations: 8.031 kB / 0.5008 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001795/0.1048, allocations: 194.5 kB / 0.501 GB, free: 14.38 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007344/0.1055, allocations: 0.7385 MB / 0.5017 GB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.492e-05/0.1056, allocations: 78.42 kB / 0.5017 GB, free: 13.51 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001/0.1057, allocations: 104.4 kB / 0.5018 GB, free: 13.41 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001276/0.107, allocations: 1.13 MB / 0.503 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.7e-05/0.107, allocations: 192 / 0.503 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.225e-05/0.1071, allocations: 43.94 kB / 0.503 GB, free: 12.17 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.025e-05/0.1071, allocations: 28 kB / 0.503 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001152/0.1083, allocations: 1.05 MB / 0.504 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003432/0.1117, allocations: 3.574 MB / 0.5075 GB, free: 7.41 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001286/0.113, allocations: 1.279 MB / 0.5088 GB, free: 6.121 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004259/0.1134, allocations: 462.3 kB / 0.5092 GB, free: 5.668 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.089e-05/0.1135, allocations: 28.77 kB / 0.5093 GB, free: 5.641 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.118e-05/0.1135, allocations: 39.06 kB / 0.5093 GB, free: 5.594 MB / 398.1 MB Notification: Performance of pre-optimization done (n=66): time 1.703e-06/0.1135, allocations: 0 / 0.5093 GB, free: 5.594 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.001478/0.115, allocations: 1.446 MB / 0.5107 GB, free: 4.141 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.367e-05/0.1151, allocations: 63.97 kB / 0.5108 GB, free: 4.066 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00115/0.1162, allocations: 1.23 MB / 0.512 GB, free: 2.824 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.079e-05/0.1163, allocations: 37.7 kB / 0.512 GB, free: 2.781 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004627/0.1167, allocations: 0.744 MB / 0.5127 GB, free: 2.027 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001407/0.1169, allocations: 232.6 kB / 0.513 GB, free: 1.797 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000125/0.117, allocations: 106.3 kB / 0.5131 GB, free: 1.688 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.1171, allocations: 333.9 kB / 0.5134 GB, free: 1.355 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004122/0.1175, allocations: 421.1 kB / 0.5138 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004707/0.118, allocations: 0.5082 MB / 0.5143 GB, free: 412 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1785/0.2965, allocations: 0.9434 MB / 0.5152 GB, free: 27.11 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.2965, allocations: 5.375 kB / 0.5152 GB, free: 27.11 MB / 398.1 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001178/0.2977, allocations: 1.132 MB / 0.5163 GB, free: 27.06 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.2977, allocations: 6.344 kB / 0.5163 GB, free: 27.06 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.2978, allocations: 2.469 kB / 0.5163 GB, free: 27.06 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.116e-05/0.2978, allocations: 5.75 kB / 0.5163 GB, free: 27.06 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004301/0.2982, allocations: 127.4 kB / 0.5164 GB, free: 27.06 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.2982, allocations: 6 kB / 0.5164 GB, free: 27.06 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002099/0.2985, allocations: 54.58 kB / 0.5165 GB, free: 27.06 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.97e-05/0.2985, allocations: 22.47 kB / 0.5165 GB, free: 27.06 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 (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.000371/0.2989, allocations: 368.1 kB / 0.5169 GB, free: 26.95 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001152/0.299, allocations: 135.6 kB / 0.517 GB, free: 26.95 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001158/0.3001, allocations: 1.14 MB / 0.5181 GB, free: 26.89 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.693e-06/0.3002, allocations: 7.406 kB / 0.5181 GB, free: 26.89 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.3002, allocations: 0.5 kB / 0.5181 GB, free: 26.89 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.535e-06/0.3002, allocations: 15.09 kB / 0.5181 GB, free: 26.89 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00198/0.3022, allocations: 2.272 MB / 0.5203 GB, free: 26.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.3022, allocations: 0 / 0.5203 GB, free: 26.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004041/0.3026, allocations: 112.6 kB / 0.5205 GB, free: 26.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.3026, allocations: 2.781 kB / 0.5205 GB, free: 26.57 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.799e-05/0.3026, allocations: 12.73 kB / 0.5205 GB, free: 26.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.898e-06/0.3026, allocations: 4.047 kB / 0.5205 GB, free: 26.57 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.3027, allocations: 5.281 kB / 0.5205 GB, free: 26.56 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001603/0.3043, allocations: 1.789 MB / 0.5222 GB, free: 26.36 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000115/0.3044, allocations: 197.6 kB / 0.5224 GB, free: 26.19 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.964e-05/0.3045, allocations: 11.72 kB / 0.5224 GB, free: 26.19 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000188/0.3047, allocations: 13.91 kB / 0.5224 GB, free: 26.19 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.205e-05/0.3047, allocations: 41.52 kB / 0.5225 GB, free: 26.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.569e-05/0.3048, allocations: 18.17 kB / 0.5225 GB, free: 26.18 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000881/0.3056, allocations: 0.8537 MB / 0.5233 GB, free: 26.07 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3056, allocations: 0 / 0.5233 GB, free: 26.07 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004636/0.3061, allocations: 209.2 kB / 0.5235 GB, free: 26.05 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 (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.0001365/0.3063, allocations: 118.7 kB / 0.5236 GB, free: 25.96 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009711/0.3072, allocations: 0.9389 MB / 0.5246 GB, free: 25.95 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3072, allocations: 0 / 0.5246 GB, free: 25.95 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004621/0.3077, allocations: 0.4909 MB / 0.525 GB, free: 25.95 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005283/0.3082, allocations: 97.83 kB / 0.5251 GB, free: 25.93 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00295/0.3112, allocations: 2.732 MB / 0.5278 GB, free: 24.76 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008212/0.312, allocations: 1.283 MB / 0.5291 GB, free: 24.01 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001543/0.3122, allocations: 57.44 kB / 0.5291 GB, free: 24 MB / 398.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3122, allocations: 2.594 kB / 0.5291 GB, free: 24 MB / 398.1 MB Notification: Performance of Templates: time 0.01391/0.3261, allocations: 10.99 MB / 0.5398 GB, free: 20.45 MB / 398.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 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe 2>&1)