Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.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.00144/0.00144, 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.001629/0.001629, allocations: 218.7 kB / 23.01 MB, free: 5.125 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.324/1.324, allocations: 230.6 MB / 256.8 MB, free: 7.965 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.1778/0.1778, allocations: 29.22 MB / 342.4 MB, free: 5.781 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_1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1") [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.001924/0.001924, allocations: 63.91 kB / 479.7 MB, free: 4 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2851/0.2871, allocations: 60.79 MB / 0.5278 GB, free: 8.238 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.003818/0.2909, allocations: 3.646 MB / 0.5314 GB, free: 5.574 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001389/0.2923, allocations: 0.6674 MB / 0.532 GB, free: 5.078 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003958/0.2927, allocations: 19.06 kB / 0.532 GB, free: 5.074 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003799/0.293, allocations: 160.9 kB / 0.5322 GB, free: 4.973 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002763/0.2933, allocations: 126.6 kB / 0.5323 GB, free: 4.887 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006928/0.294, allocations: 358.9 kB / 0.5327 GB, free: 4.695 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007423/0.2948, allocations: 0.8364 MB / 0.5335 GB, free: 4.309 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005905/0.2953, allocations: 0.4988 MB / 0.534 GB, free: 3.98 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002701/0.2956, allocations: 341.3 kB / 0.5343 GB, free: 3.793 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003175/0.2959, allocations: 437.8 kB / 0.5347 GB, free: 3.531 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000125/0.2961, allocations: 85.09 kB / 0.5348 GB, free: 3.531 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002157/0.2963, allocations: 114 kB / 0.5349 GB, free: 3.523 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003639/0.2966, allocations: 446 kB / 0.5353 GB, free: 3.316 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003084/0.2969, allocations: 0.5981 MB / 0.5359 GB, free: 2.852 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001137/0.2981, allocations: 1.226 MB / 0.5371 GB, free: 2.125 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.217e-06/0.2981, allocations: 0 / 0.5371 GB, free: 2.125 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2981, allocations: 0 / 0.5371 GB, free: 2.125 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.554e-05/0.2981, allocations: 0 / 0.5371 GB, free: 2.125 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: 259 * Number of variables: 259 Notification: Performance of Generate backend data structure: time 0.001608/0.2997, allocations: 1.712 MB / 0.5388 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.194e-05/0.2997, allocations: 9.625 kB / 0.5388 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001674/0.2999, allocations: 201 kB / 0.539 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006789/0.3006, allocations: 0.6883 MB / 0.5396 GB, free: 120 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.087e-05/0.3006, allocations: 75.67 kB / 0.5397 GB, free: 84 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.885e-05/0.3007, allocations: 104.2 kB / 0.5398 GB, free: 48 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001458/0.3022, allocations: 1.135 MB / 0.5409 GB, free: 15.4 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.174e-05/0.3022, allocations: 1.281 kB / 0.5409 GB, free: 15.4 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.226e-05/0.3023, allocations: 44.69 kB / 0.541 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.314e-05/0.3023, allocations: 29.78 kB / 0.541 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001331/0.3036, allocations: 1.052 MB / 0.542 GB, free: 14.97 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00428/0.3079, allocations: 3.507 MB / 0.5455 GB, free: 12.46 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001408/0.3093, allocations: 1.247 MB / 0.5467 GB, free: 12.01 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004662/0.3098, allocations: 443 kB / 0.5471 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.707e-05/0.3098, allocations: 32.05 kB / 0.5471 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.075e-05/0.3099, allocations: 42.72 kB / 0.5472 GB, free: 11.79 MB / 398.1 MB Notification: Performance of pre-optimization done (n=66): time 1.884e-06/0.3099, allocations: 0 / 0.5472 GB, free: 11.79 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.001659/0.3115, allocations: 1.453 MB / 0.5486 GB, free: 11.25 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.809e-05/0.3116, allocations: 62.12 kB / 0.5486 GB, free: 11.18 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001414/0.313, allocations: 1.236 MB / 0.5499 GB, free: 10.4 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.016e-05/0.313, allocations: 37.7 kB / 0.5499 GB, free: 10.36 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005991/0.3136, allocations: 0.7566 MB / 0.5506 GB, free: 9.594 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001834/0.3138, allocations: 241.9 kB / 0.5509 GB, free: 9.355 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001561/0.314, allocations: 114.3 kB / 0.551 GB, free: 9.238 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.3141, allocations: 329.9 kB / 0.5513 GB, free: 8.91 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004922/0.3146, allocations: 413.1 kB / 0.5517 GB, free: 8.504 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005523/0.3152, allocations: 0.5043 MB / 0.5522 GB, free: 7.965 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001084/0.3163, allocations: 0.9513 MB / 0.5531 GB, free: 6.984 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.3163, allocations: 4 kB / 0.5531 GB, free: 6.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001345/0.3176, allocations: 1.137 MB / 0.5542 GB, free: 5.836 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.3176, allocations: 8 kB / 0.5542 GB, free: 5.828 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.3176, allocations: 11.92 kB / 0.5542 GB, free: 5.816 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.043e-05/0.3177, allocations: 4 kB / 0.5542 GB, free: 5.812 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004334/0.3181, allocations: 131.8 kB / 0.5544 GB, free: 5.684 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.3181, allocations: 4 kB / 0.5544 GB, free: 5.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002258/0.3183, allocations: 51.56 kB / 0.5544 GB, free: 5.629 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.967e-05/0.3184, allocations: 27.98 kB / 0.5544 GB, free: 5.602 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (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 (81): * Single equations (assignments): 81 * 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.0004644/0.3188, allocations: 361.6 kB / 0.5548 GB, free: 5.238 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001584/0.319, allocations: 147 kB / 0.5549 GB, free: 5.094 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001431/0.3204, allocations: 1.144 MB / 0.556 GB, free: 3.938 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.036e-05/0.3204, allocations: 8 kB / 0.556 GB, free: 3.93 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.3204, allocations: 0 / 0.556 GB, free: 3.93 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.3204, allocations: 3.984 kB / 0.5561 GB, free: 3.926 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002621/0.3231, allocations: 2.243 MB / 0.5582 GB, free: 1.625 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.3231, allocations: 0 / 0.5582 GB, free: 1.625 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004188/0.3235, allocations: 107.8 kB / 0.5583 GB, free: 1.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.641e-06/0.3235, allocations: 4 kB / 0.5583 GB, free: 1.516 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.03e-05/0.3235, allocations: 16 kB / 0.5584 GB, free: 1.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.3e-06/0.3235, allocations: 4 kB / 0.5584 GB, free: 1.496 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3235, allocations: 0 / 0.5584 GB, free: 1.496 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00195/0.3255, allocations: 1.804 MB / 0.5601 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001978/0.3257, allocations: 127 kB / 0.5603 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.487e-05/0.3258, allocations: 12 kB / 0.5603 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002002/0.326, allocations: 12 kB / 0.5603 GB, free: 15.53 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.629e-05/0.326, allocations: 36.58 kB / 0.5603 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.205e-05/0.3261, allocations: 27.94 kB / 0.5603 GB, free: 15.46 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001013/0.3271, allocations: 0.848 MB / 0.5612 GB, free: 14.62 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3271, allocations: 0 / 0.5612 GB, free: 14.62 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005326/0.3276, allocations: 215.2 kB / 0.5614 GB, free: 14.41 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: 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.0001799/0.3278, allocations: 115.2 kB / 0.5615 GB, free: 14.29 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001109/0.3289, allocations: 0.9195 MB / 0.5624 GB, free: 13.37 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.3289, allocations: 4.188 kB / 0.5624 GB, free: 13.36 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005183/0.3294, allocations: 479.5 kB / 0.5628 GB, free: 12.89 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005486/0.33, allocations: 95.06 kB / 0.5629 GB, free: 12.8 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003793/0.3337, allocations: 2.775 MB / 0.5656 GB, free: 9.988 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009504/0.3347, allocations: 1.276 MB / 0.5669 GB, free: 8.684 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001741/0.3349, allocations: 59.42 kB / 0.5669 GB, free: 8.629 MB / 414.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3349, allocations: 0 / 0.5669 GB, free: 8.629 MB / 414.1 MB Notification: Performance of Templates: time 0.01766/0.3525, allocations: 10.71 MB / 0.5774 GB, free: 13.91 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.makefile [Timeout 660] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.005154400831088] Failed to read output from testmodel.py, exit status != 0: 0.36107231699861586 0.374500219 0.073541597 Calling exit ...