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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001849/0.001849, allocations: 101.7 kB / 19.59 MB, free: 2.324 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002059/0.002059, allocations: 194 kB / 22.85 MB, free: 5.652 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.77/1.77, allocations: 225.6 MB / 251.5 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo): time 0.2818/0.2818, allocations: 29.24 MB / 336 MB, free: 11.36 MB / 270.1 MB " [Timeout remaining time 179] Using package SystemDynamics with version 2.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SystemDynamics 2.1.2-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.002056/0.002056, allocations: 75.88 kB / 470.8 MB, free: 6.898 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6246/0.6266, allocations: 59.61 MB / 0.518 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_6): time 0.005983/0.6326, allocations: 3.697 MB / 0.5216 GB, free: 7.316 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002304/0.6349, allocations: 0.7676 MB / 0.5223 GB, free: 6.758 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004973/0.6354, allocations: 22.81 kB / 0.5224 GB, free: 6.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005484/0.636, allocations: 184.7 kB / 0.5225 GB, free: 6.637 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004612/0.6364, allocations: 142.1 kB / 0.5227 GB, free: 6.547 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001071/0.6375, allocations: 380.8 kB / 0.523 GB, free: 6.348 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001268/0.6388, allocations: 0.8661 MB / 0.5239 GB, free: 5.949 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009145/0.6397, allocations: 0.5011 MB / 0.5244 GB, free: 5.625 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004667/0.6402, allocations: 357 kB / 0.5247 GB, free: 5.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005729/0.6407, allocations: 451 kB / 0.5251 GB, free: 5.164 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001911/0.6409, allocations: 85.91 kB / 0.5252 GB, free: 5.164 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003008/0.6412, allocations: 117.6 kB / 0.5253 GB, free: 5.156 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005758/0.6418, allocations: 453.9 kB / 0.5258 GB, free: 4.941 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005619/0.6424, allocations: 0.6176 MB / 0.5264 GB, free: 4.465 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001964/0.6443, allocations: 1.275 MB / 0.5276 GB, free: 3.793 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.516e-06/0.6443, allocations: 1.25 kB / 0.5276 GB, free: 3.793 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.659e-06/0.6443, allocations: 7.938 kB / 0.5276 GB, free: 3.785 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.578e-05/0.6444, allocations: 0 / 0.5276 GB, free: 3.785 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.002957/0.6473, allocations: 1.785 MB / 0.5294 GB, free: 2.555 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.242e-05/0.6474, allocations: 9.031 kB / 0.5294 GB, free: 2.555 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003676/0.6477, allocations: 209.6 kB / 0.5296 GB, free: 2.441 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001244/0.649, allocations: 0.7285 MB / 0.5303 GB, free: 1.922 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000101/0.6491, allocations: 77.06 kB / 0.5304 GB, free: 1.887 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000173/0.6493, allocations: 104 kB / 0.5305 GB, free: 1.852 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002416/0.6517, allocations: 1.173 MB / 0.5316 GB, free: 1.363 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.803e-05/0.6517, allocations: 4.125 kB / 0.5316 GB, free: 1.359 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.579e-05/0.6518, allocations: 46.38 kB / 0.5317 GB, free: 1.324 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.985e-05/0.6518, allocations: 25.81 kB / 0.5317 GB, free: 1.324 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002037/0.6539, allocations: 1.108 MB / 0.5328 GB, free: 1.051 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006592/0.6604, allocations: 3.579 MB / 0.5363 GB, free: 15.03 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002435/0.6629, allocations: 1.328 MB / 0.5376 GB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008665/0.6637, allocations: 473.2 kB / 0.538 GB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001273/0.6639, allocations: 29.52 kB / 0.538 GB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001131/0.665, allocations: 0.5488 MB / 0.5386 GB, free: 14.41 MB / 398.1 MB Notification: Performance of pre-optimization done (n=72): time 4.789e-06/0.665, allocations: 1.438 kB / 0.5386 GB, free: 14.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=72): time 0.003181/0.6682, allocations: 1.573 MB / 0.5401 GB, free: 13.98 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.434e-05/0.6683, allocations: 64.47 kB / 0.5402 GB, free: 13.91 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002468/0.6708, allocations: 1.299 MB / 0.5414 GB, free: 13.25 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.424e-05/0.6708, allocations: 37.11 kB / 0.5415 GB, free: 13.21 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008695/0.6717, allocations: 0.7908 MB / 0.5422 GB, free: 12.52 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002846/0.672, allocations: 250.6 kB / 0.5425 GB, free: 12.3 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002559/0.6722, allocations: 125.1 kB / 0.5426 GB, free: 12.22 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001947/0.6724, allocations: 336.2 kB / 0.5429 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007403/0.6732, allocations: 447.6 kB / 0.5434 GB, free: 11.75 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008929/0.6741, allocations: 0.5492 MB / 0.5439 GB, free: 11.46 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001811/0.6759, allocations: 1.048 MB / 0.5449 GB, free: 11 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.6759, allocations: 1.5 kB / 0.5449 GB, free: 11 MB / 398.1 MB Notification: Performance of matching and sorting (n=89) (initialization): time 0.002316/0.6782, allocations: 1.223 MB / 0.5461 GB, free: 10.52 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.293e-05/0.6782, allocations: 6.688 kB / 0.5461 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.535e-05/0.6782, allocations: 2.656 kB / 0.5461 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.76e-05/0.6783, allocations: 14.64 kB / 0.5461 GB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005528/0.6788, allocations: 134.3 kB / 0.5463 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.093e-05/0.6789, allocations: 11.08 kB / 0.5463 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003934/0.6793, allocations: 56.34 kB / 0.5463 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.673e-05/0.6793, allocations: 29.19 kB / 0.5464 GB, free: 10.43 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.00107/0.6804, allocations: 381.4 kB / 0.5467 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002345/0.6806, allocations: 148 kB / 0.5469 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0024/0.683, allocations: 1.243 MB / 0.5481 GB, free: 9.551 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-05/0.683, allocations: 6.5 kB / 0.5481 GB, free: 9.551 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.049e-05/0.683, allocations: 1.469 kB / 0.5481 GB, free: 9.551 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.796e-05/0.6831, allocations: 3.984 kB / 0.5481 GB, free: 9.547 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004222/0.6873, allocations: 2.39 MB / 0.5504 GB, free: 7.855 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.6873, allocations: 0 / 0.5504 GB, free: 7.855 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004675/0.6878, allocations: 115.8 kB / 0.5505 GB, free: 7.742 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.294e-06/0.6878, allocations: 4 kB / 0.5505 GB, free: 7.738 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.494e-05/0.6878, allocations: 27.92 kB / 0.5506 GB, free: 7.711 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.859e-06/0.6878, allocations: 7.984 kB / 0.5506 GB, free: 7.703 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.6878, allocations: 3.938 kB / 0.5506 GB, free: 7.699 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002458/0.6903, allocations: 1.933 MB / 0.5525 GB, free: 5.75 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003433/0.6906, allocations: 190.8 kB / 0.5526 GB, free: 5.562 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001027/0.6907, allocations: 16 kB / 0.5527 GB, free: 5.547 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002616/0.691, allocations: 19.94 kB / 0.5527 GB, free: 5.527 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000123/0.6911, allocations: 48.5 kB / 0.5527 GB, free: 5.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.483e-05/0.6912, allocations: 16 kB / 0.5527 GB, free: 5.465 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001572/0.6927, allocations: 0.9008 MB / 0.5536 GB, free: 4.566 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.6927, allocations: 0 / 0.5536 GB, free: 4.566 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009306/0.6937, allocations: 215.2 kB / 0.5538 GB, free: 4.355 MB / 398.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.0002953/0.694, allocations: 119.1 kB / 0.5539 GB, free: 4.23 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001531/0.6955, allocations: 0.9972 MB / 0.5549 GB, free: 3.23 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.6955, allocations: 0 / 0.5549 GB, free: 3.23 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000683/0.6962, allocations: 0.5034 MB / 0.5554 GB, free: 2.73 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007118/0.6969, allocations: 97.52 kB / 0.5555 GB, free: 2.637 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004766/0.7017, allocations: 2.842 MB / 0.5583 GB, free: 15.76 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001182/0.7028, allocations: 1.311 MB / 0.5595 GB, free: 14.42 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002824/0.7031, allocations: 80.55 kB / 0.5596 GB, free: 14.34 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001362/0.7033, allocations: 47.42 kB / 0.5597 GB, free: 14.29 MB / 414.1 MB Notification: Performance of SimCode: time 1.332e-06/0.7033, allocations: 0 / 0.5597 GB, free: 14.29 MB / 414.1 MB Notification: Performance of Templates: time 0.01584/0.7191, allocations: 5.846 MB / 0.5654 GB, free: 8.449 MB / 414.1 MB " [Timeout remaining time 659] 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: 6.469536199998402] Failed to read output from testmodel.py, exit status != 0: 0.7292318969994085 0.746710753 0.09860287300000001 Calling exit ...