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.001688/0.001688, allocations: 75.75 kB / 19.76 MB, free: 1.898 MB / 14.72 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.002152/0.002152, allocations: 157.4 kB / 23.01 MB, free: 4.578 MB / 14.72 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.452/1.452, allocations: 177.2 MB / 203.4 MB, free: 9.289 MB / 190.1 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.1862/0.1862, allocations: 21.81 MB / 281.6 MB, free: 10.96 MB / 270.1 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: SystemDynamics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003277/0.003277, allocations: 71.89 kB / 418.8 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2997/0.303, allocations: 60.76 MB / 479.5 MB, free: 13.05 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_5): time 0.005088/0.3081, allocations: 2.754 MB / 482.3 MB, free: 10.97 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001476/0.3096, allocations: 0.5271 MB / 482.8 MB, free: 10.53 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002994/0.3099, allocations: 12.09 kB / 482.8 MB, free: 10.53 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003198/0.3102, allocations: 147.2 kB / 483 MB, free: 10.41 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003861/0.3106, allocations: 132.9 kB / 483.1 MB, free: 10.32 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007616/0.3114, allocations: 283.4 kB / 483.4 MB, free: 10.1 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008075/0.3122, allocations: 0.7192 MB / 484.1 MB, free: 9.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005997/0.3128, allocations: 354.3 kB / 484.4 MB, free: 9.395 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005164/0.3133, allocations: 483.8 kB / 484.9 MB, free: 9.059 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003843/0.3137, allocations: 351.8 kB / 485.2 MB, free: 8.781 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001328/0.3138, allocations: 74.75 kB / 485.3 MB, free: 8.781 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002125/0.314, allocations: 108.2 kB / 485.4 MB, free: 8.762 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004102/0.3144, allocations: 442.3 kB / 485.9 MB, free: 8.465 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000397/0.3148, allocations: 448.4 kB / 486.3 MB, free: 8.023 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001278/0.3161, allocations: 1.164 MB / 487.5 MB, free: 6.855 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.3161, allocations: 0 / 487.5 MB, free: 6.855 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3161, allocations: 4 kB / 487.5 MB, free: 6.852 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.924e-05/0.3161, allocations: 0 / 487.5 MB, free: 6.852 MB / 382.1 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.002351/0.3185, allocations: 1.699 MB / 489.2 MB, free: 5.109 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.3185, allocations: 12.03 kB / 489.2 MB, free: 5.098 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002664/0.3188, allocations: 195.6 kB / 489.4 MB, free: 4.906 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006334/0.3194, allocations: 0.5189 MB / 489.9 MB, free: 4.352 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.147e-05/0.3195, allocations: 74.38 kB / 490 MB, free: 4.277 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001303/0.3196, allocations: 92.38 kB / 490 MB, free: 4.188 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001812/0.3214, allocations: 1.09 MB / 491.1 MB, free: 3.082 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.485e-05/0.3215, allocations: 192 / 491.1 MB, free: 3.082 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.647e-05/0.3215, allocations: 43.94 kB / 491.2 MB, free: 3.039 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.142e-05/0.3216, allocations: 54.12 kB / 491.2 MB, free: 2.984 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001931/0.3235, allocations: 1.211 MB / 492.4 MB, free: 1.766 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004027/0.3276, allocations: 2.476 MB / 494.9 MB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00149/0.3291, allocations: 0.9681 MB / 495.9 MB, free: 14.25 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007524/0.3298, allocations: 494.6 kB / 496.4 MB, free: 13.77 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.712e-05/0.3299, allocations: 32.64 kB / 496.4 MB, free: 13.74 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.64e-05/0.3299, allocations: 39.22 kB / 496.4 MB, free: 13.69 MB / 398.1 MB Notification: Performance of pre-optimization done (n=66): time 2.174e-06/0.3299, allocations: 3.938 kB / 496.4 MB, free: 13.69 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.002448/0.3324, allocations: 1.594 MB / 498 MB, free: 12.08 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.843e-05/0.3324, allocations: 60.06 kB / 498.1 MB, free: 12.01 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001474/0.3339, allocations: 1.237 MB / 499.3 MB, free: 10.76 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.372e-05/0.3339, allocations: 37.7 kB / 499.4 MB, free: 10.72 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007443/0.3347, allocations: 0.7833 MB / 0.4884 GB, free: 9.926 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002271/0.3349, allocations: 241.9 kB / 0.4887 GB, free: 9.688 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001926/0.3351, allocations: 130.6 kB / 0.4888 GB, free: 9.555 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.3353, allocations: 334 kB / 0.4891 GB, free: 9.223 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007371/0.336, allocations: 481.7 kB / 0.4896 GB, free: 8.75 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008834/0.3369, allocations: 0.656 MB / 0.4902 GB, free: 8.016 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00453/0.3414, allocations: 2.129 MB / 0.4923 GB, free: 5.809 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.562e-06/0.3414, allocations: 4 kB / 0.4923 GB, free: 5.805 MB / 398.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00197/0.3434, allocations: 1.336 MB / 0.4936 GB, free: 4.461 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.3434, allocations: 14.47 kB / 0.4936 GB, free: 4.449 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.383e-05/0.3434, allocations: 12 kB / 0.4936 GB, free: 4.438 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.349e-05/0.3434, allocations: 11.94 kB / 0.4936 GB, free: 4.426 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006124/0.3441, allocations: 175.7 kB / 0.4938 GB, free: 4.254 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.653e-05/0.3441, allocations: 12 kB / 0.4938 GB, free: 4.242 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003843/0.3445, allocations: 83.42 kB / 0.4939 GB, free: 4.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.986e-05/0.3445, allocations: 36 kB / 0.4939 GB, free: 4.125 MB / 398.1 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.0006081/0.3451, allocations: 395.3 kB / 0.4943 GB, free: 3.734 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001584/0.3453, allocations: 139.1 kB / 0.4944 GB, free: 3.598 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001934/0.3472, allocations: 1.261 MB / 0.4957 GB, free: 2.324 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/0.3472, allocations: 8 kB / 0.4957 GB, free: 2.316 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.3472, allocations: 0 / 0.4957 GB, free: 2.316 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.3472, allocations: 3.984 kB / 0.4957 GB, free: 2.312 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002912/0.3502, allocations: 2.155 MB / 0.4978 GB, free: 124 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.3502, allocations: 0 / 0.4978 GB, free: 124 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005567/0.3507, allocations: 131.8 kB / 0.4979 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.805e-06/0.3507, allocations: 11.88 kB / 0.4979 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.542e-05/0.3508, allocations: 12 kB / 0.4979 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.263e-06/0.3508, allocations: 4 kB / 0.4979 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.3508, allocations: 0 / 0.4979 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002625/0.3534, allocations: 1.948 MB / 0.4998 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001724/0.3536, allocations: 130.8 kB / 0.5 GB, free: 13.87 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.517e-05/0.3536, allocations: 12.06 kB / 0.5 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002936/0.3539, allocations: 27.97 kB / 0.5 GB, free: 13.83 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001157/0.354, allocations: 44.58 kB / 0.5 GB, free: 13.78 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.184e-05/0.3541, allocations: 27.98 kB / 0.5001 GB, free: 13.75 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001238/0.3553, allocations: 0.8513 MB / 0.5009 GB, free: 12.9 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3553, allocations: 0 / 0.5009 GB, free: 12.9 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006114/0.3559, allocations: 215.2 kB / 0.5011 GB, free: 12.69 MB / 414.1 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.0001857/0.3561, allocations: 115.1 kB / 0.5012 GB, free: 12.57 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001673/0.3578, allocations: 1.064 MB / 0.5023 GB, free: 11.5 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3578, allocations: 0 / 0.5023 GB, free: 11.5 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008133/0.3586, allocations: 0.5317 MB / 0.5028 GB, free: 10.97 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004506/0.3591, allocations: 61.12 kB / 0.5028 GB, free: 10.91 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003977/0.363, allocations: 2.782 MB / 0.5055 GB, free: 8.09 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008684/0.3639, allocations: 0.7046 MB / 0.5062 GB, free: 7.355 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003345/0.3642, allocations: 116.3 kB / 0.5063 GB, free: 7.238 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001475/0.3644, allocations: 56.48 kB / 0.5064 GB, free: 7.184 MB / 414.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3644, allocations: 0 / 0.5064 GB, free: 7.184 MB / 414.1 MB Notification: Performance of Templates: time 0.01269/0.3771, allocations: 4.526 MB / 0.5108 GB, free: 2.664 MB / 414.1 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 -s gbode -gbnls=internal -gberr=embedded -gbm=radauIIA3 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_5.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.812222184147686] Failed to read output from testmodel.py, exit status != 0: 0.3876829808577895 0.41148995199999994 0.090043523 Calling exit ...