Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.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_6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001134/0.001134, allocations: 105.4 kB / 16.41 MB, free: 6.512 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.001146/0.001146, allocations: 187 kB / 17.34 MB, free: 5.742 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.232/1.232, 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.1633/0.1633, allocations: 28.78 MB / 320 MB, free: 1.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 59.91 kB / 445 MB, free: 2.527 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08926/0.09048, allocations: 56.42 MB / 0.4897 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.004433/0.09494, allocations: 3.673 MB / 0.4933 GB, free: 6.367 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001741/0.0967, allocations: 0.7791 MB / 0.494 GB, free: 5.586 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005503/0.09727, allocations: 19.94 kB / 0.4941 GB, free: 5.566 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004936/0.09777, allocations: 166.4 kB / 0.4942 GB, free: 5.402 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004821/0.09828, allocations: 138.8 kB / 0.4943 GB, free: 5.266 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008959/0.09919, allocations: 379.4 kB / 0.4947 GB, free: 4.895 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009897/0.1002, allocations: 0.8679 MB / 0.4956 GB, free: 4.023 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008277/0.101, allocations: 0.6404 MB / 0.4962 GB, free: 3.344 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000338/0.1014, allocations: 346.4 kB / 0.4965 GB, free: 3.004 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004192/0.1018, allocations: 433.5 kB / 0.4969 GB, free: 2.578 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001403/0.1019, allocations: 88 kB / 0.497 GB, free: 2.492 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000193/0.1021, allocations: 116 kB / 0.4971 GB, free: 2.379 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003288/0.1025, allocations: 438.5 kB / 0.4975 GB, free: 1.949 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000402/0.1029, allocations: 0.6241 MB / 0.4981 GB, free: 1.32 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001035/0.1039, allocations: 1.264 MB / 0.4994 GB, free: 52 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.1039, allocations: 0 / 0.4994 GB, free: 52 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.104, allocations: 3.938 kB / 0.4994 GB, free: 48 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.199e-05/0.104, allocations: 4 kB / 0.4994 GB, free: 44 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: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.002009/0.106, allocations: 1.799 MB / 0.5011 GB, free: 14.18 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.346e-05/0.106, allocations: 8.031 kB / 0.5012 GB, free: 14.17 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002/0.1062, allocations: 202.4 kB / 0.5013 GB, free: 13.97 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000849/0.1071, allocations: 0.759 MB / 0.5021 GB, free: 13.16 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.609e-05/0.1072, allocations: 82.41 kB / 0.5022 GB, free: 13.08 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001087/0.1073, allocations: 112.4 kB / 0.5023 GB, free: 12.97 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001396/0.1087, allocations: 1.17 MB / 0.5034 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.146e-05/0.1087, allocations: 4.188 kB / 0.5034 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.815e-05/0.1088, allocations: 43.94 kB / 0.5035 GB, free: 11.69 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.931e-05/0.1088, allocations: 28 kB / 0.5035 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001295/0.1101, allocations: 1.109 MB / 0.5046 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003714/0.1138, allocations: 3.662 MB / 0.5081 GB, free: 6.77 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001428/0.1153, allocations: 1.366 MB / 0.5095 GB, free: 5.395 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004932/0.1158, allocations: 498.6 kB / 0.51 GB, free: 4.906 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.392e-05/0.1158, allocations: 28.78 kB / 0.51 GB, free: 4.879 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006077/0.1165, allocations: 0.551 MB / 0.5105 GB, free: 4.312 MB / 398.1 MB Notification: Performance of pre-optimization done (n=72): time 2.044e-06/0.1165, allocations: 0 / 0.5105 GB, free: 4.312 MB / 398.1 MB Notification: Performance of matching and sorting (n=72): time 0.001699/0.1182, allocations: 1.57 MB / 0.5121 GB, free: 2.738 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.615e-05/0.1182, allocations: 60.06 kB / 0.5121 GB, free: 2.668 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001237/0.1195, allocations: 1.301 MB / 0.5134 GB, free: 1.359 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.605e-05/0.1195, allocations: 37.69 kB / 0.5134 GB, free: 1.316 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005075/0.12, allocations: 0.7678 MB / 0.5142 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001543/0.1202, allocations: 240.4 kB / 0.5144 GB, free: 308 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001435/0.1203, allocations: 130.6 kB / 0.5145 GB, free: 172 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.1712/0.2915, allocations: 333.5 kB / 0.5148 GB, free: 26.96 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006868/0.2922, allocations: 442.6 kB / 0.5153 GB, free: 26.96 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000549/0.2928, allocations: 0.5556 MB / 0.5158 GB, free: 26.85 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001011/0.2938, allocations: 1.039 MB / 0.5168 GB, free: 26.75 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.2938, allocations: 3.438 kB / 0.5168 GB, free: 26.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001289/0.2951, allocations: 1.225 MB / 0.518 GB, free: 26.7 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.2951, allocations: 5.469 kB / 0.518 GB, free: 26.7 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.485e-06/0.2951, allocations: 4 kB / 0.518 GB, free: 26.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.906e-05/0.2952, allocations: 7.219 kB / 0.518 GB, free: 26.7 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004453/0.2956, allocations: 136 kB / 0.5182 GB, free: 26.7 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.306e-05/0.2956, allocations: 16.78 kB / 0.5182 GB, free: 26.7 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002381/0.2959, allocations: 56.44 kB / 0.5182 GB, free: 26.7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.878e-05/0.2959, allocations: 30.55 kB / 0.5183 GB, free: 26.7 MB / 398.1 MB Warning: Assuming fixed start value for the following 2 variables: min_QL:DISCRETE(start = 1.0 fixed = true ) "Minimum quality of life" type: Real min_dPop:DISCRETE(unit = "1/yr" fixed = true ) "Minimal derivative of population" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.min_QL,$PRE.min_dPop,min_QL,min_dPop,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 (89): * Single equations (assignments): 89 * 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.0004627/0.2964, allocations: 381.6 kB / 0.5186 GB, free: 26.58 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001099/0.2965, allocations: 141.8 kB / 0.5188 GB, free: 26.58 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001435/0.298, allocations: 1.234 MB / 0.52 GB, free: 26.5 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.864e-06/0.298, allocations: 9.094 kB / 0.52 GB, free: 26.5 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.298, allocations: 5.094 kB / 0.52 GB, free: 26.5 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.215e-06/0.298, allocations: 3.844 kB / 0.52 GB, free: 26.5 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00247/0.3005, allocations: 2.415 MB / 0.5223 GB, free: 26.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.3005, allocations: 1.062 kB / 0.5223 GB, free: 26.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004335/0.3009, allocations: 118.1 kB / 0.5225 GB, free: 26.18 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.35e-06/0.3009, allocations: 6.625 kB / 0.5225 GB, free: 26.18 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.324e-05/0.301, allocations: 18.33 kB / 0.5225 GB, free: 26.18 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.312e-06/0.301, allocations: 7.594 kB / 0.5225 GB, free: 26.18 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.301, allocations: 2.281 kB / 0.5225 GB, free: 26.18 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001886/0.3029, allocations: 1.93 MB / 0.5244 GB, free: 25.98 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002449/0.3031, allocations: 249.8 kB / 0.5246 GB, free: 25.81 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.996e-05/0.3032, allocations: 19.28 kB / 0.5246 GB, free: 25.8 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002184/0.3034, allocations: 11.06 kB / 0.5246 GB, free: 25.8 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.148e-05/0.3035, allocations: 43.5 kB / 0.5247 GB, free: 25.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.422e-05/0.3036, allocations: 20.59 kB / 0.5247 GB, free: 25.8 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009717/0.3046, allocations: 0.8979 MB / 0.5256 GB, free: 25.7 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3046, allocations: 0 / 0.5256 GB, free: 25.7 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005185/0.3051, allocations: 211.8 kB / 0.5258 GB, free: 25.67 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: 3 ($whenCondition1,min_dPop,min_QL) * Number of discrete states: 2 (min_dPop,min_QL) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001437/0.3052, allocations: 125.7 kB / 0.5259 GB, free: 25.58 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001151/0.3064, allocations: 1.018 MB / 0.5269 GB, free: 25.55 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3064, allocations: 0 / 0.5269 GB, free: 25.55 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005562/0.307, allocations: 0.5265 MB / 0.5274 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.000538/0.3075, allocations: 91.72 kB / 0.5275 GB, free: 25.39 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003341/0.3109, allocations: 2.884 MB / 0.5303 GB, free: 24.09 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007631/0.3116, allocations: 1.311 MB / 0.5316 GB, free: 23.34 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001487/0.3118, allocations: 63 kB / 0.5317 GB, free: 23.32 MB / 398.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3118, allocations: 0 / 0.5317 GB, free: 23.32 MB / 398.1 MB Notification: Performance of Templates: time 0.01651/0.3283, allocations: 11.27 MB / 0.5427 GB, free: 19.43 MB / 398.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe 2>&1)