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.001369/0.001369, allocations: 92.7 kB / 19.44 MB, free: 324 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.00153/0.00153, allocations: 161.3 kB / 22.75 MB, free: 1.656 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.471/1.471, allocations: 177.1 MB / 203.1 MB, free: 5.594 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.1987/0.1987, allocations: 21.79 MB / 281.4 MB, free: 7.215 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 1.392e-06/1.392e-06, allocations: 0 / 358.1 MB, free: 5.41 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.488e-05/2.627e-05, allocations: 10.19 kB / 358.1 MB, free: 5.398 MB / 330.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.004965/0.004991, allocations: 3.099 MB / 361.2 MB, free: 2.285 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001554/0.006545, allocations: 0.6817 MB / 361.9 MB, free: 1.602 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003004/0.006846, allocations: 19.88 kB / 361.9 MB, free: 1.582 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004412/0.007287, allocations: 174.3 kB / 362.1 MB, free: 1.41 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003747/0.007662, allocations: 146.7 kB / 362.2 MB, free: 1.266 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007882/0.00845, allocations: 355.5 kB / 362.6 MB, free: 0.918 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001037/0.009487, allocations: 0.8562 MB / 363.4 MB, free: 60 kB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007765/0.01026, allocations: 468.2 kB / 363.9 MB, free: 15.57 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005943/0.01086, allocations: 0.4949 MB / 364.4 MB, free: 15.07 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003591/0.01122, allocations: 298.7 kB / 364.7 MB, free: 14.78 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001565/0.01137, allocations: 88 kB / 364.7 MB, free: 14.69 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002304/0.0116, allocations: 111.9 kB / 364.9 MB, free: 14.58 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004871/0.01209, allocations: 474.3 kB / 365.3 MB, free: 14.12 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003758/0.01247, allocations: 334.5 kB / 365.6 MB, free: 13.79 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001556/0.01402, allocations: 1.249 MB / 366.9 MB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.594e-06/0.01403, allocations: 7.938 kB / 366.9 MB, free: 12.53 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.01403, allocations: 0 / 366.9 MB, free: 12.53 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.617e-05/0.01405, allocations: 0 / 366.9 MB, free: 12.53 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.002637/0.01669, allocations: 1.778 MB / 368.7 MB, free: 10.7 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.01672, allocations: 12.03 kB / 368.7 MB, free: 10.69 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003796/0.0171, allocations: 291.6 kB / 369 MB, free: 10.41 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001098/0.0182, allocations: 0.7301 MB / 369.7 MB, free: 9.641 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000101/0.0183, allocations: 82.48 kB / 369.8 MB, free: 9.559 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001572/0.01846, allocations: 112.3 kB / 369.9 MB, free: 9.449 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002049/0.02051, allocations: 1.278 MB / 371.2 MB, free: 8.102 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.126e-05/0.02053, allocations: 4.188 kB / 371.2 MB, free: 8.098 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.092e-05/0.02061, allocations: 40.38 kB / 371.2 MB, free: 8.059 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.451e-05/0.02067, allocations: 48.36 kB / 371.3 MB, free: 8.012 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001938/0.02261, allocations: 1.23 MB / 372.5 MB, free: 6.773 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005015/0.02763, allocations: 3.496 MB / 376 MB, free: 3.184 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001983/0.02961, allocations: 1.332 MB / 377.3 MB, free: 1.828 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000712/0.03032, allocations: 479.5 kB / 377.8 MB, free: 1.355 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.575e-05/0.03041, allocations: 36.5 kB / 377.8 MB, free: 1.32 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.47e-05/0.03045, allocations: 47.2 kB / 377.9 MB, free: 1.266 MB / 346.7 MB Notification: Performance of pre-optimization done (n=70): time 2.064e-06/0.03045, allocations: 0 / 377.9 MB, free: 1.266 MB / 346.7 MB Notification: Performance of matching and sorting (n=70): time 0.002485/0.03294, allocations: 1.586 MB / 379.5 MB, free: 15.67 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.471e-05/0.03301, allocations: 85.77 kB / 379.5 MB, free: 15.57 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001783/0.0348, allocations: 1.349 MB / 380.9 MB, free: 14.21 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.097e-05/0.03485, allocations: 37.7 kB / 380.9 MB, free: 14.17 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008336/0.03568, allocations: 0.8425 MB / 381.8 MB, free: 13.32 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002517/0.03593, allocations: 265.7 kB / 382 MB, free: 13.05 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002466/0.03618, allocations: 150.6 kB / 382.2 MB, free: 12.9 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002067/0.03639, allocations: 341.9 kB / 382.5 MB, free: 12.56 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007584/0.03714, allocations: 477.9 kB / 383 MB, free: 12.09 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001008/0.03815, allocations: 0.7161 MB / 383.7 MB, free: 11.27 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001803/0.03996, allocations: 1.245 MB / 384.9 MB, free: 9.914 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.03996, allocations: 0 / 384.9 MB, free: 9.914 MB / 362.7 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.002211/0.04217, allocations: 1.43 MB / 386.4 MB, free: 8.477 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.525e-05/0.0422, allocations: 11.98 kB / 386.4 MB, free: 8.465 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.486e-05/0.04221, allocations: 8 kB / 386.4 MB, free: 8.457 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.377e-05/0.04225, allocations: 12 kB / 386.4 MB, free: 8.445 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006383/0.04288, allocations: 187.7 kB / 386.6 MB, free: 8.262 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.423e-05/0.04291, allocations: 12 kB / 386.6 MB, free: 8.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003962/0.0433, allocations: 87.39 kB / 386.7 MB, free: 8.164 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.367e-05/0.04338, allocations: 40 kB / 386.7 MB, free: 8.125 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 (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.0005961/0.04397, allocations: 401.3 kB / 387.1 MB, free: 7.723 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002607/0.04423, allocations: 187 kB / 387.3 MB, free: 7.539 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002025/0.04626, allocations: 1.239 MB / 388.5 MB, free: 6.289 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.04e-05/0.04627, allocations: 8 kB / 388.5 MB, free: 6.281 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.04628, allocations: 0 / 388.5 MB, free: 6.281 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.035e-05/0.04629, allocations: 3.984 kB / 388.5 MB, free: 6.277 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003214/0.0495, allocations: 2.184 MB / 390.7 MB, free: 4.055 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.706e-06/0.0495, allocations: 0 / 390.7 MB, free: 4.055 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005218/0.05003, allocations: 123.9 kB / 390.9 MB, free: 3.934 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.933e-06/0.05003, allocations: 4 kB / 390.9 MB, free: 3.93 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.615e-05/0.05008, allocations: 16 kB / 390.9 MB, free: 3.914 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.486e-06/0.05009, allocations: 7.938 kB / 390.9 MB, free: 3.906 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.05009, allocations: 0 / 390.9 MB, free: 3.906 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002773/0.05286, allocations: 2.011 MB / 392.9 MB, free: 1.879 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002001/0.05306, allocations: 138.8 kB / 393 MB, free: 1.742 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.621e-05/0.05315, allocations: 16.06 kB / 393 MB, free: 1.727 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003014/0.05345, allocations: 24.11 kB / 393.1 MB, free: 1.703 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001112/0.05356, allocations: 40.58 kB / 393.1 MB, free: 1.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.654e-05/0.05361, allocations: 27.92 kB / 393.1 MB, free: 1.633 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001309/0.05492, allocations: 0.9173 MB / 394 MB, free: 0.7188 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.05492, allocations: 0 / 394 MB, free: 0.7188 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007506/0.05567, allocations: 235.1 kB / 394.3 MB, free: 500 kB / 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.00023/0.0559, allocations: 111.1 kB / 394.4 MB, free: 380 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001693/0.05759, allocations: 1.061 MB / 395.4 MB, free: 15.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.05759, allocations: 0 / 395.4 MB, free: 15.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000768/0.05836, allocations: 0.5116 MB / 396 MB, free: 14.79 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007094/0.05907, allocations: 100.5 kB / 396.1 MB, free: 14.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004357/0.06343, allocations: 2.908 MB / 399 MB, free: 11.74 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001002/0.06443, allocations: 0.7416 MB / 399.7 MB, free: 10.97 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004253/0.06485, allocations: 136.8 kB / 399.8 MB, free: 10.83 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000163/0.06502, allocations: 52.5 kB / 399.9 MB, free: 10.78 MB / 378.7 MB Notification: Performance of SimCode: time 7.52e-07/0.06502, allocations: 0 / 399.9 MB, free: 10.78 MB / 378.7 MB Notification: Performance of Templates: time 0.01341/0.07843, allocations: 4.7 MB / 404.6 MB, free: 6.125 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=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.557432664907537]