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.001483/0.001483, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.001738/0.001738, allocations: 217.6 kB / 23.01 MB, free: 4.609 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.317/1.317, allocations: 230.6 MB / 256.8 MB, free: 8.039 MB / 206.1 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.1757/0.1757, allocations: 29.23 MB / 342.4 MB, free: 5.812 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.001865/0.001865, allocations: 67.89 kB / 479.7 MB, free: 24 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2641/0.266, allocations: 60.8 MB / 0.5278 GB, free: 8.27 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.00383/0.2698, allocations: 3.685 MB / 0.5314 GB, free: 5.578 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001438/0.2712, allocations: 0.7669 MB / 0.5322 GB, free: 5.02 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003974/0.2716, allocations: 25.84 kB / 0.5322 GB, free: 5.008 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003955/0.272, allocations: 172.4 kB / 0.5324 GB, free: 4.906 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002913/0.2723, allocations: 137.3 kB / 0.5325 GB, free: 4.82 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000731/0.2731, allocations: 383.4 kB / 0.5329 GB, free: 4.617 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007371/0.2738, allocations: 0.8514 MB / 0.5337 GB, free: 4.23 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005751/0.2744, allocations: 0.4994 MB / 0.5342 GB, free: 3.902 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002954/0.2747, allocations: 359.6 kB / 0.5345 GB, free: 3.703 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003467/0.275, allocations: 445.5 kB / 0.5349 GB, free: 3.441 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001261/0.2751, allocations: 86.69 kB / 0.535 GB, free: 3.441 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001917/0.2753, allocations: 116.6 kB / 0.5351 GB, free: 3.434 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000303/0.2756, allocations: 450.1 kB / 0.5356 GB, free: 3.223 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002966/0.2759, allocations: 0.6191 MB / 0.5362 GB, free: 2.742 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001032/0.277, allocations: 1.272 MB / 0.5374 GB, free: 1.961 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.826e-06/0.277, allocations: 1.125 kB / 0.5374 GB, free: 1.961 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.277, allocations: 0 / 0.5374 GB, free: 1.961 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.64e-05/0.277, allocations: 0 / 0.5374 GB, free: 1.961 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.001728/0.2787, allocations: 1.789 MB / 0.5392 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.162e-05/0.2787, allocations: 9.625 kB / 0.5392 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001846/0.2789, allocations: 209.1 kB / 0.5394 GB, free: 468 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007747/0.2797, allocations: 0.7123 MB / 0.5401 GB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.843e-05/0.2798, allocations: 80.72 kB / 0.5401 GB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001153/0.2799, allocations: 109.2 kB / 0.5402 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001556/0.2814, allocations: 1.171 MB / 0.5414 GB, free: 15.13 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.103e-05/0.2815, allocations: 1.5 kB / 0.5414 GB, free: 15.13 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.222e-05/0.2815, allocations: 49.12 kB / 0.5414 GB, free: 15.09 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.244e-05/0.2815, allocations: 26.28 kB / 0.5415 GB, free: 15.09 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001429/0.283, allocations: 1.107 MB / 0.5425 GB, free: 14.68 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004543/0.2875, allocations: 3.6 MB / 0.5461 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001576/0.2891, allocations: 1.339 MB / 0.5474 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005221/0.2896, allocations: 469.4 kB / 0.5478 GB, free: 11.47 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.444e-05/0.2897, allocations: 25.45 kB / 0.5478 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006738/0.2904, allocations: 0.5508 MB / 0.5484 GB, free: 11.21 MB / 398.1 MB Notification: Performance of pre-optimization done (n=72): time 2.815e-06/0.2904, allocations: 0 / 0.5484 GB, free: 11.21 MB / 398.1 MB Notification: Performance of matching and sorting (n=72): time 0.001994/0.2924, allocations: 1.58 MB / 0.5499 GB, free: 10.38 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.036e-05/0.2924, allocations: 67.89 kB / 0.55 GB, free: 10.3 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001557/0.294, allocations: 1.293 MB / 0.5512 GB, free: 9.004 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.671e-05/0.294, allocations: 37.7 kB / 0.5513 GB, free: 8.961 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006357/0.2947, allocations: 0.7767 MB / 0.552 GB, free: 8.176 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002025/0.2949, allocations: 253.8 kB / 0.5523 GB, free: 7.926 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001658/0.295, allocations: 122.6 kB / 0.5524 GB, free: 7.801 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.2952, allocations: 341.8 kB / 0.5527 GB, free: 7.461 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005462/0.2957, allocations: 445.8 kB / 0.5532 GB, free: 7.027 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006356/0.2964, allocations: 0.5523 MB / 0.5537 GB, free: 6.438 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001293/0.2977, allocations: 1.043 MB / 0.5547 GB, free: 5.355 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.2977, allocations: 4 kB / 0.5547 GB, free: 5.352 MB / 398.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001545/0.2992, allocations: 1.227 MB / 0.5559 GB, free: 4.117 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.2992, allocations: 8 kB / 0.5559 GB, free: 4.109 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.322e-05/0.2992, allocations: 7.984 kB / 0.5559 GB, free: 4.102 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.2993, allocations: 4 kB / 0.5559 GB, free: 4.098 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004606/0.2997, allocations: 143.8 kB / 0.5561 GB, free: 3.957 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.274e-05/0.2997, allocations: 8 kB / 0.5561 GB, free: 3.949 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002882/0.3, allocations: 51.56 kB / 0.5561 GB, free: 3.898 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.743e-05/0.3001, allocations: 31.98 kB / 0.5562 GB, free: 3.867 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.0005929/0.3007, allocations: 385.6 kB / 0.5565 GB, free: 3.48 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001493/0.3008, allocations: 147 kB / 0.5567 GB, free: 3.336 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001572/0.3024, allocations: 1.239 MB / 0.5579 GB, free: 2.086 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.3024, allocations: 8 kB / 0.5579 GB, free: 2.078 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.3024, allocations: 0 / 0.5579 GB, free: 2.078 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.796e-06/0.3024, allocations: 3.984 kB / 0.5579 GB, free: 2.074 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00282/0.3052, allocations: 2.393 MB / 0.5602 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.3052, allocations: 0 / 0.5602 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004377/0.3057, allocations: 111.9 kB / 0.5603 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.262e-06/0.3057, allocations: 4 kB / 0.5603 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.631e-05/0.3057, allocations: 16 kB / 0.5603 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.981e-06/0.3057, allocations: 3.938 kB / 0.5603 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.658e-06/0.3057, allocations: 7.938 kB / 0.5604 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002159/0.3079, allocations: 1.941 MB / 0.5623 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002864/0.3082, allocations: 182.9 kB / 0.5624 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.258e-05/0.3082, allocations: 12 kB / 0.5624 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002224/0.3085, allocations: 12 kB / 0.5624 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.803e-05/0.3085, allocations: 48.5 kB / 0.5625 GB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.05e-05/0.3086, allocations: 20 kB / 0.5625 GB, free: 13.25 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001113/0.3097, allocations: 0.9008 MB / 0.5634 GB, free: 12.36 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3097, allocations: 0 / 0.5634 GB, free: 12.36 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005576/0.3102, allocations: 219.2 kB / 0.5636 GB, free: 12.14 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.0001861/0.3104, allocations: 126.2 kB / 0.5637 GB, free: 12.01 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001236/0.3117, allocations: 0.9893 MB / 0.5647 GB, free: 11.02 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.745e-06/0.3117, allocations: 0 / 0.5647 GB, free: 11.02 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005971/0.3123, allocations: 0.5034 MB / 0.5652 GB, free: 10.52 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005637/0.3128, allocations: 90.02 kB / 0.5653 GB, free: 10.43 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003793/0.3166, allocations: 2.921 MB / 0.5681 GB, free: 7.465 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000955/0.3176, allocations: 1.299 MB / 0.5694 GB, free: 6.141 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001764/0.3178, allocations: 63.42 kB / 0.5694 GB, free: 6.082 MB / 414.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3178, allocations: 0 / 0.5694 GB, free: 6.082 MB / 414.1 MB Notification: Performance of Templates: time 0.01634/0.3341, allocations: 11.24 MB / 0.5804 GB, free: 10.83 MB / 430.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 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.159749602898955] Failed to read output from testmodel.py, exit status != 0: 0.3421503510326147 0.35521502600000004 0.075434388 Calling exit ...