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.001614/0.001614, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002179/0.002179, allocations: 216.6 kB / 22.25 MB, free: 4.855 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.435/1.435, allocations: 230.6 MB / 256 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.2032/0.2032, allocations: 29.22 MB / 341.6 MB, free: 5.594 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.002109/0.002109, allocations: 75.88 kB / 478.9 MB, free: 15.85 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3671/0.3692, allocations: 60.8 MB / 0.527 GB, free: 8.117 MB / 382.1 MB Notification: Performance of NFInst.instantiate(SystemDynamics.WorldDynamics.World2.Scenario_1): time 0.00455/0.3737, allocations: 3.059 MB / 0.53 GB, free: 6.07 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00204/0.3758, allocations: 0.6629 MB / 0.5306 GB, free: 5.578 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005875/0.3763, allocations: 18.97 kB / 0.5307 GB, free: 5.574 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005968/0.3769, allocations: 166.4 kB / 0.5308 GB, free: 5.469 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003759/0.3773, allocations: 122.2 kB / 0.5309 GB, free: 5.387 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009236/0.3782, allocations: 354.1 kB / 0.5313 GB, free: 5.199 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001031/0.3793, allocations: 0.8364 MB / 0.5321 GB, free: 4.812 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007449/0.38, allocations: 472.1 kB / 0.5325 GB, free: 4.523 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000344/0.3804, allocations: 346.4 kB / 0.5329 GB, free: 4.332 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003988/0.3808, allocations: 380.5 kB / 0.5332 GB, free: 4.125 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001486/0.3809, allocations: 88.16 kB / 0.5333 GB, free: 4.121 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002605/0.3812, allocations: 111.5 kB / 0.5334 GB, free: 4.117 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004115/0.3816, allocations: 444.2 kB / 0.5338 GB, free: 3.91 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003036/0.3819, allocations: 462.3 kB / 0.5343 GB, free: 3.594 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001246/0.3831, allocations: 1.24 MB / 0.5355 GB, free: 2.855 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.3831, allocations: 7.031 kB / 0.5355 GB, free: 2.852 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3831, allocations: 3.938 kB / 0.5355 GB, free: 2.848 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.013e-05/0.3832, allocations: 0 / 0.5355 GB, free: 2.848 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.001991/0.3851, allocations: 1.71 MB / 0.5372 GB, free: 1.512 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/0.3852, allocations: 9.5 kB / 0.5372 GB, free: 1.512 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002385/0.3854, allocations: 205.4 kB / 0.5374 GB, free: 1.398 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008495/0.3863, allocations: 0.6866 MB / 0.5381 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.185e-05/0.3863, allocations: 75.42 kB / 0.5381 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001157/0.3865, allocations: 99.75 kB / 0.5382 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001462/0.3879, allocations: 1.134 MB / 0.5393 GB, free: 132 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3e-05/0.388, allocations: 6 kB / 0.5393 GB, free: 128 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.761e-05/0.388, allocations: 49.25 kB / 0.5394 GB, free: 88 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.732e-05/0.388, allocations: 24.81 kB / 0.5394 GB, free: 88 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001506/0.3895, allocations: 1.047 MB / 0.5404 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004761/0.3943, allocations: 3.179 MB / 0.5435 GB, free: 13.47 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001734/0.396, allocations: 1.249 MB / 0.5448 GB, free: 13.02 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005813/0.3966, allocations: 450.1 kB / 0.5452 GB, free: 12.86 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.636e-05/0.3967, allocations: 20.33 kB / 0.5452 GB, free: 12.86 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.486e-05/0.3967, allocations: 38.69 kB / 0.5452 GB, free: 12.81 MB / 398.1 MB Notification: Performance of pre-optimization done (n=66): time 3.236e-06/0.3967, allocations: 1.062 kB / 0.5452 GB, free: 12.81 MB / 398.1 MB Notification: Performance of matching and sorting (n=66): time 0.00205/0.3988, allocations: 1.459 MB / 0.5467 GB, free: 12.26 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.906e-05/0.3988, allocations: 62.38 kB / 0.5467 GB, free: 12.2 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00163/0.4005, allocations: 1.209 MB / 0.5479 GB, free: 11.41 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.536e-05/0.4005, allocations: 37.7 kB / 0.5479 GB, free: 11.36 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006449/0.4012, allocations: 0.7447 MB / 0.5487 GB, free: 10.61 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001943/0.4014, allocations: 238 kB / 0.5489 GB, free: 10.38 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001593/0.4015, allocations: 118.3 kB / 0.549 GB, free: 10.25 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.4017, allocations: 330 kB / 0.5493 GB, free: 9.926 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000511/0.4022, allocations: 413.1 kB / 0.5497 GB, free: 9.52 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005774/0.4028, allocations: 0.5004 MB / 0.5502 GB, free: 8.984 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001109/0.4039, allocations: 0.9552 MB / 0.5511 GB, free: 8 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.922e-06/0.4039, allocations: 3.938 kB / 0.5511 GB, free: 7.996 MB / 398.1 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.001487/0.4054, allocations: 1.133 MB / 0.5522 GB, free: 6.855 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.18e-05/0.4054, allocations: 4 kB / 0.5522 GB, free: 6.852 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.163e-05/0.4054, allocations: 4.312 kB / 0.5523 GB, free: 6.848 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.028e-05/0.4054, allocations: 8 kB / 0.5523 GB, free: 6.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004538/0.4059, allocations: 127.8 kB / 0.5524 GB, free: 6.715 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.415e-05/0.4059, allocations: 8 kB / 0.5524 GB, free: 6.707 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002736/0.4062, allocations: 47.62 kB / 0.5524 GB, free: 6.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.806e-05/0.4062, allocations: 31.92 kB / 0.5525 GB, free: 6.629 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.0006454/0.4068, allocations: 361.5 kB / 0.5528 GB, free: 6.266 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001632/0.407, allocations: 139.1 kB / 0.5529 GB, free: 6.129 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001512/0.4085, allocations: 1.144 MB / 0.5541 GB, free: 4.973 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/0.4085, allocations: 11.98 kB / 0.5541 GB, free: 4.961 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.4085, allocations: 3.984 kB / 0.5541 GB, free: 4.957 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.4085, allocations: 4 kB / 0.5541 GB, free: 4.953 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00263/0.4112, allocations: 2.054 MB / 0.5561 GB, free: 2.855 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.4112, allocations: 0 / 0.5561 GB, free: 2.855 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004412/0.4116, allocations: 107.8 kB / 0.5562 GB, free: 2.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.165e-06/0.4116, allocations: 4 kB / 0.5562 GB, free: 2.746 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.576e-05/0.4117, allocations: 15.98 kB / 0.5562 GB, free: 2.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.314e-06/0.4117, allocations: 11.94 kB / 0.5562 GB, free: 2.719 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.4117, allocations: 0 / 0.5562 GB, free: 2.719 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002077/0.4137, allocations: 1.792 MB / 0.558 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001971/0.4139, allocations: 130.9 kB / 0.5581 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.806e-05/0.414, allocations: 16.06 kB / 0.5581 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001949/0.4142, allocations: 8 kB / 0.5581 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.764e-05/0.4143, allocations: 40.58 kB / 0.5582 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.258e-05/0.4143, allocations: 16 kB / 0.5582 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001137/0.4154, allocations: 0.8434 MB / 0.559 GB, free: 15.86 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4154, allocations: 0 / 0.559 GB, free: 15.86 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006438/0.4161, allocations: 203.2 kB / 0.5592 GB, free: 15.66 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.0002047/0.4163, allocations: 123 kB / 0.5593 GB, free: 15.53 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001169/0.4175, allocations: 0.9232 MB / 0.5602 GB, free: 14.61 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.4175, allocations: 4 kB / 0.5602 GB, free: 14.61 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005357/0.418, allocations: 479.5 kB / 0.5607 GB, free: 14.13 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005992/0.4186, allocations: 90.22 kB / 0.5608 GB, free: 14.05 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00391/0.4225, allocations: 2.68 MB / 0.5634 GB, free: 11.34 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007894/0.4233, allocations: 0.7007 MB / 0.5641 GB, free: 10.6 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002597/0.4236, allocations: 68.36 kB / 0.5641 GB, free: 10.54 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001129/0.4237, allocations: 43.44 kB / 0.5642 GB, free: 10.5 MB / 414.1 MB Notification: Performance of SimCode: time 8.31e-07/0.4237, allocations: 0 / 0.5642 GB, free: 10.5 MB / 414.1 MB Notification: Performance of Templates: time 0.01363/0.4373, allocations: 5.677 MB / 0.5697 GB, free: 4.832 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 -lv LOG_STATS > SystemDynamics_SystemDynamics.WorldDynamics.World2.Scenario_1.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.097042415291071] Failed to read output from testmodel.py, exit status != 0: 0.4464656673371792 0.460825624 0.07470947900000001 Calling exit ...