Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.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.001406/0.001406, allocations: 77.7 kB / 19.76 MB, free: 2.031 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.001574/0.001574, allocations: 162.2 kB / 23.01 MB, free: 4.949 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.461/1.461, allocations: 177.2 MB / 203.4 MB, free: 9.234 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.1931/0.1931, allocations: 21.79 MB / 281.6 MB, free: 10.92 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_6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6") [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.002345/0.002345, allocations: 63.91 kB / 418.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2859/0.2883, allocations: 60.77 MB / 479.5 MB, free: 13 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.004737/0.293, allocations: 3.099 MB / 482.6 MB, free: 10.67 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001921/0.2949, allocations: 0.759 MB / 483.4 MB, free: 10.04 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003842/0.2953, allocations: 22.31 kB / 483.4 MB, free: 10.04 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004311/0.2957, allocations: 177.5 kB / 483.6 MB, free: 9.891 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003598/0.2961, allocations: 130.9 kB / 483.7 MB, free: 9.797 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008245/0.2969, allocations: 379.3 kB / 484.1 MB, free: 9.496 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009212/0.2978, allocations: 0.8559 MB / 484.9 MB, free: 8.965 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007499/0.2986, allocations: 475.9 kB / 485.4 MB, free: 8.605 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005729/0.2992, allocations: 0.5384 MB / 485.9 MB, free: 8.219 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004379/0.2996, allocations: 381 kB / 486.3 MB, free: 7.922 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001622/0.2998, allocations: 86.88 kB / 486.4 MB, free: 7.859 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002329/0.3, allocations: 119.9 kB / 486.5 MB, free: 7.742 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004702/0.3005, allocations: 450.4 kB / 487 MB, free: 7.301 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004319/0.3009, allocations: 476.3 kB / 487.4 MB, free: 6.832 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001401/0.3023, allocations: 1.29 MB / 488.7 MB, free: 5.535 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.3023, allocations: 0 / 488.7 MB, free: 5.535 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.3023, allocations: 4 kB / 488.7 MB, free: 5.531 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.254e-05/0.3023, allocations: 4 kB / 488.7 MB, free: 5.527 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: 265 * Number of variables: 265 Notification: Performance of Generate backend data structure: time 0.002443/0.3048, allocations: 1.785 MB / 490.5 MB, free: 3.695 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.3048, allocations: 8.031 kB / 490.5 MB, free: 3.688 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002571/0.3051, allocations: 207.6 kB / 490.7 MB, free: 3.484 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001049/0.3061, allocations: 0.7156 MB / 491.4 MB, free: 2.734 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.117e-05/0.3062, allocations: 74.47 kB / 491.5 MB, free: 2.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001461/0.3063, allocations: 108.3 kB / 491.6 MB, free: 2.555 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001759/0.3081, allocations: 1.186 MB / 492.8 MB, free: 1.301 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.299e-05/0.3081, allocations: 4.125 kB / 492.8 MB, free: 1.297 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.892e-05/0.3082, allocations: 43.94 kB / 492.8 MB, free: 1.254 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.777e-05/0.3082, allocations: 28 kB / 492.9 MB, free: 1.227 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00158/0.3098, allocations: 1.101 MB / 494 MB, free: 120 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004496/0.3143, allocations: 3.271 MB / 497.2 MB, free: 12.75 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001713/0.316, allocations: 1.328 MB / 498.6 MB, free: 11.42 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006484/0.3167, allocations: 474.6 kB / 499 MB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.428e-05/0.3167, allocations: 28.62 kB / 499.1 MB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007859/0.3175, allocations: 0.5471 MB / 499.6 MB, free: 10.36 MB / 398.1 MB Notification: Performance of pre-optimization done (n=72): time 2.866e-06/0.3175, allocations: 4 kB / 499.6 MB, free: 10.36 MB / 398.1 MB Notification: Performance of matching and sorting (n=72): time 0.002102/0.3196, allocations: 1.575 MB / 0.4894 GB, free: 8.781 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.429e-05/0.3197, allocations: 60.06 kB / 0.4895 GB, free: 8.707 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001543/0.3212, allocations: 1.276 MB / 0.4907 GB, free: 7.422 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.835e-05/0.3213, allocations: 41.7 kB / 0.4908 GB, free: 7.375 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007596/0.322, allocations: 0.7689 MB / 0.4915 GB, free: 6.598 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002201/0.3223, allocations: 253.8 kB / 0.4918 GB, free: 6.348 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001903/0.3224, allocations: 122.7 kB / 0.4919 GB, free: 6.223 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001704/0.3226, allocations: 337.9 kB / 0.4922 GB, free: 5.887 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005767/0.3232, allocations: 441.8 kB / 0.4926 GB, free: 5.453 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006707/0.3239, allocations: 0.5523 MB / 0.4932 GB, free: 4.859 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001405/0.3253, allocations: 1.051 MB / 0.4942 GB, free: 3.77 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.192e-06/0.3253, allocations: 4 kB / 0.4942 GB, free: 3.766 MB / 398.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001691/0.327, allocations: 1.226 MB / 0.4954 GB, free: 2.531 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/0.327, allocations: 16.28 kB / 0.4954 GB, free: 2.516 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.327, allocations: 4 kB / 0.4954 GB, free: 2.512 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.857e-05/0.327, allocations: 4 kB / 0.4954 GB, free: 2.508 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005108/0.3275, allocations: 139.8 kB / 0.4956 GB, free: 2.371 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.719e-05/0.3275, allocations: 11.94 kB / 0.4956 GB, free: 2.359 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002679/0.3278, allocations: 47.62 kB / 0.4956 GB, free: 2.312 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.654e-05/0.3279, allocations: 31.98 kB / 0.4956 GB, free: 2.281 MB / 398.1 MB Warning: Assuming fixed start value for the following 2 variables: min_QL:DISCRETE(start = 1.0 fixed = true ) \"Minimum quality of life\" type: Real min_dPop:DISCRETE(unit = \"1/yr\" fixed = true ) \"Minimal derivative of population\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.min_QL,$PRE.min_dPop,min_QL,min_dPop,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 (89): * Single equations (assignments): 89 * 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.0005733/0.3284, allocations: 373.4 kB / 0.496 GB, free: 1.906 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001638/0.3286, allocations: 159 kB / 0.4962 GB, free: 1.75 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001717/0.3303, allocations: 1.234 MB / 0.4974 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.646e-06/0.3303, allocations: 11.94 kB / 0.4974 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.3303, allocations: 0 / 0.4974 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.057e-06/0.3303, allocations: 3.984 kB / 0.4974 GB, free: 500 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002878/0.3332, allocations: 2.191 MB / 0.4995 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.3332, allocations: 0 / 0.4995 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004827/0.3337, allocations: 115.8 kB / 0.4996 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.3337, allocations: 0 / 0.4996 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.037e-05/0.3338, allocations: 23.98 kB / 0.4996 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.625e-06/0.3338, allocations: 4 kB / 0.4997 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3338, allocations: 0 / 0.4997 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002396/0.3362, allocations: 1.941 MB / 0.5015 GB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003046/0.3365, allocations: 178.9 kB / 0.5017 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.064e-05/0.3365, allocations: 16 kB / 0.5017 GB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003569/0.3369, allocations: 12 kB / 0.5017 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001262/0.337, allocations: 44.56 kB / 0.5018 GB, free: 11.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.601e-05/0.3371, allocations: 20 kB / 0.5018 GB, free: 11.89 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001227/0.3383, allocations: 0.8883 MB / 0.5027 GB, free: 11 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3383, allocations: 0 / 0.5027 GB, free: 11 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006157/0.3389, allocations: 219.2 kB / 0.5029 GB, free: 10.79 MB / 414.1 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: 3 ($whenCondition1,min_dPop,min_QL) * Number of discrete states: 2 (min_dPop,min_QL) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0002077/0.3391, allocations: 126 kB / 0.503 GB, free: 10.66 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001377/0.3405, allocations: 0.9933 MB / 0.504 GB, free: 9.664 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.3405, allocations: 0.6875 kB / 0.504 GB, free: 9.664 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006531/0.3412, allocations: 0.5034 MB / 0.5045 GB, free: 9.164 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006526/0.3418, allocations: 96.5 kB / 0.5046 GB, free: 9.074 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00418/0.346, allocations: 2.821 MB / 0.5073 GB, free: 6.215 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001009/0.347, allocations: 0.7329 MB / 0.508 GB, free: 5.453 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002623/0.3473, allocations: 72.53 kB / 0.5081 GB, free: 5.379 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001325/0.3474, allocations: 48.44 kB / 0.5081 GB, free: 5.332 MB / 414.1 MB Notification: Performance of SimCode: time 9.01e-07/0.3474, allocations: 0 / 0.5081 GB, free: 5.332 MB / 414.1 MB Notification: Performance of Templates: time 0.01316/0.3606, allocations: 4.515 MB / 0.5126 GB, free: 0.8398 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.makefile [Timeout 660] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6 -abortSlowSimulation -alarm=480 -s gbode -gbnls=internal -gberr=embedded -gbm=radauIIA3 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.786042983178049] Failed to read output from testmodel.py, exit status != 0: 0.36985498294234276 0.38486292999999994 0.07917222700000001 Calling exit ...