Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.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.001528/0.001528, 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.00171/0.00171, allocations: 207.9 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.466/1.466, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.197/0.197, allocations: 29.23 MB / 342.4 MB, free: 5.602 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_4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4") translateModel(SystemDynamics.WorldDynamics.World2.Scenario_4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4") [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.002058/0.002058, allocations: 63.91 kB / 479.6 MB, free: 15.87 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3342/0.3363, allocations: 60.79 MB / 0.5277 GB, free: 8.121 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_4): time 0.00407/0.3403, allocations: 3.091 MB / 0.5308 GB, free: 6.055 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001468/0.3418, allocations: 0.6751 MB / 0.5314 GB, free: 5.559 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000311/0.3421, allocations: 22.25 kB / 0.5314 GB, free: 5.551 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003744/0.3425, allocations: 178.3 kB / 0.5316 GB, free: 5.445 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003038/0.3428, allocations: 139.1 kB / 0.5317 GB, free: 5.359 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006335/0.3434, allocations: 354.3 kB / 0.5321 GB, free: 5.176 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007557/0.3442, allocations: 0.8521 MB / 0.5329 GB, free: 4.781 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006241/0.3448, allocations: 0.4962 MB / 0.5334 GB, free: 4.457 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002533/0.3451, allocations: 347.7 kB / 0.5337 GB, free: 4.266 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003159/0.3454, allocations: 436.5 kB / 0.5341 GB, free: 4.004 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001349/0.3455, allocations: 90.28 kB / 0.5342 GB, free: 4 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002081/0.3457, allocations: 120 kB / 0.5343 GB, free: 3.988 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003505/0.3461, allocations: 458.6 kB / 0.5348 GB, free: 3.777 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002792/0.3463, allocations: 484 kB / 0.5352 GB, free: 3.445 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001108/0.3475, allocations: 1.311 MB / 0.5365 GB, free: 2.645 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.3475, allocations: 0 / 0.5365 GB, free: 2.645 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.3475, allocations: 0 / 0.5365 GB, free: 2.645 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.886e-05/0.3475, allocations: 0 / 0.5365 GB, free: 2.645 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: 290 * Number of variables: 290 Notification: Performance of Generate backend data structure: time 0.001777/0.3493, allocations: 1.818 MB / 0.5383 GB, free: 1.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.3493, allocations: 9.625 kB / 0.5383 GB, free: 1.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001924/0.3495, allocations: 209.1 kB / 0.5385 GB, free: 1.117 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008206/0.3503, allocations: 0.7164 MB / 0.5392 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.809e-05/0.3504, allocations: 81.64 kB / 0.5393 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001131/0.3505, allocations: 102.7 kB / 0.5394 GB, free: 476 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001578/0.3521, allocations: 1.277 MB / 0.5406 GB, free: 15.76 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.638e-05/0.3521, allocations: 5.438 kB / 0.5406 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.876e-05/0.3522, allocations: 53.38 kB / 0.5407 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.386e-05/0.3522, allocations: 45.36 kB / 0.5407 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001643/0.3538, allocations: 1.22 MB / 0.5419 GB, free: 15.26 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00448/0.3583, allocations: 3.481 MB / 0.5453 GB, free: 12.83 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00161/0.3599, allocations: 1.336 MB / 0.5466 GB, free: 12.33 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005714/0.3605, allocations: 479.9 kB / 0.5471 GB, free: 12.16 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.334e-05/0.3606, allocations: 32.91 kB / 0.5471 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.274e-05/0.3606, allocations: 42.56 kB / 0.5472 GB, free: 12.1 MB / 398.1 MB Notification: Performance of pre-optimization done (n=70): time 2.555e-06/0.3606, allocations: 0 / 0.5472 GB, free: 12.1 MB / 398.1 MB Notification: Performance of matching and sorting (n=70): time 0.002278/0.3629, allocations: 1.567 MB / 0.5487 GB, free: 11.38 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.523e-05/0.363, allocations: 85.77 kB / 0.5488 GB, free: 11.27 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001714/0.3647, allocations: 1.349 MB / 0.5501 GB, free: 9.914 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.167e-05/0.3647, allocations: 37.7 kB / 0.5501 GB, free: 9.871 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006899/0.3654, allocations: 0.8461 MB / 0.5509 GB, free: 9.016 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002034/0.3656, allocations: 257.9 kB / 0.5512 GB, free: 8.762 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001987/0.3658, allocations: 150.6 kB / 0.5513 GB, free: 8.609 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001589/0.366, allocations: 341.9 kB / 0.5517 GB, free: 8.27 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006115/0.3666, allocations: 481.8 kB / 0.5521 GB, free: 7.797 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008399/0.3674, allocations: 0.7239 MB / 0.5528 GB, free: 6.965 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00149/0.3689, allocations: 1.237 MB / 0.554 GB, free: 5.617 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.762e-06/0.3689, allocations: 4 kB / 0.554 GB, free: 5.613 MB / 398.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.001934/0.3708, allocations: 1.391 MB / 0.5554 GB, free: 4.215 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.712e-05/0.3709, allocations: 12 kB / 0.5554 GB, free: 4.203 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.429e-05/0.3709, allocations: 8 kB / 0.5554 GB, free: 4.195 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.016e-05/0.3709, allocations: 12 kB / 0.5554 GB, free: 4.184 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006148/0.3715, allocations: 179.7 kB / 0.5556 GB, free: 4.008 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.213e-05/0.3716, allocations: 23.86 kB / 0.5556 GB, free: 3.984 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000442/0.372, allocations: 87.39 kB / 0.5557 GB, free: 3.898 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.572e-05/0.3721, allocations: 39.94 kB / 0.5557 GB, free: 3.859 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 (109): * Single equations (assignments): 109 * 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.0007292/0.3728, allocations: 415.5 kB / 0.5561 GB, free: 3.445 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002699/0.3731, allocations: 151 kB / 0.5563 GB, free: 3.297 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00189/0.375, allocations: 1.251 MB / 0.5575 GB, free: 2.031 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.885e-06/0.375, allocations: 4 kB / 0.5575 GB, free: 2.027 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.375, allocations: 4 kB / 0.5575 GB, free: 2.023 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.234e-05/0.375, allocations: 7.969 kB / 0.5575 GB, free: 2.016 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003137/0.3781, allocations: 2.168 MB / 0.5596 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.3781, allocations: 0 / 0.5596 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005165/0.3786, allocations: 127.8 kB / 0.5598 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.081e-05/0.3787, allocations: 4 kB / 0.5598 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.55e-05/0.3787, allocations: 19.98 kB / 0.5598 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.409e-06/0.3787, allocations: 0 / 0.5598 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.459e-06/0.3787, allocations: 7.938 kB / 0.5598 GB, free: 15.65 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002647/0.3814, allocations: 1.988 MB / 0.5617 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002069/0.3816, allocations: 138.8 kB / 0.5619 GB, free: 13.51 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.842e-05/0.3816, allocations: 16.06 kB / 0.5619 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002532/0.3819, allocations: 16 kB / 0.5619 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001473/0.382, allocations: 48.5 kB / 0.5619 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.319e-05/0.3821, allocations: 24 kB / 0.562 GB, free: 13.41 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001338/0.3834, allocations: 0.9173 MB / 0.5629 GB, free: 12.49 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3834, allocations: 0 / 0.5629 GB, free: 12.49 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008038/0.3842, allocations: 227.2 kB / 0.5631 GB, free: 12.27 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (70): * Single equations (assignments): 70 * 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.0002151/0.3844, allocations: 127 kB / 0.5632 GB, free: 12.14 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001601/0.386, allocations: 1.057 MB / 0.5642 GB, free: 11.08 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.3861, allocations: 0 / 0.5642 GB, free: 11.08 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007888/0.3868, allocations: 0.4997 MB / 0.5647 GB, free: 10.58 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007043/0.3875, allocations: 93.48 kB / 0.5648 GB, free: 10.48 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004432/0.392, allocations: 2.905 MB / 0.5676 GB, free: 7.539 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008476/0.3928, allocations: 0.7416 MB / 0.5684 GB, free: 6.766 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003926/0.3932, allocations: 128.8 kB / 0.5685 GB, free: 6.641 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001777/0.3934, allocations: 59.42 kB / 0.5685 GB, free: 6.582 MB / 414.1 MB Notification: Performance of SimCode: time 1.253e-06/0.3934, allocations: 0 / 0.5685 GB, free: 6.582 MB / 414.1 MB Notification: Performance of Templates: time 0.01502/0.4084, allocations: 6.536 MB / 0.5749 GB, free: 76 kB / 414.1 MB " [Timeout remaining time 660] make -j1 -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.makefile [Timeout 660] (rm -f SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; mkfifo SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe ; head -c 1048576 < SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe >> ../files/SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.sim & ./SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4 -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_4.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.042743306024931] Failed to read output from testmodel.py, exit status != 0: 0.4172123100142926 0.43694386500000004 0.08505572900000001 Calling exit ...