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.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.0008581/0.0008581, allocations: 73.09 kB / 20.65 MB, free: 3.844 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.001375/0.001375, allocations: 169 kB / 24.06 MB, free: 452 kB / 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.9458/0.9458, allocations: 177.1 MB / 204.5 MB, free: 5.469 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.1227/0.1227, allocations: 21.81 MB / 282.8 MB, free: 6.992 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_4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 9.61e-07/9.61e-07, allocations: 0 / 360.1 MB, free: 4.633 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.301e-05/2.397e-05, allocations: 2.312 kB / 360.1 MB, free: 4.629 MB / 330.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.0033/0.003324, allocations: 3.145 MB / 363.2 MB, free: 1.469 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001471/0.004796, allocations: 0.674 MB / 363.9 MB, free: 0.793 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003483/0.005144, allocations: 19.88 kB / 363.9 MB, free: 0.7734 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002912/0.005435, allocations: 174.3 kB / 364.1 MB, free: 0.6016 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002284/0.005664, allocations: 142.8 kB / 364.2 MB, free: 472 kB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005255/0.006189, allocations: 367.5 kB / 364.6 MB, free: 104 kB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006234/0.006812, allocations: 0.8522 MB / 365.4 MB, free: 15.25 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004794/0.007292, allocations: 480 kB / 365.9 MB, free: 14.74 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003667/0.007659, allocations: 498.8 kB / 366.4 MB, free: 14.25 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002222/0.007881, allocations: 298.8 kB / 366.7 MB, free: 13.96 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.71e-05/0.007968, allocations: 84 kB / 366.7 MB, free: 13.88 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001477/0.008116, allocations: 116 kB / 366.9 MB, free: 13.77 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002599/0.008375, allocations: 478.3 kB / 367.3 MB, free: 13.3 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001766/0.008552, allocations: 326.5 kB / 367.6 MB, free: 12.98 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007149/0.009267, allocations: 0.9407 MB / 368.6 MB, free: 12.03 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.00927, allocations: 4 kB / 368.6 MB, free: 12.03 MB / 346.7 MB Notification: Performance of FrontEnd: time 7.41e-07/0.00927, allocations: 0 / 368.6 MB, free: 12.03 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.707e-05/0.009287, allocations: 0 / 368.6 MB, free: 12.03 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: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.001522/0.01081, allocations: 1.941 MB / 370.5 MB, free: 10.03 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.794e-05/0.01084, allocations: 12.03 kB / 370.5 MB, free: 10.02 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001921/0.01103, allocations: 299.5 kB / 370.8 MB, free: 9.727 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005095/0.01154, allocations: 0.7173 MB / 371.5 MB, free: 8.973 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.816e-05/0.01159, allocations: 78.48 kB / 371.6 MB, free: 8.895 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.333e-05/0.01166, allocations: 104.4 kB / 371.7 MB, free: 8.793 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007325/0.01239, allocations: 0.7686 MB / 372.5 MB, free: 7.938 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.688e-05/0.01241, allocations: 192 / 372.5 MB, free: 7.938 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.159e-05/0.01245, allocations: 56.3 kB / 372.6 MB, free: 7.883 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.94e-05/0.01249, allocations: 48.36 kB / 372.6 MB, free: 7.836 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003201/0.01281, allocations: 326.3 kB / 372.9 MB, free: 7.504 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002437/0.01525, allocations: 3.353 MB / 376.3 MB, free: 4.047 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003921/0.01564, allocations: 379.5 kB / 376.6 MB, free: 3.652 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001094/0.01575, allocations: 113.3 kB / 376.8 MB, free: 3.535 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.827e-05/0.0158, allocations: 40.48 kB / 376.8 MB, free: 3.496 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.171e-05/0.01582, allocations: 42.05 kB / 376.8 MB, free: 3.445 MB / 346.7 MB Notification: Performance of pre-optimization done (n=70): time 1.603e-06/0.01582, allocations: 3.938 kB / 376.8 MB, free: 3.441 MB / 346.7 MB Notification: Performance of matching and sorting (n=70): time 0.00053/0.01635, allocations: 0.5438 MB / 377.4 MB, free: 2.891 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.395e-05/0.01639, allocations: 89.7 kB / 377.5 MB, free: 2.785 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007212/0.01711, allocations: 1.235 MB / 378.7 MB, free: 1.527 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.668e-05/0.01713, allocations: 41.7 kB / 378.7 MB, free: 1.48 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004266/0.01756, allocations: 0.936 MB / 379.7 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000113/0.01767, allocations: 265.8 kB / 379.9 MB, free: 276 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001188/0.01779, allocations: 156.2 kB / 380.1 MB, free: 112 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.01792, allocations: 0.512 MB / 380.6 MB, free: 15.59 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001002/0.01802, allocations: 85.92 kB / 380.7 MB, free: 15.5 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002418/0.01826, allocations: 455.2 kB / 381.1 MB, free: 14.91 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003929/0.01865, allocations: 0.5989 MB / 381.7 MB, free: 14.16 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.601e-06/0.01866, allocations: 7.938 kB / 381.7 MB, free: 14.15 MB / 362.7 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.0007995/0.01946, allocations: 0.6718 MB / 382.4 MB, free: 13.47 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.01947, allocations: 8 kB / 382.4 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.01948, allocations: 8 kB / 382.4 MB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.01949, allocations: 15.94 kB / 382.4 MB, free: 13.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002997/0.01979, allocations: 176.4 kB / 382.6 MB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.188e-05/0.01981, allocations: 23.92 kB / 382.6 MB, free: 13.24 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001665/0.01997, allocations: 83.41 kB / 382.7 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.29e-05/0.02001, allocations: 32 kB / 382.7 MB, free: 13.13 MB / 362.7 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 (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 (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.0001726/0.02018, allocations: 219.1 kB / 383 MB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001158/0.02029, allocations: 175 kB / 383.1 MB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000505/0.0208, allocations: 0.5359 MB / 383.7 MB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.0208, allocations: 8 kB / 383.7 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.02081, allocations: 3.938 kB / 383.7 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.895e-06/0.02081, allocations: 3.984 kB / 383.7 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000896/0.02171, allocations: 1.093 MB / 384.8 MB, free: 11.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.02171, allocations: 4.031 kB / 384.8 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002412/0.02195, allocations: 119.8 kB / 384.9 MB, free: 10.93 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.43e-06/0.02196, allocations: 8 kB / 384.9 MB, free: 10.92 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.142e-05/0.02198, allocations: 15.98 kB / 384.9 MB, free: 10.9 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.02198, allocations: 4 kB / 384.9 MB, free: 10.9 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.02198, allocations: 0 / 384.9 MB, free: 10.9 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000577/0.02256, allocations: 0.8573 MB / 385.8 MB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.156e-05/0.02264, allocations: 134.8 kB / 385.9 MB, free: 9.883 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.519e-05/0.02269, allocations: 12 kB / 385.9 MB, free: 9.871 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001248/0.02281, allocations: 16 kB / 385.9 MB, free: 9.855 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.636e-05/0.02287, allocations: 52.56 kB / 386 MB, free: 9.801 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.041e-05/0.02289, allocations: 16 kB / 386 MB, free: 9.785 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003763/0.02327, allocations: 0.6632 MB / 386.7 MB, free: 9.125 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02327, allocations: 0 / 386.7 MB, free: 9.125 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003706/0.02364, allocations: 227.2 kB / 386.9 MB, free: 8.902 MB / 362.7 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.000121/0.02376, allocations: 127.1 kB / 387 MB, free: 8.77 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003495/0.02411, allocations: 381 kB / 387.4 MB, free: 8.398 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.363e-06/0.02411, allocations: 0 / 387.4 MB, free: 8.398 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001449/0.02425, allocations: 176.6 kB / 387.6 MB, free: 8.223 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003893/0.02464, allocations: 100.1 kB / 387.7 MB, free: 8.125 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002068/0.02671, allocations: 2.347 MB / 390 MB, free: 5.727 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002102/0.02692, allocations: 345 kB / 390.3 MB, free: 5.367 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001788/0.0271, allocations: 92.94 kB / 390.4 MB, free: 5.273 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001616/0.02726, allocations: 162.2 kB / 390.6 MB, free: 5.113 MB / 362.7 MB Notification: Performance of SimCode: time 6.21e-07/0.02726, allocations: 0 / 390.6 MB, free: 5.113 MB / 362.7 MB Notification: Performance of Templates: time 0.009601/0.03686, allocations: 5.362 MB / 396 MB, free: 15.8 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.makefile [Timeout 660] (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=240 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.0426461650058627]