Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.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_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001466/0.001467, allocations: 115.4 kB / 16.42 MB, free: 6.492 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.001592/0.001592, allocations: 185.7 kB / 17.35 MB, free: 5.762 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.314/1.314, allocations: 222.9 MB / 241.1 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.1652/0.1652, allocations: 28.77 MB / 320 MB, free: 1.918 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 63.89 kB / 445 MB, free: 2.543 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09418/0.0954, allocations: 56.42 MB / 0.4897 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.004741/0.1002, allocations: 3.646 MB / 0.4932 GB, free: 6.41 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001759/0.102, allocations: 0.6779 MB / 0.4939 GB, free: 5.73 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005723/0.1026, allocations: 23.88 kB / 0.4939 GB, free: 5.707 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005517/0.1031, allocations: 170.3 kB / 0.4941 GB, free: 5.539 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004433/0.1036, allocations: 134.8 kB / 0.4942 GB, free: 5.406 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007141/0.1043, allocations: 363.5 kB / 0.4946 GB, free: 5.051 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007239/0.105, allocations: 0.8484 MB / 0.4954 GB, free: 4.199 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007668/0.1058, allocations: 0.6325 MB / 0.496 GB, free: 3.527 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002456/0.1061, allocations: 338.4 kB / 0.4963 GB, free: 3.195 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002985/0.1064, allocations: 417.6 kB / 0.4967 GB, free: 2.785 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001249/0.1065, allocations: 84 kB / 0.4968 GB, free: 2.703 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001701/0.1067, allocations: 116 kB / 0.4969 GB, free: 2.59 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003061/0.107, allocations: 430.5 kB / 0.4973 GB, free: 2.168 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003854/0.1074, allocations: 0.6125 MB / 0.4979 GB, free: 1.551 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009916/0.1084, allocations: 1.256 MB / 0.4992 GB, free: 296 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1084, allocations: 0 / 0.4992 GB, free: 296 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1084, allocations: 0 / 0.4992 GB, free: 296 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.373e-05/0.1084, allocations: 4 kB / 0.4992 GB, free: 292 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.001971/0.1104, allocations: 1.768 MB / 0.5009 GB, free: 14.45 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.1105, allocations: 11.97 kB / 0.5009 GB, free: 14.44 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002019/0.1107, allocations: 198.5 kB / 0.5011 GB, free: 14.25 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008757/0.1115, allocations: 0.7589 MB / 0.5018 GB, free: 13.44 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.066e-05/0.1116, allocations: 78.44 kB / 0.5019 GB, free: 13.36 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001067/0.1117, allocations: 100.4 kB / 0.502 GB, free: 13.26 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001407/0.1131, allocations: 1.158 MB / 0.5031 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.484e-05/0.1132, allocations: 8.109 kB / 0.5031 GB, free: 12.03 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.005e-05/0.1132, allocations: 47.94 kB / 0.5032 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.906e-05/0.1133, allocations: 24 kB / 0.5032 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001329/0.1146, allocations: 1.097 MB / 0.5043 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003966/0.1186, allocations: 3.638 MB / 0.5078 GB, free: 7.117 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001459/0.12, allocations: 1.33 MB / 0.5091 GB, free: 5.773 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005123/0.1206, allocations: 498.2 kB / 0.5096 GB, free: 5.285 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.597e-05/0.1206, allocations: 28.77 kB / 0.5096 GB, free: 5.258 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.822e-05/0.1207, allocations: 39.11 kB / 0.5097 GB, free: 5.211 MB / 398.1 MB Notification: Performance of pre-optimization done (n=67): time 1.984e-06/0.1207, allocations: 0 / 0.5097 GB, free: 5.211 MB / 398.1 MB Notification: Performance of matching and sorting (n=67): time 0.001768/0.1225, allocations: 1.52 MB / 0.5112 GB, free: 3.684 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.254e-05/0.1225, allocations: 59.97 kB / 0.5112 GB, free: 3.613 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001333/0.1239, allocations: 1.281 MB / 0.5125 GB, free: 2.324 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.748e-05/0.1239, allocations: 45.7 kB / 0.5125 GB, free: 2.273 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005907/0.1245, allocations: 0.7715 MB / 0.5133 GB, free: 1.492 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001639/0.1247, allocations: 224.7 kB / 0.5135 GB, free: 1.27 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001502/0.1248, allocations: 114.2 kB / 0.5136 GB, free: 1.152 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.125, allocations: 333.9 kB / 0.5139 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005105/0.1255, allocations: 441 kB / 0.5143 GB, free: 400 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2338/0.3594, allocations: 0.5286 MB / 0.5148 GB, free: 26.86 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00134/0.3607, allocations: 0.9905 MB / 0.5158 GB, free: 26.76 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.568e-06/0.3607, allocations: 1.5 kB / 0.5158 GB, free: 26.76 MB / 398.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001351/0.3621, allocations: 1.184 MB / 0.517 GB, free: 26.71 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.635e-05/0.3621, allocations: 6.469 kB / 0.517 GB, free: 26.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.318e-05/0.3622, allocations: 4.469 kB / 0.517 GB, free: 26.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.29e-05/0.3622, allocations: 4.906 kB / 0.517 GB, free: 26.71 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004524/0.3626, allocations: 130.6 kB / 0.5171 GB, free: 26.71 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.912e-05/0.3627, allocations: 7.75 kB / 0.5171 GB, free: 26.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002394/0.3629, allocations: 53.62 kB / 0.5172 GB, free: 26.71 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.62e-05/0.363, allocations: 22.44 kB / 0.5172 GB, free: 26.71 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 (82): * Single equations (assignments): 82 * 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.0004414/0.3634, allocations: 380.9 kB / 0.5175 GB, free: 26.6 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001314/0.3635, allocations: 143.6 kB / 0.5177 GB, free: 26.6 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001355/0.3649, allocations: 1.188 MB / 0.5188 GB, free: 26.54 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.3649, allocations: 6.734 kB / 0.5189 GB, free: 26.54 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.3649, allocations: 0.9375 kB / 0.5189 GB, free: 26.54 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001656/0.3651, allocations: 200.2 kB / 0.519 GB, free: 26.39 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.747e-05/0.3652, allocations: 18.91 kB / 0.5191 GB, free: 26.39 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002101/0.3654, allocations: 9.906 kB / 0.5191 GB, free: 26.39 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.468e-05/0.3655, allocations: 38.34 kB / 0.5191 GB, free: 26.39 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001299/0.3668, allocations: 1.127 MB / 0.5202 GB, free: 26.27 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001894/0.3687, allocations: 1.948 MB / 0.5221 GB, free: 25.96 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005337/0.3692, allocations: 0.4995 MB / 0.5226 GB, free: 25.95 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001019/0.3703, allocations: 0.8935 MB / 0.5235 GB, free: 25.84 MB / 398.1 MB Notification: Performance of Backend: time 5.21e-07/0.3703, allocations: 0 / 0.5235 GB, free: 25.84 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001143/0.3714, allocations: 0.6432 MB / 0.5241 GB, free: 25.77 MB / 398.1 MB Notification: Performance of SimCode: time 0.003342/0.3748, allocations: 2.885 MB / 0.5269 GB, free: 24.3 MB / 398.1 MB Notification: Performance of Templates: time 0.01651/0.3913, allocations: 7.607 MB / 0.5343 GB, free: 23.58 MB / 398.1 MB make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.makefile (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe 2>&1)