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.001304/0.001304, allocations: 104.3 kB / 19.7 MB, free: 2.156 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.001351/0.001351, allocations: 212.4 kB / 22.99 MB, free: 4.984 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.424/1.424, allocations: 230.6 MB / 256.8 MB, free: 7.797 MB / 206.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.1994/0.1994, allocations: 29.23 MB / 342.4 MB, free: 5.586 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.002166/0.002166, allocations: 63.91 kB / 479.6 MB, free: 15.84 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3774/0.3796, allocations: 60.79 MB / 0.5277 GB, free: 8.109 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.004753/0.3843, allocations: 3.109 MB / 0.5308 GB, free: 6.027 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001807/0.3861, allocations: 0.7551 MB / 0.5315 GB, free: 5.48 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003414/0.3865, allocations: 22.19 kB / 0.5315 GB, free: 5.473 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004309/0.3869, allocations: 173.1 kB / 0.5317 GB, free: 5.371 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003551/0.3873, allocations: 140.5 kB / 0.5318 GB, free: 5.281 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007984/0.388, allocations: 375.9 kB / 0.5322 GB, free: 5.086 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008881/0.3889, allocations: 0.8548 MB / 0.533 GB, free: 4.695 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006548/0.3896, allocations: 0.5046 MB / 0.5335 GB, free: 4.363 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003023/0.3899, allocations: 355.7 kB / 0.5339 GB, free: 4.168 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003796/0.3903, allocations: 445.1 kB / 0.5343 GB, free: 3.906 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001479/0.3904, allocations: 86.69 kB / 0.5344 GB, free: 3.906 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002284/0.3907, allocations: 117.3 kB / 0.5345 GB, free: 3.898 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003928/0.391, allocations: 449.2 kB / 0.5349 GB, free: 3.688 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003035/0.3913, allocations: 474.8 kB / 0.5354 GB, free: 3.363 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001182/0.3925, allocations: 1.289 MB / 0.5366 GB, free: 2.547 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3925, allocations: 0 / 0.5366 GB, free: 2.547 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3925, allocations: 0 / 0.5366 GB, free: 2.547 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.774e-05/0.3926, allocations: 1.375 kB / 0.5366 GB, free: 2.547 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.002128/0.3947, allocations: 1.785 MB / 0.5384 GB, free: 1.16 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.3947, allocations: 9.906 kB / 0.5384 GB, free: 1.16 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002496/0.395, allocations: 219.7 kB / 0.5386 GB, free: 1.035 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008399/0.3958, allocations: 0.7053 MB / 0.5393 GB, free: 476 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.365e-05/0.3959, allocations: 81.03 kB / 0.5393 GB, free: 436 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001338/0.396, allocations: 113.2 kB / 0.5395 GB, free: 392 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001654/0.3977, allocations: 1.172 MB / 0.5406 GB, free: 15.72 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.66e-05/0.3977, allocations: 1.656 kB / 0.5406 GB, free: 15.72 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.055e-05/0.3978, allocations: 49.47 kB / 0.5406 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.942e-05/0.3978, allocations: 25 kB / 0.5407 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001639/0.3994, allocations: 1.104 MB / 0.5417 GB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005101/0.4045, allocations: 3.272 MB / 0.5449 GB, free: 12.99 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002073/0.4066, allocations: 1.334 MB / 0.5462 GB, free: 12.51 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006787/0.4073, allocations: 470.4 kB / 0.5467 GB, free: 12.35 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001008/0.4074, allocations: 25.42 kB / 0.5467 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009984/0.4084, allocations: 0.5473 MB / 0.5473 GB, free: 12.09 MB / 398.1 MB Notification: Performance of pre-optimization done (n=72): time 3.446e-06/0.4084, allocations: 0 / 0.5473 GB, free: 12.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=72): time 0.002394/0.4108, allocations: 1.581 MB / 0.5488 GB, free: 11.23 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.98e-05/0.4109, allocations: 60.06 kB / 0.5489 GB, free: 11.16 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001811/0.4127, allocations: 1.28 MB / 0.5501 GB, free: 9.867 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.533e-05/0.4127, allocations: 41.7 kB / 0.5501 GB, free: 9.82 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007359/0.4135, allocations: 0.7648 MB / 0.5509 GB, free: 9.047 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002366/0.4137, allocations: 262 kB / 0.5511 GB, free: 8.789 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001797/0.4139, allocations: 118.7 kB / 0.5513 GB, free: 8.668 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.4141, allocations: 337.9 kB / 0.5516 GB, free: 8.332 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005594/0.4146, allocations: 441.8 kB / 0.552 GB, free: 7.898 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006639/0.4153, allocations: 0.5561 MB / 0.5525 GB, free: 7.305 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001375/0.4167, allocations: 1.051 MB / 0.5536 GB, free: 6.215 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.955e-06/0.4167, allocations: 4 kB / 0.5536 GB, free: 6.211 MB / 398.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001662/0.4183, allocations: 1.219 MB / 0.5548 GB, free: 4.984 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.433e-05/0.4183, allocations: 8 kB / 0.5548 GB, free: 4.977 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.4184, allocations: 4 kB / 0.5548 GB, free: 4.973 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.39e-05/0.4184, allocations: 4 kB / 0.5548 GB, free: 4.969 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004904/0.4189, allocations: 139.8 kB / 0.5549 GB, free: 4.832 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.988e-05/0.4189, allocations: 8.344 kB / 0.5549 GB, free: 4.824 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002916/0.4192, allocations: 59.61 kB / 0.555 GB, free: 4.766 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.417e-05/0.4192, allocations: 28 kB / 0.555 GB, free: 4.738 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.0006694/0.4199, allocations: 381.4 kB / 0.5554 GB, free: 4.355 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001814/0.4201, allocations: 147 kB / 0.5555 GB, free: 4.211 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001753/0.4218, allocations: 1.238 MB / 0.5567 GB, free: 2.965 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.207e-06/0.4218, allocations: 8 kB / 0.5567 GB, free: 2.957 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.75e-06/0.4218, allocations: 0 / 0.5567 GB, free: 2.957 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.4219, allocations: 7.984 kB / 0.5567 GB, free: 2.949 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002858/0.4247, allocations: 2.187 MB / 0.5589 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.4247, allocations: 0 / 0.5589 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000463/0.4252, allocations: 115.9 kB / 0.559 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.187e-06/0.4252, allocations: 0 / 0.559 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.08e-05/0.4252, allocations: 20 kB / 0.559 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.074e-06/0.4252, allocations: 11.94 kB / 0.559 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.4252, allocations: 0 / 0.559 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002334/0.4276, allocations: 1.937 MB / 0.5609 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003104/0.4279, allocations: 182.9 kB / 0.5611 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.884e-05/0.428, allocations: 15.94 kB / 0.5611 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002224/0.4282, allocations: 16 kB / 0.5611 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.131e-05/0.4283, allocations: 44.56 kB / 0.5611 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.475e-05/0.4283, allocations: 20 kB / 0.5612 GB, free: 14.34 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001159/0.4295, allocations: 0.8805 MB / 0.562 GB, free: 13.46 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4295, allocations: 0 / 0.562 GB, free: 13.46 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006568/0.4301, allocations: 223.1 kB / 0.5622 GB, free: 13.25 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.0002278/0.4304, allocations: 127 kB / 0.5624 GB, free: 13.11 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00135/0.4317, allocations: 0.9933 MB / 0.5633 GB, free: 12.12 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.4317, allocations: 0 / 0.5633 GB, free: 12.12 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006471/0.4324, allocations: 0.5034 MB / 0.5638 GB, free: 11.62 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006059/0.433, allocations: 91.83 kB / 0.5639 GB, free: 11.54 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003943/0.4369, allocations: 2.818 MB / 0.5667 GB, free: 8.68 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008052/0.4377, allocations: 0.7216 MB / 0.5674 GB, free: 7.93 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002308/0.4379, allocations: 76.41 kB / 0.5674 GB, free: 7.852 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001214/0.4381, allocations: 51.42 kB / 0.5675 GB, free: 7.805 MB / 414.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4381, allocations: 0 / 0.5675 GB, free: 7.805 MB / 414.1 MB Notification: Performance of Templates: time 0.01479/0.4529, allocations: 6.19 MB / 0.5735 GB, free: 1.633 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 cvode -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_6.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.088078719971236] Failed to read output from testmodel.py, exit status != 0: 0.46252539404667914 0.476468422 0.08088638100000001 Calling exit ...