Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.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.001381/0.001381, allocations: 88.72 kB / 19.44 MB, free: 356 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.001596/0.001596, allocations: 157.6 kB / 22.75 MB, free: 1.684 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.46/1.46, allocations: 177.1 MB / 203.1 MB, free: 5.598 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.1966/0.1966, allocations: 21.8 MB / 281.4 MB, free: 7.203 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_5,tolerance=1e-10,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_5,tolerance=1e-10,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 358.1 MB, free: 5.391 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.675e-05/2.838e-05, allocations: 10.25 kB / 358.1 MB, free: 5.379 MB / 330.7 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.004618/0.004646, allocations: 2.76 MB / 360.9 MB, free: 2.605 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001303/0.005949, allocations: 0.5298 MB / 361.4 MB, free: 2.074 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002425/0.006191, allocations: 12 kB / 361.4 MB, free: 2.062 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003573/0.006549, allocations: 142.6 kB / 361.5 MB, free: 1.922 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000358/0.006907, allocations: 130.9 kB / 361.7 MB, free: 1.793 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000684/0.007591, allocations: 283.6 kB / 362 MB, free: 1.516 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008142/0.008405, allocations: 0.7316 MB / 362.7 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000577/0.008982, allocations: 357.6 kB / 363 MB, free: 420 kB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005169/0.009499, allocations: 450.9 kB / 363.5 MB, free: 15.97 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003208/0.00982, allocations: 274.9 kB / 363.7 MB, free: 15.7 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001305/0.00995, allocations: 76 kB / 363.8 MB, free: 15.62 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002152/0.01017, allocations: 111.9 kB / 363.9 MB, free: 15.52 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004513/0.01062, allocations: 450.4 kB / 364.4 MB, free: 15.07 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003215/0.01094, allocations: 302.7 kB / 364.7 MB, free: 14.78 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001297/0.01224, allocations: 1.101 MB / 365.8 MB, free: 13.67 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.01224, allocations: 3.984 kB / 365.8 MB, free: 13.67 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.01224, allocations: 0 / 365.8 MB, free: 13.67 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.269e-05/0.01225, allocations: 0 / 365.8 MB, free: 13.67 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: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.002433/0.01469, allocations: 1.672 MB / 367.4 MB, free: 11.95 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.01473, allocations: 12.03 kB / 367.4 MB, free: 11.94 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003757/0.0151, allocations: 279.6 kB / 367.7 MB, free: 11.66 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006042/0.01571, allocations: 0.5298 MB / 368.3 MB, free: 11.1 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.223e-05/0.0158, allocations: 78.36 kB / 368.3 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001479/0.01595, allocations: 96.38 kB / 368.4 MB, free: 10.93 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001913/0.01786, allocations: 1.075 MB / 369.5 MB, free: 9.836 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.282e-05/0.01788, allocations: 192 / 369.5 MB, free: 9.836 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.095e-05/0.01797, allocations: 40.38 kB / 369.5 MB, free: 9.797 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.901e-05/0.01805, allocations: 54.5 kB / 369.6 MB, free: 9.742 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002019/0.02007, allocations: 1.219 MB / 370.8 MB, free: 8.516 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004197/0.02427, allocations: 2.491 MB / 373.3 MB, free: 5.973 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001599/0.02587, allocations: 0.9731 MB / 374.3 MB, free: 4.984 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007875/0.02665, allocations: 494.6 kB / 374.8 MB, free: 4.5 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.686e-05/0.02674, allocations: 28.64 kB / 374.8 MB, free: 4.473 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.694e-05/0.02678, allocations: 35.22 kB / 374.8 MB, free: 4.43 MB / 346.7 MB Notification: Performance of pre-optimization done (n=66): time 2.164e-06/0.02678, allocations: 4 kB / 374.8 MB, free: 4.426 MB / 346.7 MB Notification: Performance of matching and sorting (n=66): time 0.002628/0.02941, allocations: 1.61 MB / 376.4 MB, free: 2.809 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.73e-05/0.02947, allocations: 67.98 kB / 376.5 MB, free: 2.73 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001624/0.03109, allocations: 1.245 MB / 377.7 MB, free: 1.473 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.053e-05/0.03114, allocations: 37.7 kB / 377.8 MB, free: 1.43 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007518/0.03189, allocations: 0.7793 MB / 378.6 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002354/0.03213, allocations: 241.9 kB / 378.8 MB, free: 412 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000199/0.03233, allocations: 126.6 kB / 378.9 MB, free: 280 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002171/0.03254, allocations: 338 kB / 379.2 MB, free: 15.94 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007923/0.03334, allocations: 473.7 kB / 379.7 MB, free: 15.47 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009658/0.0343, allocations: 0.6483 MB / 380.4 MB, free: 14.75 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004662/0.03896, allocations: 2.125 MB / 382.5 MB, free: 12.55 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.03897, allocations: 0 / 382.5 MB, free: 12.55 MB / 362.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002213/0.04118, allocations: 1.378 MB / 383.9 MB, free: 11.16 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.461e-05/0.04121, allocations: 8 kB / 383.9 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.22e-05/0.04122, allocations: 4 kB / 383.9 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.411e-05/0.04125, allocations: 12 kB / 383.9 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006372/0.04189, allocations: 180.4 kB / 384.1 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.163e-05/0.04191, allocations: 19.94 kB / 384.1 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003665/0.04228, allocations: 87.42 kB / 384.2 MB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.289e-05/0.04234, allocations: 32 kB / 384.2 MB, free: 10.83 MB / 362.7 MB Warning: Assuming fixed start value for the following 6 variables: years:VARIABLE(start = 1900.0 fixed = true ) \"Time in calendar years\" type: Real Population.level:VARIABLE(start = Population.x0 fixed = true ) \"Reversible state variable\" type: Real Natural_Resources.level:VARIABLE(start = Natural_Resources.x0 fixed = true ) \"Reversible state variable\" type: Real Capital_Investment.level:VARIABLE(start = Capital_Investment.x0 fixed = true ) \"Reversible state variable\" type: Real Pollution.level:VARIABLE(start = Pollution.x0 fixed = true ) \"Reversible state variable\" type: Real CIAF.level:VARIABLE(start = CIAF.x0 fixed = true ) \"Reversible state variable\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 96 * 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.0006754/0.04302, allocations: 379.5 kB / 384.6 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000212/0.04323, allocations: 163.1 kB / 384.7 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00212/0.04535, allocations: 1.257 MB / 386 MB, free: 9.016 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.129e-05/0.04536, allocations: 8 kB / 386 MB, free: 9.008 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.04537, allocations: 3.938 kB / 386 MB, free: 9.004 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.193e-05/0.04538, allocations: 7.922 kB / 386 MB, free: 8.996 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003301/0.04868, allocations: 2.167 MB / 388.2 MB, free: 6.789 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.04868, allocations: 0 / 388.2 MB, free: 6.789 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005514/0.04923, allocations: 123.9 kB / 388.3 MB, free: 6.668 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.04924, allocations: 0 / 388.3 MB, free: 6.668 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.033e-05/0.04928, allocations: 16 kB / 388.3 MB, free: 6.652 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.554e-06/0.04929, allocations: 15.88 kB / 388.3 MB, free: 6.637 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.04929, allocations: 0 / 388.3 MB, free: 6.637 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002953/0.05224, allocations: 1.96 MB / 390.3 MB, free: 4.66 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001834/0.05242, allocations: 126.9 kB / 390.4 MB, free: 4.535 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.653e-05/0.0525, allocations: 8.062 kB / 390.4 MB, free: 4.527 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003014/0.0528, allocations: 35.89 kB / 390.5 MB, free: 4.492 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001225/0.05292, allocations: 44.58 kB / 390.5 MB, free: 4.445 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.743e-05/0.05297, allocations: 27.98 kB / 390.5 MB, free: 4.418 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001181/0.05415, allocations: 0.8513 MB / 391.4 MB, free: 3.566 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.05415, allocations: 0 / 391.4 MB, free: 3.566 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006505/0.0548, allocations: 219.2 kB / 391.6 MB, free: 3.352 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (years,Population.level,Natural_Resources.level,Capital_Investment.level,Pollution.level,CIAF.level) * 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 (66): * Single equations (assignments): 66 * 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.0002182/0.05502, allocations: 119.1 kB / 391.7 MB, free: 3.227 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001896/0.05692, allocations: 1.061 MB / 392.8 MB, free: 2.168 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.05692, allocations: 0 / 392.8 MB, free: 2.168 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000851/0.05777, allocations: 0.5346 MB / 393.3 MB, free: 1.629 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000468/0.05824, allocations: 70.66 kB / 393.4 MB, free: 1.559 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004485/0.06272, allocations: 2.781 MB / 396.1 MB, free: 14.73 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009303/0.06365, allocations: 0.7045 MB / 396.9 MB, free: 14 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003656/0.06402, allocations: 120.4 kB / 397 MB, free: 13.88 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001569/0.06417, allocations: 56.44 kB / 397 MB, free: 13.82 MB / 378.7 MB Notification: Performance of SimCode: time 6.21e-07/0.06418, allocations: 0 / 397 MB, free: 13.82 MB / 378.7 MB Notification: Performance of Templates: time 0.01297/0.07715, allocations: 4.486 MB / 401.5 MB, free: 9.363 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.makefile [Timeout 660] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.683850224944763]