Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.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_4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004966/0.004967, allocations: 98.64 kB / 15.73 MB, free: 6.047 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.001291/0.001291, allocations: 193.6 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.241/1.241, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.278/0.278, allocations: 28.8 MB / 319.3 MB, free: 5.57 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001138/0.001138, allocations: 67.23 kB / 444.4 MB, free: 36.83 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08141/0.08256, allocations: 56.43 MB / 0.489 GB, free: 8.598 MB / 366.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.003398/0.08599, allocations: 3.674 MB / 0.4926 GB, free: 5.645 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001039/0.08704, allocations: 0.6799 MB / 0.4933 GB, free: 5.074 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002758/0.08733, allocations: 18.72 kB / 0.4933 GB, free: 5.07 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003123/0.08765, allocations: 177.1 kB / 0.4935 GB, free: 4.926 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000274/0.08794, allocations: 137 kB / 0.4936 GB, free: 4.828 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005153/0.08846, allocations: 366.2 kB / 0.494 GB, free: 4.535 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005379/0.08901, allocations: 0.855 MB / 0.4948 GB, free: 3.887 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005352/0.08955, allocations: 0.6403 MB / 0.4954 GB, free: 3.207 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000155/0.08971, allocations: 342.4 kB / 0.4957 GB, free: 2.871 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001945/0.08991, allocations: 425.6 kB / 0.4962 GB, free: 2.453 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.742e-05/0.09001, allocations: 88 kB / 0.4962 GB, free: 2.367 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001491/0.09017, allocations: 123.9 kB / 0.4964 GB, free: 2.246 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002037/0.09038, allocations: 442.5 kB / 0.4968 GB, free: 1.812 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002445/0.09063, allocations: 0.6319 MB / 0.4974 GB, free: 1.176 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007602/0.0914, allocations: 1.301 MB / 0.4987 GB, free: 15.86 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.09141, allocations: 4 kB / 0.4987 GB, free: 15.86 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.09141, allocations: 0 / 0.4987 GB, free: 15.86 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.438e-05/0.09143, allocations: 0 / 0.4987 GB, free: 15.86 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: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.001864/0.0933, allocations: 1.884 MB / 0.5005 GB, free: 13.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.816e-05/0.09334, allocations: 8.031 kB / 0.5005 GB, free: 13.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001874/0.09353, allocations: 215.5 kB / 0.5007 GB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000755/0.09429, allocations: 0.7795 MB / 0.5015 GB, free: 12.87 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.687e-05/0.09436, allocations: 78.48 kB / 0.5016 GB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001166/0.09448, allocations: 108.3 kB / 0.5017 GB, free: 12.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001545/0.09603, allocations: 1.278 MB / 0.5029 GB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.207e-05/0.09606, allocations: 4.125 kB / 0.5029 GB, free: 11.33 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.903e-05/0.09613, allocations: 47.94 kB / 0.503 GB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.792e-05/0.09618, allocations: 51.98 kB / 0.503 GB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001431/0.09762, allocations: 1.222 MB / 0.5042 GB, free: 10 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003735/0.1014, allocations: 3.891 MB / 0.508 GB, free: 5.996 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001433/0.1028, allocations: 1.37 MB / 0.5093 GB, free: 4.605 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005182/0.1033, allocations: 499.2 kB / 0.5098 GB, free: 4.113 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.792e-05/0.1034, allocations: 28.55 kB / 0.5098 GB, free: 4.086 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.909e-05/0.1034, allocations: 47.06 kB / 0.5099 GB, free: 4.031 MB / 382.1 MB Notification: Performance of pre-optimization done (n=70): time 1.713e-06/0.1035, allocations: 0 / 0.5099 GB, free: 4.031 MB / 382.1 MB Notification: Performance of matching and sorting (n=70): time 0.001745/0.1052, allocations: 1.56 MB / 0.5114 GB, free: 2.465 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.673e-05/0.1053, allocations: 89.61 kB / 0.5115 GB, free: 2.359 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001288/0.1066, allocations: 1.37 MB / 0.5128 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.157e-05/0.1066, allocations: 37.83 kB / 0.5129 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005239/0.1071, allocations: 0.8618 MB / 0.5137 GB, free: 68 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001602/0.1073, allocations: 254 kB / 0.514 GB, free: 15.81 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001791/0.1075, allocations: 162.6 kB / 0.5141 GB, free: 15.65 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001047/0.1076, allocations: 334 kB / 0.5144 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005466/0.1081, allocations: 477.8 kB / 0.5149 GB, free: 14.85 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006746/0.1088, allocations: 0.716 MB / 0.5156 GB, free: 14.02 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001267/0.1101, allocations: 1.241 MB / 0.5168 GB, free: 12.67 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.1101, allocations: 4 kB / 0.5168 GB, free: 12.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.001559/0.1117, allocations: 1.398 MB / 0.5182 GB, free: 11.26 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.1117, allocations: 8 kB / 0.5182 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.769e-06/0.1117, allocations: 8 kB / 0.5182 GB, free: 11.24 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.244e-05/0.1117, allocations: 16 kB / 0.5182 GB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000561/0.1123, allocations: 179.7 kB / 0.5184 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.929e-05/0.1123, allocations: 15.94 kB / 0.5184 GB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003311/0.1127, allocations: 87.33 kB / 0.5185 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.413e-05/0.1127, allocations: 44 kB / 0.5185 GB, free: 10.91 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 (109): * Single equations (assignments): 109 * 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.0004154/0.1132, allocations: 417.2 kB / 0.5189 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001584/0.1133, allocations: 158.9 kB / 0.5191 GB, free: 10.33 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001508/0.1148, allocations: 1.237 MB / 0.5203 GB, free: 9.086 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.1149, allocations: 7.938 kB / 0.5203 GB, free: 9.078 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.1149, allocations: 4 kB / 0.5203 GB, free: 9.074 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-06/0.1149, allocations: 7.922 kB / 0.5203 GB, free: 9.066 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002429/0.1173, allocations: 2.396 MB / 0.5226 GB, free: 6.613 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.1173, allocations: 0 / 0.5226 GB, free: 6.613 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004532/0.1178, allocations: 119.8 kB / 0.5227 GB, free: 6.496 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.61e-06/0.1178, allocations: 4 kB / 0.5227 GB, free: 6.492 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.504e-05/0.1178, allocations: 23.92 kB / 0.5228 GB, free: 6.469 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.058e-06/0.1179, allocations: 4 kB / 0.5228 GB, free: 6.465 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.1179, allocations: 0 / 0.5228 GB, free: 6.465 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001964/0.1198, allocations: 1.993 MB / 0.5247 GB, free: 4.453 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001559/0.12, allocations: 215.9 kB / 0.5249 GB, free: 4.223 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.764e-05/0.1201, allocations: 16 kB / 0.5249 GB, free: 4.207 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002648/0.1203, allocations: 16 kB / 0.525 GB, free: 4.191 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.322e-05/0.1204, allocations: 48.44 kB / 0.525 GB, free: 4.145 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.475e-05/0.1205, allocations: 27.98 kB / 0.525 GB, free: 4.117 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000937/0.1214, allocations: 0.9336 MB / 0.5259 GB, free: 3.188 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1214, allocations: 0 / 0.5259 GB, free: 3.188 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000561/0.122, allocations: 227.2 kB / 0.5262 GB, free: 2.965 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (70): * Single equations (assignments): 70 * 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.0001541/0.1222, allocations: 119.1 kB / 0.5263 GB, free: 2.836 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001247/0.1234, allocations: 1.088 MB / 0.5273 GB, free: 1.746 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1234, allocations: 0 / 0.5273 GB, free: 1.746 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005546/0.124, allocations: 0.5224 MB / 0.5278 GB, free: 1.223 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006059/0.1246, allocations: 102.8 kB / 0.5279 GB, free: 1.125 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003195/0.1278, allocations: 2.919 MB / 0.5308 GB, free: 14.16 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008031/0.1286, allocations: 1.327 MB / 0.5321 GB, free: 12.8 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000329/0.129, allocations: 132.9 kB / 0.5322 GB, free: 12.68 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001316/0.1291, allocations: 55.42 kB / 0.5323 GB, free: 12.62 MB / 414.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1291, allocations: 4 kB / 0.5323 GB, free: 12.62 MB / 414.1 MB Notification: Performance of Templates: time 0.01098/0.1401, allocations: 5.777 MB / 0.5379 GB, free: 6.852 MB / 414.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe 2>&1)