Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001648/0.001648, allocations: 88.72 kB / 19.44 MB, free: 352 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002116/0.002116, allocations: 157.7 kB / 22.75 MB, free: 1.68 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.488/1.488, allocations: 177.1 MB / 203.1 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/package.mo): time 0.1981/0.1981, allocations: 21.79 MB / 281.4 MB, free: 7.195 MB / 266.7 MB " [Timeout remaining time 180] Using package SystemDynamics with version 2.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(SystemDynamics.WorldDynamics.World2.Scenario_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.334e-06/2.334e-06, allocations: 0 / 358.1 MB, free: 5.391 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.743e-05/2.977e-05, allocations: 6.25 kB / 358.1 MB, free: 5.383 MB / 330.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_3): time 0.005359/0.005389, allocations: 3.087 MB / 361.2 MB, free: 2.281 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001597/0.006986, allocations: 0.6702 MB / 361.9 MB, free: 1.609 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003044/0.00729, allocations: 19.88 kB / 361.9 MB, free: 1.59 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004427/0.007733, allocations: 178.3 kB / 362.1 MB, free: 1.414 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003558/0.008089, allocations: 134.8 kB / 362.2 MB, free: 1.281 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007997/0.008889, allocations: 359.5 kB / 362.5 MB, free: 0.9297 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001011/0.0099, allocations: 0.8444 MB / 363.4 MB, free: 84 kB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008135/0.01071, allocations: 468.2 kB / 363.8 MB, free: 15.59 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005976/0.01131, allocations: 0.491 MB / 364.3 MB, free: 15.1 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000352/0.01166, allocations: 290.8 kB / 364.6 MB, free: 14.81 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001463/0.01181, allocations: 84 kB / 364.7 MB, free: 14.73 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002322/0.01204, allocations: 116 kB / 364.8 MB, free: 14.62 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004875/0.01253, allocations: 454.3 kB / 365.3 MB, free: 14.17 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003558/0.01288, allocations: 330.6 kB / 365.6 MB, free: 13.85 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001529/0.01441, allocations: 1.222 MB / 366.8 MB, free: 12.62 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.01442, allocations: 0 / 366.8 MB, free: 12.62 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.01442, allocations: 0 / 366.8 MB, free: 12.62 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.6e-05/0.01443, allocations: 0 / 366.8 MB, free: 12.62 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 263 * Number of variables: 263 Notification: Performance of Generate backend data structure: time 0.002811/0.01725, allocations: 1.742 MB / 368.5 MB, free: 10.83 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/0.01729, allocations: 12.03 kB / 368.5 MB, free: 10.82 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003912/0.01768, allocations: 287.6 kB / 368.8 MB, free: 10.54 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001129/0.01881, allocations: 0.7187 MB / 369.5 MB, free: 9.785 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.976e-05/0.0189, allocations: 74.45 kB / 369.6 MB, free: 9.711 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000151/0.01905, allocations: 104.3 kB / 369.7 MB, free: 9.609 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001962/0.02101, allocations: 1.166 MB / 370.9 MB, free: 8.379 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.214e-05/0.02103, allocations: 4.188 kB / 370.9 MB, free: 8.375 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.921e-05/0.02111, allocations: 40.38 kB / 370.9 MB, free: 8.336 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.35e-05/0.02115, allocations: 28.36 kB / 371 MB, free: 8.309 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00177/0.02292, allocations: 1.105 MB / 372.1 MB, free: 7.207 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005056/0.02797, allocations: 3.277 MB / 375.3 MB, free: 3.844 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001936/0.02991, allocations: 1.304 MB / 376.6 MB, free: 2.523 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006751/0.03058, allocations: 478.5 kB / 377.1 MB, free: 2.055 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.726e-05/0.03067, allocations: 28.64 kB / 377.1 MB, free: 2.027 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.056e-05/0.03071, allocations: 39.22 kB / 377.2 MB, free: 1.98 MB / 346.7 MB Notification: Performance of pre-optimization done (n=68): time 2.735e-06/0.03071, allocations: 0 / 377.2 MB, free: 1.98 MB / 346.7 MB Notification: Performance of matching and sorting (n=68): time 0.002356/0.03307, allocations: 1.551 MB / 378.7 MB, free: 432 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.671e-05/0.03314, allocations: 64.06 kB / 378.8 MB, free: 356 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001694/0.03483, allocations: 1.271 MB / 380.1 MB, free: 15.07 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.272e-05/0.03488, allocations: 37.7 kB / 380.1 MB, free: 15.02 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000749/0.03563, allocations: 0.7647 MB / 380.9 MB, free: 14.25 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002396/0.03587, allocations: 246.1 kB / 381.1 MB, free: 14.01 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000429/0.0363, allocations: 114.7 kB / 381.2 MB, free: 13.89 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001895/0.03649, allocations: 326 kB / 381.5 MB, free: 13.57 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006529/0.03714, allocations: 441.8 kB / 382 MB, free: 13.13 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007482/0.03789, allocations: 0.535 MB / 382.5 MB, free: 12.57 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001473/0.03936, allocations: 1.002 MB / 383.5 MB, free: 11.53 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.03937, allocations: 0 / 383.5 MB, free: 11.53 MB / 362.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001967/0.04134, allocations: 1.23 MB / 384.7 MB, free: 10.29 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.449e-05/0.04136, allocations: 8 kB / 384.7 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/0.04137, allocations: 0 / 384.7 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.324e-05/0.0414, allocations: 8 kB / 384.8 MB, free: 10.28 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005102/0.04191, allocations: 131.8 kB / 384.9 MB, free: 10.15 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.23e-05/0.04193, allocations: 4 kB / 384.9 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002859/0.04221, allocations: 51.92 kB / 384.9 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.995e-05/0.04226, allocations: 32 kB / 385 MB, free: 10.06 MB / 362.7 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 (83): * Single equations (assignments): 83 * 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.000565/0.04283, allocations: 373.4 kB / 385.3 MB, free: 9.688 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002325/0.04306, allocations: 170.9 kB / 385.5 MB, free: 9.52 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001874/0.04493, allocations: 1.199 MB / 386.7 MB, free: 8.309 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.775e-06/0.04494, allocations: 4 kB / 386.7 MB, free: 8.305 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.04495, allocations: 4 kB / 386.7 MB, free: 8.301 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.148e-06/0.04496, allocations: 3.984 kB / 386.7 MB, free: 8.297 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003694/0.04865, allocations: 2.16 MB / 388.9 MB, free: 6.098 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.04866, allocations: 0 / 388.9 MB, free: 6.098 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005315/0.04919, allocations: 111.8 kB / 389 MB, free: 5.988 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.738e-06/0.0492, allocations: 4 kB / 389 MB, free: 5.984 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.626e-05/0.04924, allocations: 16 kB / 389 MB, free: 5.969 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.233e-06/0.04925, allocations: 4 kB / 389 MB, free: 5.965 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.044e-06/0.04926, allocations: 3.984 kB / 389 MB, free: 5.961 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002844/0.0521, allocations: 1.906 MB / 390.9 MB, free: 4.039 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002656/0.05237, allocations: 126.9 kB / 391 MB, free: 3.914 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.599e-05/0.05245, allocations: 12.06 kB / 391 MB, free: 3.902 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002439/0.0527, allocations: 15.98 kB / 391.1 MB, free: 3.887 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001312/0.05283, allocations: 44.58 kB / 391.1 MB, free: 3.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.69e-05/0.05288, allocations: 16 kB / 391.1 MB, free: 3.824 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001458/0.05433, allocations: 0.8762 MB / 392 MB, free: 2.949 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.05433, allocations: 0 / 392 MB, free: 2.949 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008239/0.05516, allocations: 215.2 kB / 392.2 MB, free: 2.738 MB / 362.7 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 (68): * Single equations (assignments): 68 * 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.0003297/0.05549, allocations: 113.9 kB / 392.3 MB, free: 2.621 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001647/0.05713, allocations: 0.9737 MB / 393.3 MB, free: 1.648 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.05714, allocations: 0 / 393.3 MB, free: 1.648 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007193/0.05786, allocations: 0.4956 MB / 393.8 MB, free: 1.152 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006101/0.05847, allocations: 97.2 kB / 393.9 MB, free: 1.062 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004543/0.06301, allocations: 2.809 MB / 396.7 MB, free: 14.21 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009202/0.06393, allocations: 0.7132 MB / 397.4 MB, free: 13.46 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002656/0.06419, allocations: 72.36 kB / 397.5 MB, free: 13.38 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001354/0.06433, allocations: 52.48 kB / 397.5 MB, free: 13.33 MB / 378.7 MB Notification: Performance of SimCode: time 1.463e-06/0.06433, allocations: 0 / 397.5 MB, free: 13.33 MB / 378.7 MB Notification: Performance of Templates: time 0.01245/0.07679, allocations: 4.281 MB / 401.8 MB, free: 9.09 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.makefile [Timeout 660] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_3.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.6491895579965785]