Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.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_5,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_5,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001564/0.001564, allocations: 105.4 kB / 16.41 MB, free: 6.461 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.001681/0.001681, allocations: 189.7 kB / 17.34 MB, free: 5.719 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.265/1.265, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.1681/0.1681, allocations: 28.78 MB / 320 MB, free: 1.863 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00111/0.00111, allocations: 67.89 kB / 445 MB, free: 2.496 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08981/0.09093, allocations: 56.42 MB / 0.4897 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.003945/0.09491, allocations: 3.253 MB / 0.4929 GB, free: 6.758 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001357/0.09629, allocations: 0.5377 MB / 0.4934 GB, free: 6.219 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004073/0.09671, allocations: 12 kB / 0.4934 GB, free: 6.207 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003218/0.09704, allocations: 146.6 kB / 0.4935 GB, free: 6.062 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003005/0.09736, allocations: 122.9 kB / 0.4937 GB, free: 5.941 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005549/0.09793, allocations: 279.6 kB / 0.4939 GB, free: 5.668 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005616/0.0985, allocations: 0.7239 MB / 0.4946 GB, free: 4.941 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005519/0.09906, allocations: 477.2 kB / 0.4951 GB, free: 4.445 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002166/0.09928, allocations: 306.6 kB / 0.4954 GB, free: 4.145 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002757/0.09957, allocations: 389.8 kB / 0.4957 GB, free: 3.762 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001074/0.09968, allocations: 72 kB / 0.4958 GB, free: 3.691 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001601/0.09985, allocations: 104 kB / 0.4959 GB, free: 3.59 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003044/0.1002, allocations: 430.5 kB / 0.4963 GB, free: 3.168 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003388/0.1005, allocations: 0.5737 MB / 0.4969 GB, free: 2.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000857/0.1014, allocations: 1.135 MB / 0.498 GB, free: 1.449 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1014, allocations: 4 kB / 0.498 GB, free: 1.445 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1014, allocations: 0 / 0.498 GB, free: 1.445 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.869e-06/0.1014, allocations: 0 / 0.498 GB, free: 1.445 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.001793/0.1032, allocations: 1.717 MB / 0.4997 GB, free: 15.67 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.138e-05/0.1032, allocations: 8.031 kB / 0.4997 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001801/0.1034, allocations: 190.5 kB / 0.4999 GB, free: 15.47 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000418/0.1039, allocations: 0.5703 MB / 0.5004 GB, free: 14.85 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.628e-05/0.1039, allocations: 74.38 kB / 0.5005 GB, free: 14.78 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001065/0.104, allocations: 96.38 kB / 0.5006 GB, free: 14.68 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001363/0.1054, allocations: 1.075 MB / 0.5016 GB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.045e-05/0.1054, allocations: 4.188 kB / 0.5016 GB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.589e-05/0.1055, allocations: 43.94 kB / 0.5017 GB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.246e-05/0.1055, allocations: 54.11 kB / 0.5017 GB, free: 13.49 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001476/0.107, allocations: 1.219 MB / 0.5029 GB, free: 12.27 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003251/0.1103, allocations: 2.843 MB / 0.5057 GB, free: 9.348 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001153/0.1115, allocations: 0.9945 MB / 0.5067 GB, free: 8.336 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005676/0.112, allocations: 0.4905 MB / 0.5071 GB, free: 7.844 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.974e-05/0.1121, allocations: 32.53 kB / 0.5072 GB, free: 7.812 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.324e-05/0.1121, allocations: 43.12 kB / 0.5072 GB, free: 7.762 MB / 398.1 MB Notification: Performance of pre-optimization done (n=66): time 1.693e-06/0.1121, allocations: 0 / 0.5072 GB, free: 7.762 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.001872/0.114, allocations: 1.59 MB / 0.5088 GB, free: 6.164 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.178e-05/0.1141, allocations: 55.97 kB / 0.5088 GB, free: 6.098 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001149/0.1152, allocations: 1.258 MB / 0.5101 GB, free: 4.828 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.305e-05/0.1153, allocations: 37.7 kB / 0.5101 GB, free: 4.785 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004814/0.1157, allocations: 0.7781 MB / 0.5108 GB, free: 3.996 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001426/0.1159, allocations: 232.6 kB / 0.5111 GB, free: 3.766 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001409/0.116, allocations: 130.6 kB / 0.5112 GB, free: 3.633 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.1162, allocations: 330 kB / 0.5115 GB, free: 3.305 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000578/0.1168, allocations: 481.7 kB / 0.512 GB, free: 2.832 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006843/0.1174, allocations: 0.6598 MB / 0.5126 GB, free: 2.098 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.179/0.2964, allocations: 2.11 MB / 0.5147 GB, free: 26.58 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.07e-05/0.2965, allocations: 1.594 kB / 0.5147 GB, free: 26.58 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001742/0.2982, allocations: 1.344 MB / 0.516 GB, free: 26.53 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.2982, allocations: 10.94 kB / 0.516 GB, free: 26.53 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.946e-06/0.2983, allocations: 3.531 kB / 0.516 GB, free: 26.53 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.113e-05/0.2983, allocations: 13.53 kB / 0.516 GB, free: 26.53 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005151/0.2988, allocations: 173.1 kB / 0.5162 GB, free: 26.53 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.549e-05/0.2988, allocations: 13.39 kB / 0.5162 GB, free: 26.53 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002949/0.2991, allocations: 80.22 kB / 0.5163 GB, free: 26.53 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.777e-05/0.2992, allocations: 39.55 kB / 0.5163 GB, free: 26.53 MB / 398.1 MB Warning: Assuming fixed start value for the following 6 variables: years:VARIABLE(start = 1900.0 fixed = true ) "Time in calendar years" type: Real Population.level:VARIABLE(start = Population.x0 fixed = true ) "Reversible state variable" type: Real Natural_Resources.level:VARIABLE(start = Natural_Resources.x0 fixed = true ) "Reversible state variable" type: Real Capital_Investment.level:VARIABLE(start = Capital_Investment.x0 fixed = true ) "Reversible state variable" type: Real Pollution.level:VARIABLE(start = Pollution.x0 fixed = true ) "Reversible state variable" type: Real CIAF.level:VARIABLE(start = CIAF.x0 fixed = true ) "Reversible state variable" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 96 * 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.0004831/0.2997, allocations: 405.7 kB / 0.5167 GB, free: 26.41 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001034/0.2998, allocations: 133 kB / 0.5168 GB, free: 26.41 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001457/0.3012, allocations: 1.253 MB / 0.518 GB, free: 26.35 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.344e-06/0.3013, allocations: 6.25 kB / 0.5181 GB, free: 26.35 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.3013, allocations: 0.8125 kB / 0.5181 GB, free: 26.35 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.3013, allocations: 3.094 kB / 0.5181 GB, free: 26.35 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002257/0.3035, allocations: 2.37 MB / 0.5204 GB, free: 26.03 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.3036, allocations: 1.219 kB / 0.5204 GB, free: 26.03 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004591/0.304, allocations: 124.5 kB / 0.5205 GB, free: 26.03 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.499e-06/0.304, allocations: 2.25 kB / 0.5205 GB, free: 26.03 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.889e-05/0.3041, allocations: 17.66 kB / 0.5205 GB, free: 26.03 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.117e-06/0.3041, allocations: 6.047 kB / 0.5205 GB, free: 26.03 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.3041, allocations: 5.125 kB / 0.5205 GB, free: 26.02 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00212/0.3062, allocations: 1.937 MB / 0.5224 GB, free: 25.8 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001192/0.3063, allocations: 199 kB / 0.5226 GB, free: 25.63 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.2e-05/0.3064, allocations: 11 kB / 0.5226 GB, free: 25.63 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000241/0.3067, allocations: 27.3 kB / 0.5226 GB, free: 25.63 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001023/0.3068, allocations: 53.14 kB / 0.5227 GB, free: 25.63 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.267e-05/0.3068, allocations: 22.25 kB / 0.5227 GB, free: 25.63 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009365/0.3077, allocations: 0.8699 MB / 0.5236 GB, free: 25.52 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3078, allocations: 0.9844 kB / 0.5236 GB, free: 25.52 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005195/0.3083, allocations: 214.3 kB / 0.5238 GB, free: 25.48 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (years,Population.level,Natural_Resources.level,Capital_Investment.level,Pollution.level,CIAF.level) * 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.000138/0.3084, allocations: 115.8 kB / 0.5239 GB, free: 25.4 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001369/0.3098, allocations: 1.094 MB / 0.5249 GB, free: 25.39 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.3098, allocations: 0 / 0.5249 GB, free: 25.39 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006149/0.3104, allocations: 0.5432 MB / 0.5255 GB, free: 25.38 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004049/0.3108, allocations: 70.31 kB / 0.5255 GB, free: 25.38 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003303/0.3142, allocations: 2.82 MB / 0.5283 GB, free: 24.36 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007269/0.3149, allocations: 1.295 MB / 0.5296 GB, free: 23.66 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001722/0.3151, allocations: 71.8 kB / 0.5296 GB, free: 23.64 MB / 398.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3151, allocations: 1.375 kB / 0.5296 GB, free: 23.64 MB / 398.1 MB Notification: Performance of Templates: time 0.01424/0.3293, allocations: 11.07 MB / 0.5404 GB, free: 19.98 MB / 398.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe 2>&1)