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.001438/0.001438, 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.001686/0.001686, allocations: 208.2 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.471/1.471, 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.2002/0.2002, allocations: 29.24 MB / 342.4 MB, free: 5.605 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.002034/0.002034, allocations: 67.91 kB / 479.6 MB, free: 15.86 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3285/0.3305, allocations: 60.79 MB / 0.5277 GB, free: 8.117 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.004482/0.335, allocations: 3.071 MB / 0.5307 GB, free: 6.059 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001578/0.3366, allocations: 0.659 MB / 0.5314 GB, free: 5.57 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003921/0.337, allocations: 23.25 kB / 0.5314 GB, free: 5.562 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004604/0.3374, allocations: 166.8 kB / 0.5316 GB, free: 5.457 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003358/0.3378, allocations: 116.2 kB / 0.5317 GB, free: 5.379 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008907/0.3387, allocations: 357.5 kB / 0.532 GB, free: 5.191 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001106/0.3398, allocations: 0.8391 MB / 0.5328 GB, free: 4.801 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008878/0.3407, allocations: 0.4998 MB / 0.5333 GB, free: 4.473 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000444/0.3411, allocations: 342.4 kB / 0.5336 GB, free: 4.285 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004539/0.3416, allocations: 435.4 kB / 0.5341 GB, free: 4.023 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001654/0.3417, allocations: 86.06 kB / 0.5341 GB, free: 4.023 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002825/0.342, allocations: 115 kB / 0.5342 GB, free: 4.016 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004107/0.3424, allocations: 444.6 kB / 0.5347 GB, free: 3.809 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000273/0.3427, allocations: 453.3 kB / 0.5351 GB, free: 3.5 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001211/0.3439, allocations: 1.252 MB / 0.5363 GB, free: 2.742 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.3439, allocations: 0 / 0.5363 GB, free: 2.742 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3439, allocations: 4 kB / 0.5363 GB, free: 2.738 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.408e-05/0.3439, allocations: 0 / 0.5363 GB, free: 2.738 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.001947/0.3459, allocations: 1.708 MB / 0.538 GB, free: 1.406 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.977e-05/0.3459, allocations: 13.94 kB / 0.538 GB, free: 1.402 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002453/0.3462, allocations: 201.3 kB / 0.5382 GB, free: 1.293 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008196/0.347, allocations: 0.6902 MB / 0.5389 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.826e-05/0.347, allocations: 75.67 kB / 0.539 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001122/0.3472, allocations: 103.8 kB / 0.539 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001353/0.3485, allocations: 1.13 MB / 0.5402 GB, free: 20 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.667e-05/0.3485, allocations: 192 / 0.5402 GB, free: 20 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.042e-05/0.3486, allocations: 49.77 kB / 0.5402 GB, free: 15.98 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.318e-05/0.3487, allocations: 25.53 kB / 0.5402 GB, free: 15.98 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001479/0.3502, allocations: 1.05 MB / 0.5413 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00509/0.3552, allocations: 3.178 MB / 0.5444 GB, free: 13.36 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001622/0.3569, allocations: 1.245 MB / 0.5456 GB, free: 12.92 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000511/0.3574, allocations: 445.8 kB / 0.546 GB, free: 12.76 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.063e-05/0.3575, allocations: 22.33 kB / 0.546 GB, free: 12.75 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.308e-05/0.3575, allocations: 37.75 kB / 0.5461 GB, free: 12.71 MB / 398.1 MB Notification: Performance of pre-optimization done (n=66): time 2.675e-06/0.3575, allocations: 0 / 0.5461 GB, free: 12.71 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.002072/0.3596, allocations: 1.46 MB / 0.5475 GB, free: 12.16 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.156e-05/0.3596, allocations: 59.62 kB / 0.5475 GB, free: 12.1 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001626/0.3612, allocations: 1.21 MB / 0.5487 GB, free: 11.32 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.85e-05/0.3613, allocations: 33.7 kB / 0.5488 GB, free: 11.28 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006643/0.362, allocations: 0.7567 MB / 0.5495 GB, free: 10.52 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002125/0.3622, allocations: 237.9 kB / 0.5497 GB, free: 10.28 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001601/0.3623, allocations: 114.3 kB / 0.5498 GB, free: 10.16 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.3625, allocations: 330 kB / 0.5501 GB, free: 9.836 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005042/0.363, allocations: 413.1 kB / 0.5505 GB, free: 9.43 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005869/0.3636, allocations: 0.5043 MB / 0.551 GB, free: 8.891 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001129/0.3647, allocations: 0.9513 MB / 0.552 GB, free: 7.91 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.019e-05/0.3647, allocations: 11.94 kB / 0.552 GB, free: 7.898 MB / 398.1 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001445/0.3662, allocations: 1.133 MB / 0.5531 GB, free: 6.758 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/0.3662, allocations: 12.06 kB / 0.5531 GB, free: 6.746 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.872e-06/0.3662, allocations: 0 / 0.5531 GB, free: 6.746 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.267e-05/0.3662, allocations: 8 kB / 0.5531 GB, free: 6.738 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004641/0.3667, allocations: 127.8 kB / 0.5532 GB, free: 6.613 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.093e-05/0.3667, allocations: 4 kB / 0.5532 GB, free: 6.609 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000261/0.367, allocations: 51.62 kB / 0.5533 GB, free: 6.559 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.079e-05/0.367, allocations: 23.98 kB / 0.5533 GB, free: 6.535 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.000569/0.3676, allocations: 365.5 kB / 0.5536 GB, free: 6.168 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001554/0.3677, allocations: 135.1 kB / 0.5538 GB, free: 6.035 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001525/0.3692, allocations: 1.148 MB / 0.5549 GB, free: 4.875 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.148e-05/0.3693, allocations: 12 kB / 0.5549 GB, free: 4.863 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.3693, allocations: 3.984 kB / 0.5549 GB, free: 4.859 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.3693, allocations: 0 / 0.5549 GB, free: 4.859 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002639/0.3719, allocations: 2.058 MB / 0.5569 GB, free: 2.758 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.3719, allocations: 0 / 0.5569 GB, free: 2.758 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004447/0.3724, allocations: 103.9 kB / 0.557 GB, free: 2.656 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.973e-06/0.3724, allocations: 7.984 kB / 0.557 GB, free: 2.648 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.275e-05/0.3724, allocations: 12 kB / 0.557 GB, free: 2.637 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.749e-06/0.3724, allocations: 7.938 kB / 0.557 GB, free: 2.629 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.3724, allocations: 0 / 0.557 GB, free: 2.629 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00207/0.3745, allocations: 1.796 MB / 0.5588 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000191/0.3747, allocations: 126.9 kB / 0.5589 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.029e-05/0.3748, allocations: 16 kB / 0.5589 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001933/0.3749, allocations: 12 kB / 0.5589 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.674e-05/0.375, allocations: 36.58 kB / 0.559 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.323e-05/0.375, allocations: 23.98 kB / 0.559 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001098/0.3761, allocations: 0.8356 MB / 0.5598 GB, free: 15.77 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3761, allocations: 0 / 0.5598 GB, free: 15.77 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000614/0.3768, allocations: 203.2 kB / 0.56 GB, free: 15.57 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.0001971/0.377, allocations: 123 kB / 0.5601 GB, free: 15.44 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001211/0.3782, allocations: 0.9191 MB / 0.561 GB, free: 14.52 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.93e-06/0.3782, allocations: 4 kB / 0.561 GB, free: 14.52 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005841/0.3788, allocations: 483.5 kB / 0.5615 GB, free: 14.04 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006092/0.3794, allocations: 89.75 kB / 0.5616 GB, free: 13.96 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003855/0.3832, allocations: 2.689 MB / 0.5642 GB, free: 11.24 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007662/0.384, allocations: 0.6889 MB / 0.5649 GB, free: 10.51 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002321/0.3842, allocations: 68.36 kB / 0.5649 GB, free: 10.45 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000176/0.3844, allocations: 43.44 kB / 0.565 GB, free: 10.41 MB / 414.1 MB Notification: Performance of SimCode: time 9.01e-07/0.3844, allocations: 4 kB / 0.565 GB, free: 10.4 MB / 414.1 MB Notification: Performance of Templates: time 0.01409/0.3985, allocations: 5.843 MB / 0.5707 GB, free: 4.582 MB / 414.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 -s cvode -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.968372449977323] Failed to read output from testmodel.py, exit status != 0: 0.4075677969958633 0.42314133099999995 0.07614440900000001 Calling exit ...