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.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.001466/0.001466, allocations: 80.94 kB / 19.94 MB, free: 4.547 MB / 18.57 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.001682/0.001682, allocations: 173.4 kB / 23.36 MB, free: 1.133 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 0.9788/0.9788, allocations: 177.1 MB / 203.8 MB, free: 5.461 MB / 186.7 MB " [Timeout remaining time 179] 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.1172/0.1172, allocations: 21.79 MB / 282.1 MB, free: 7.047 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_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.803e-06/1.803e-06, allocations: 0 / 306 MB, free: 9.742 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.848e-05/2.029e-05, allocations: 2.312 kB / 306 MB, free: 9.738 MB / 282.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_2): time 0.004473/0.004493, allocations: 3.166 MB / 309.2 MB, free: 6.863 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001771/0.006264, allocations: 0.7241 MB / 309.9 MB, free: 6.137 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003705/0.006635, allocations: 19.94 kB / 310 MB, free: 6.117 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003884/0.007023, allocations: 170.3 kB / 310.1 MB, free: 5.949 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003461/0.007369, allocations: 142.8 kB / 310.3 MB, free: 5.809 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006961/0.008065, allocations: 355.5 kB / 310.6 MB, free: 5.461 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008333/0.008898, allocations: 0.8482 MB / 311.5 MB, free: 4.609 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006456/0.009544, allocations: 484.1 kB / 311.9 MB, free: 4.09 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004654/0.01001, allocations: 494.8 kB / 312.4 MB, free: 3.605 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002817/0.01029, allocations: 294.7 kB / 312.7 MB, free: 3.316 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001263/0.01042, allocations: 84 kB / 312.8 MB, free: 3.234 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002069/0.01062, allocations: 123.9 kB / 312.9 MB, free: 3.113 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003266/0.01095, allocations: 450.4 kB / 313.3 MB, free: 2.672 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002649/0.01122, allocations: 330.6 kB / 313.7 MB, free: 2.348 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008716/0.01209, allocations: 0.9057 MB / 314.6 MB, free: 1.438 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.814e-06/0.01209, allocations: 0 / 314.6 MB, free: 1.438 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.01209, allocations: 0 / 314.6 MB, free: 1.438 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.698e-05/0.01211, allocations: 3.938 kB / 314.6 MB, free: 1.434 MB / 282.7 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.001207/0.01331, allocations: 1.718 MB / 316.3 MB, free: 15.68 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.748e-05/0.01334, allocations: 12.03 kB / 316.3 MB, free: 15.66 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001465/0.01349, allocations: 200.8 kB / 316.5 MB, free: 15.47 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000482/0.01397, allocations: 0.6368 MB / 317.1 MB, free: 14.8 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.494e-05/0.01402, allocations: 74.44 kB / 317.2 MB, free: 14.72 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.27e-05/0.01409, allocations: 104.4 kB / 317.3 MB, free: 14.62 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005686/0.01466, allocations: 0.7043 MB / 318 MB, free: 13.85 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/0.01467, allocations: 192 / 318 MB, free: 13.85 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.379e-05/0.01471, allocations: 40.38 kB / 318.1 MB, free: 13.81 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.646e-05/0.01472, allocations: 32.12 kB / 318.1 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002775/0.015, allocations: 256.5 kB / 318.3 MB, free: 13.52 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00184/0.01684, allocations: 2.234 MB / 320.6 MB, free: 11.22 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003531/0.01719, allocations: 338.2 kB / 320.9 MB, free: 10.88 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.484e-05/0.01729, allocations: 94.78 kB / 321 MB, free: 10.78 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.977e-05/0.01734, allocations: 28.64 kB / 321 MB, free: 10.75 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.199e-05/0.01736, allocations: 43.16 kB / 321.1 MB, free: 10.7 MB / 298.7 MB Notification: Performance of pre-optimization done (n=67): time 1.553e-06/0.01736, allocations: 0 / 321.1 MB, free: 10.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=67): time 0.0003904/0.01775, allocations: 361.9 kB / 321.4 MB, free: 10.34 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.695e-05/0.01778, allocations: 60.06 kB / 321.5 MB, free: 10.27 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005611/0.01834, allocations: 0.9909 MB / 322.5 MB, free: 9.27 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.3e-05/0.01836, allocations: 37.7 kB / 322.5 MB, free: 9.227 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002082/0.01857, allocations: 0.5097 MB / 323 MB, free: 8.707 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001006/0.01867, allocations: 241.9 kB / 323.3 MB, free: 8.469 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.235e-05/0.01877, allocations: 106.3 kB / 323.4 MB, free: 8.359 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.555e-05/0.01884, allocations: 337.9 kB / 323.7 MB, free: 8.023 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.08e-05/0.01892, allocations: 64.09 kB / 323.8 MB, free: 7.961 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001254/0.01905, allocations: 168.5 kB / 323.9 MB, free: 7.762 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002385/0.01929, allocations: 285.1 kB / 324.2 MB, free: 7.449 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.01929, allocations: 0 / 324.2 MB, free: 7.449 MB / 298.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.0003246/0.01961, allocations: 364.1 kB / 324.6 MB, free: 7.086 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.01963, allocations: 11.94 kB / 324.6 MB, free: 7.074 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.01963, allocations: 0 / 324.6 MB, free: 7.074 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.01964, allocations: 8 kB / 324.6 MB, free: 7.066 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002496/0.01989, allocations: 139.8 kB / 324.7 MB, free: 6.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.453e-06/0.0199, allocations: 7.984 kB / 324.7 MB, free: 6.922 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001131/0.02001, allocations: 51.56 kB / 324.8 MB, free: 6.871 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.028e-05/0.02003, allocations: 20 kB / 324.8 MB, free: 6.852 MB / 298.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 (Population.Integrator1.local_reset,Natural_Resources.Integrator1.local_reset,Capital_Investment.Integrator1.local_reset,Pollution.Integrator1.local_reset,CIAF.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.0001542/0.02019, allocations: 150.8 kB / 324.9 MB, free: 6.695 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.694e-05/0.02026, allocations: 99.83 kB / 325 MB, free: 6.598 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003863/0.02065, allocations: 420.1 kB / 325.4 MB, free: 6.172 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.419e-06/0.02066, allocations: 8 kB / 325.4 MB, free: 6.164 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.244e-06/0.02066, allocations: 3.984 kB / 325.5 MB, free: 6.16 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.02066, allocations: 0 / 325.5 MB, free: 6.16 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007421/0.0214, allocations: 0.8961 MB / 326.3 MB, free: 5.238 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.02141, allocations: 0 / 326.3 MB, free: 5.238 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002339/0.02164, allocations: 111.9 kB / 326.5 MB, free: 5.129 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.02164, allocations: 3.938 kB / 326.5 MB, free: 5.125 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.019e-05/0.02166, allocations: 15.98 kB / 326.5 MB, free: 5.109 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.02167, allocations: 4 kB / 326.5 MB, free: 5.105 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.02167, allocations: 4 kB / 326.5 MB, free: 5.102 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004355/0.0221, allocations: 0.5623 MB / 327 MB, free: 4.523 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.528e-05/0.02218, allocations: 130.8 kB / 327.2 MB, free: 4.395 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.433e-05/0.02222, allocations: 15.98 kB / 327.2 MB, free: 4.379 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.768e-05/0.02232, allocations: 12 kB / 327.2 MB, free: 4.367 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.816e-05/0.02237, allocations: 36.58 kB / 327.2 MB, free: 4.328 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.581e-05/0.02238, allocations: 15.98 kB / 327.3 MB, free: 4.312 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003304/0.02271, allocations: 0.498 MB / 327.7 MB, free: 3.812 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.02271, allocations: 0 / 327.7 MB, free: 3.812 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002825/0.023, allocations: 207.2 kB / 328 MB, free: 3.609 MB / 298.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 (67): * Single equations (assignments): 67 * 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.0001113/0.02311, allocations: 110.8 kB / 328.1 MB, free: 3.496 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000265/0.02337, allocations: 267.6 kB / 328.3 MB, free: 3.23 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.024e-05/0.02338, allocations: 16 kB / 328.3 MB, free: 3.215 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001299/0.02351, allocations: 161.8 kB / 328.5 MB, free: 3.055 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002943/0.02381, allocations: 86.42 kB / 328.6 MB, free: 2.977 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001939/0.02575, allocations: 2.246 MB / 330.8 MB, free: 0.6875 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002014/0.02595, allocations: 341 kB / 331.2 MB, free: 340 kB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001363/0.02608, allocations: 64.36 kB / 331.2 MB, free: 276 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001349/0.02622, allocations: 119.4 kB / 331.3 MB, free: 156 kB / 298.7 MB Notification: Performance of SimCode: time 7.51e-07/0.02622, allocations: 0 / 331.3 MB, free: 156 kB / 298.7 MB Notification: Performance of Templates: time 0.008846/0.03507, allocations: 4.782 MB / 336.1 MB, free: 11.43 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.makefile [Timeout 660] (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=240 -s gbode -gbm=radauIIA3 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_2.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.7225913968868554]